/* 
 * UNIPLUS Evaluation Plugin 
 * Theme für HWK Halle
 */

 /* Color definitions */
 :root {
     --hwk-dunkel-blau: #073070;
     --hwk-dunkel-blau-75: #456494;
     --hwk-dunkel-blau-50: #8397B7;
     --hwk-dunkel-blau-25: #C1CBDB;
     --hwk-hell-blau: #488FDB;
     --hwk-hell-blau-75: #76ABE4;
     --hwk-hell-blau-50: #A3C7ED;
     --hwk-hell-blau-25: #D1E3F6;
     --hwk-dunkel-rot: #B82C44;
     --hwk-hell-rot: #EE234A;
     --hwk-orange: #FF9933;
     --hwk-gelb: #FBCB3D;
     --hwk-dunkel-gruen: #5A8E1E;
     --hwk-hell-gruen: #B4BD00;
 }

 /* ============ Color settings ============ */
 .uni-eval-question .headline {
    background-color: var(--hwk-dunkel-blau);
    color: white;
 }
 
.uni-eval-question-number {
    background-color: var(--hwk-orange);
}

.uni-eval-question-helptext {
    background-color: var(--hwk-hell-blau-75);
    color: white;
}

.uni-eval-question .qcontent {
    background-color: var(--hwk-hell-blau-25);
}

/* Questions > Table */
.uni-eval-question table tr:nth-of-type(even) {
    background-color: var(--hwk-hell-blau-50);
}
.uni-eval-question table.striped_odd tr:nth-of-type(odd) {
    background-color: var(--hwk-hell-blau-50);
}
.uni-eval-question table.striped_odd tr:nth-of-type(even) {
    background-color: var(--hwk-hell-blau-25);
}

.uni-eval-question table.repeat_captions tr:nth-of-type(4n+1), .uni-eval-question table.repeat_captions tr:nth-of-type(4n+2) {
    background-color: var(--hwk-hell-blau-50);
}
.uni-eval-question table.repeat_captions tr:nth-of-type(4n+3), .uni-eval-question table.repeat_captions tr:nth-of-type(4n+4) {
    background-color: var(--hwk-hell-blau-25);
}

.seperate_right_column th:last-child, .seperate_right_column td:last-child {
    border-left: 2px solid var(--hwk-dunkel-blau);
}


/* Question-Type: Sum */
.uni-eval-question.sum tr:nth-of-type(odd) {
    background-color: var(--hwk-hell-blau-50);
}
.uni-eval-question.sum tr:last-of-type {
    border-top: 2px solid var(--hwk-dunkel-blau);
}


/* Question-Type: Constsum */
.uni-eval-question.constsum tr:nth-of-type(odd) {
    background-color: var(--hwk-hell-blau-50);
}
.uni-eval-question.constsum tr:nth-last-of-type(2) {
    border-top: 2px solid var(--hwk-dunkel-blau);
}

/* Question-Type: Grades */
.uni-eval-question.grades.uni-eval-mobile table tr:nth-of-type(6n+1), 
.uni-eval-question.grades.uni-eval-mobile table tr:nth-of-type(6n+2),
.uni-eval-question.grades.uni-eval-mobile table tr:nth-of-type(6n+3) {
    background-color: var(--hwk-hell-blau-50);
}
.uni-eval-question.grades.uni-eval-mobile table tr:nth-of-type(6n+4), 
.uni-eval-question.grades.uni-eval-mobile table tr:nth-of-type(6n+5),
.uni-eval-question.grades.uni-eval-mobile table tr:nth-of-type(6n+6) {
    background-color: var(--hwk-hell-blau-25);
}

/* Question-Type: Grades 1-5 */
.uni-eval-question.grades1to5.uni-eval-mobile table tr:nth-of-type(6n+1), 
.uni-eval-question.grades1to5.uni-eval-mobile table tr:nth-of-type(6n+2),
.uni-eval-question.grades1to5.uni-eval-mobile table tr:nth-of-type(6n+3) {
    background-color: var(--hwk-hell-blau-50);
}
.uni-eval-question.grades1to5.uni-eval-mobile table tr:nth-of-type(6n+4), 
.uni-eval-question.grades1to5.uni-eval-mobile table tr:nth-of-type(6n+5),
.uni-eval-question.grades1to5.uni-eval-mobile table tr:nth-of-type(6n+6) {
    background-color: var(--hwk-hell-blau-25);
}

/* Question-Type: Grades 1-4*/
.uni-eval-question.grades1to4.uni-eval-mobile table tr:nth-of-type(6n+1), 
.uni-eval-question.grades1to4.uni-eval-mobile table tr:nth-of-type(6n+2),
.uni-eval-question.grades1to4.uni-eval-mobile table tr:nth-of-type(6n+3) {
    background-color: var(--hwk-hell-blau-50);
}
.uni-eval-question.grades1to4.uni-eval-mobile table tr:nth-of-type(6n+4), 
.uni-eval-question.grades1to4.uni-eval-mobile table tr:nth-of-type(6n+5),
.uni-eval-question.grades1to4.uni-eval-mobile table tr:nth-of-type(6n+6) {
    background-color: var(--hwk-hell-blau-25);
}


/* --------- Classes --------- */

/* Errors */
.invalid {
    box-shadow: 0px 0px 2px 1px var(--hwk-hell-rot);
}
.invalid_inset {
    box-shadow: inset 0px 0px 2px 1px var(--hwk-hell-rot);
}
.error_message {
    border: 2px solid var(--hwk-hell-rot);
}

/* Mandatory */
.mandatory_marker {
    color: var(--hwk-orange);
}


/* ============ Overwrite Settings ============ */
.uni-eval-question input {
    margin: 0;
}
.uni-eval-question label {
    display: inline;
}
.uni-eval-question output {
    display: inline;
}
.uni-eval-question.sum input[type="number"],
.uni-eval-question.constsum input[type="number"] {
    width: unset;
}