@font-face {
    font-family: Graphik;
    font-weight: 100;
    src: url("../fonts/GraphikThin.otf") format("opentype");
}

@font-face {
    font-family: Graphik;
    font-weight: 200;
    src: url("../fonts/GraphikExtraLight.otf") format("opentype");
}

@font-face {
    font-family: Graphik;
    font-weight: 300;
    src: url("../fonts/GraphikLight.otf") format("opentype");
}

@font-face {
    font-family: Graphik;
    font-weight: 400;
    src: url("../fonts/GraphikRegular.otf") format("opentype");
}

@font-face {
    font-family: Graphik;
    font-weight: 500;
    src: url("../fonts/GraphikMedium.otf") format("opentype");
}

@font-face {
    font-family: Graphik;
    font-weight: 600;
    src: url("../fonts/GraphikSemibold.otf") format("opentype");
}

@font-face {
    font-family: Graphik;
    font-weight: 700;
    src: url("../fonts/GraphikBold.otf") format("opentype");
}

@font-face {
    font-family: Graphik;
    font-weight: 800;
    src: url("../fonts/GraphikBlack.otf") format("opentype");
}

@font-face {
    font-family: Graphik;
    font-weight: 900;
    src: url("../fonts/GraphikBlack.otf") format("opentype");
}

* {
    --colorPrimary: 86, 59, 255;
    --colorSecondary1: 163, 152, 252;
    --colorSecondary2: 216, 224, 232;
    --colorBackground: 242, 246, 250;
    
    --colorBlack: 0, 0, 0;
    --colorGrey: 128, 128, 128;
    --colorLightGrey: 223, 223, 223;
    --colorWhite: 255, 255, 255;
    
    --colorAccepted: 71, 193, 108;
    --colorConditionally: 255, 156, 0;
    --colorRejected: 255, 59, 99;
    
    --borderRadius: .1vw;
    
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: Graphik, 'Open Sans Condensed', sans-serif;
    font-size: 1vw;
    font-weight: 400;
    margin: 0px;
    padding: 0px;
    background-color: rgb(var(--colorBackground));
    background: url('../../img/background.jpg') no-repeat top center;
    background-size: cover;
}

body.logged-in {
    background: rgb(var(--colorBackground));
}

h1, h2, h3, h4, h5, h6 {
    font-family: Verdana;
    font-weight: 600;
}

a, a:visited {
    color: rgb(var(--colorPrimary));
    text-decoration: none;
    font-size: .9vw;
    font-weight: 500;
}

a.no-href {
    font-weight: 300;
    cursor: default;
}

a:not(.no-href):hover {
    color: rgb(var(--colorSecondary1));
}

form {
    margin: 0;
}

h4 {
    margin-bottom: 1vw;
}

hr {
    border: 0;
    height: 2px;
    margin:18px 0;
    position:relative;
    background: -moz-linear-gradient(left, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 10%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0) 90%, rgba(0,0,0,0) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(0,0,0,0)), color-stop(10%,rgba(0,0,0,0)), color-stop(50%,rgba(0,0,0,0.65)), color-stop(90%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,0))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(left, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 10%,rgba(0,0,0,0.65) 50%,rgba(0,0,0,0) 90%,rgba(0,0,0,0) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(left, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 10%,rgba(0,0,0,0.65) 50%,rgba(0,0,0,0) 90%,rgba(0,0,0,0) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(left, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 10%,rgba(0,0,0,0.65) 50%,rgba(0,0,0,0) 90%,rgba(0,0,0,0) 100%); /* IE10+ */
    background: linear-gradient(left, rgba(0,0,0,0) 0%,rgba(0,0,0,0) 10%,rgba(0,0,0,0.65) 50%,rgba(0,0,0,0) 90%,rgba(0,0,0,0) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#00000000',GradientType=1 ); /* IE6-9 */
}

hr:before {
    content: "";
    display: block;
    border-top: solid 1px rgb(var(--colorPrimary));
    width: 100%;
    height: 1px;
    position: absolute;
    top: 50%;
    z-index: 1;
}


/* standards */


.text-center {
    text-align: center;
}

.center {
    margin-left: auto;
    margin-right: auto;
}

.hidden {
    display: none !important;
    visibility: hidden !important;
}

.nowrap {
    white-space: nowrap;
}

.v-center {
    vertical-align: middle !important;
}

.indent {
    margin-left: 1vw;
}

.full-width {
    width: 100%;
}

.ellipsis {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.smaller {
    font-size: smaller;
}


/* page container */


.page-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-header, .page-footer {
    display: flex;
    position: sticky;
    align-items: center;
    top: 0;
    left: 0;
    right: 0;
    xheight: 50px;
    flex-direction: row;
    background-color: rgb(var(--colorWhite));
    color: rgb(var(--colorBlack));
    box-shadow: 0px 0px 5px rgba(0,0,0,0.1);
    z-index: 9999;
}

.page-header {
    min-height: 4.6vw;
}

.page-header .header-logo {
    content: url('../../img/logoVC.png');
    height: 4.6vw;
    object-fit: contain;
    padding: 0 2vw 0 3vw;
    border-right: solid 1px rgb(var(--colorLightGrey))
}

.page-header .header-user {
    display: flex;
    align-items: center;
    margin: 0 2vw;
    font-size: .9vw;
}

.page-header .header-user .header-user-image {
    position: relative;
    padding: 0;
    margin: 0 .6vw 0 0;
}

.page-header .header-user .header-user-image .temp-user-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(var(--colorGrey), 1);
    background-color: rgb(var(--colorLightGrey));
    border: solid 1px rgba(0,0,0,0.1);
    border-radius: 50%;
    width: 3vw;
    height: 3vw;
}

.page-header .header-user img {
    background-color: rgb(var(--colorLightGrey));
    border: solid 1px rgba(0,0,0,0.1);
    border-radius: 50%;
    width: 3vw;
    height: 3vw;
}

.page-footer {
    top: unset;
    bottom: 0;
    border: 0;
    justify-content: space-between;
    align-items: center;
    padding: .4vw;
}

.page-footer span {
    display: flex;
}

.page-footer .footer-version {
    margin: 0;
    color: rgb(var(--colorGrey));
    font-weight: 300;
    font-size: .6vw;
}

.page-footer span a {
    color: rgb(var(--colorGrey));
    font-size: .6vw;
    font-weight: 300;
    margin: 0;
}

.page-header .header-title {
    xfont-family: Verdana;
    xfont-variant: small-caps;
}

.page-header .header-title,
.page-header .header-version {
    margin: .6vw .8vw;
}

.page-header .header-menu {
    display: flex;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    margin: 0;
}

.page-header .header-menu span {
    padding: .4vw 2vw;
}

.page-header .header-menu a {
    color: rgb(var(--colorBlack));
    font-size: .9vw;
    font-weight: 400;
    transition: opacity linear .2s;
}

.page-header .header-menu span:not(:last-child) {
    border-right: solid 1px rgb(var(--colorLightGrey));
}

.page-header .header-menu a i {
    color: rgb(var(--colorPrimary));
    margin-right: .2vw;
}

.page-content {
    flex: 1;
    padding: 2vw;
    margin: 0;
}

.page-content-container {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: .6vw;
    min-height: 100%;
}

/* login / ulink table */


table td, table th {
    text-align: left;
    padding: .2em .4em;
}


/* form container */

.form-container, .form-container-opacity {
    position: relative;
    display: inline-block;
    text-align: left;
    background-color: rgb(var(--colorWhite));
    border-radius: var(--borderRadius);
    padding: 1.3vw;
    width: -webkit-fit-content;
}

.form-container.centered, .form-container-opacity.centered {
    margin: auto;
    max-width: 100%;
}

.form-container.centered, .form-container-opacity.centered:not(.no-min-width) {
    min-width: 65%;
    max-width: 100%;
}

.form-container-opacity {
    background-color: rgba(var(--colorWhite), 0.9);
}

.form-container h3 {
    margin-top: 0;
}

.form-container.disabled::before, .form-container-opacity.disabled::before {
    content: '';
    position: absolute;
    display: block;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255,255,255,0.3);
}

/* error message */


.error-message {
    display: inline-block;
    background-color: white;
    margin: 1vw auto;
}

.error-message > span {
    display: inline-block;
    padding: 1vw;
    color: rgb(var(--colorBlack));
    background-color: rgba(var(--colorConditionally),0.1);
    border-radius: var(--borderRadius);
    border: solid 2px rgba(var(--colorConditionally),0.3);
}

.error-message > span > i {
    color: rgb(var(--colorConditionally));
}


/* buttons */


input[type=button], input[type=submit], button {
    background-color: rgb(var(--colorPrimary));
    border: solid 1px rgba(0,0,0,0.2);
    border-radius: var(--borderRadius);
    padding: .6vw 1vw 1vw;
    min-width: 5vw;
    font-size: .9vw;
    color: rgb(var(--colorWhite));
    cursor: pointer;
    transition: all linear 0.2s;
}

input[type=button]:disabled, input[type=submit]:disabled, button:disabled {
    background-color: rgba(var(--colorWhite),1) !important;
    border-color: rgba(0,0,0,0.2) !important;
    color: rgba(var(--colorGrey),1) !important;
    cursor: default !important;
}

input[type=button].btn, input[type=submit].btn, button.btn,
input[type=button].btn-small, input[type=submit].btn-small, button.btn-small {
    background-color: rgb(var(--colorPrimary));
    border: solid 1px rgba(0,0,0,0.2);
    border-radius: var(--borderRadius);
    font-size: .9vw;
}

input[type=button].btn-small, input[type=submit].btn-small, button.btn-small {
    font-size: 0.7vw;
}

input.small {
    width: 6vw;
}

.btn.rnd {
    border-radius: 50%;
    font-size: 1.2vw;
    width: 3.4vw;
    height: 3.4vw;
    min-width: unset;
    padding: 0;
}

.row.edit-mode .hide-in-edit {
    display: none !important;
    visibility: hidden !important;
}


input[type=button]:not(:disabled):hover, input[type=submit]:not(:disabled):hover, button:not(:disabled):hover,
input[type=button]:not(:disabled).selected, input[type=submit]:not(:disabled).selected, button:not(:disabled).selected {
    background-color: rgb(var(--colorSecondary1));
    border: solid 1px rgba(0,0,0,0.1);
}

input[type=button].btn-trans, input[type=submit].btn-trans, button.btn-trans {
    font-size: .7vw;
    min-width: unset;
    width: 2vw;
    height: 2vw;
    color: rgba(var(--colorPrimary),1);
    background-color: rgb(var(--colorWhite));
    border: solid 1px rgba(var(--colorPrimary),1);
    border-radius: 50%;
    padding: 0;
}

input[type=button].btn-trans:not(:disabled):hover, input[type=submit].btn-trans:not(:disabled):hover, button.btn-trans:not(:disabled):hover {
    color: rgba(var(--colorSecondary1),1);
    background-color: rgb(var(--colorWhite));
    border: solid 1px rgba(var(--colorSecondary1),1);
}

.button-style-1, .button-style-2, .button-style-3 {
    padding: .8vw 1vw 1vw;
    font-size: .8vw;
    font-weight: 500;
}

.button-style-2 {
    color: rgb(var(--colorPrimary)) !important;
    background-color: transparent !important;
    border: solid 1px rgb(var(--colorPrimary)) !important;
}

.button-style-2:hover {
    color: rgb(var(--colorSecondary1)) !important;
    background-color: transparent !important;
    border-color: rgb(var(--colorSecondary1)) !important;
}

.button-style-1, .button-style-1:hover {
    color: rgb(var(--colorWhite)) !important;
    border: solid 1px rgba(0,0,0,0.3) !important;
    background-color: rgb(var(--colorPrimary)) !important;
}

.button-style-3 {
    color: rgb(var(--colorBlack)) !important;
    border: solid 1px rgba(var(--colorBlack), 0.6) !important;
    background-color: transparent !important;
}

.button-style-3:hover {
    color: rgba(var(--colorBlack), 0.6) !important;
    border: solid 1px rgba(var(--colorBlack), 0.3) !important;
    background-color: transparent !important;
}


/* input fields */


input:not([type=button]):not([type=file]),
textarea,
select,
span.input-span,
.dlist-container td > input,
.dlist-container td > select,
.dlist-container td > span > input,
.dlist-container td > span > select
{
    background-color: rgb(var(--colorWhite));
    color: rgb(var(--colorBlack));
    border: solid 1px rgb(var(--colorLightGrey)) !important;
    border-radius: var(--borderRadius) !important;
    font-size: 1vw;
    padding: 1vw !important;
    margin: .5vw 0 !important;
}

span.input-span {
    display: inline-block;
}

label {
    color: rgb(var(--colorBlack));
    font-size: .9vw;
    font-weight: 500;
    cursor: pointer;
    transition: all linear 0.2s;
}

select {
    padding-right: 3.1vw;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: all linear 0.2s;
}


/* colors */

.color-primary {
    color: rgb(var(--colorPrimary));
}

.color-grey {
    color: rgb(var(--colorGrey));
}

/* status colors */


.status-accepted {
    background-color: rgb(var(--colorAccepted)) !important;
}

.status-counter {
    background-color: rgb(var(--colorConditionally)) !important;
}

.status-rejected {
    background-color: rgb(var(--colorRejected)) !important;
}

.status-accepted-color {
    color: rgb(var(--colorAccepted)) !important;
}

.status-counter-color {
    color: rgb(var(--colorConditionally)) !important;
}

.status-rejected-color {
    color: rgb(var(--colorRejected)) !important;
}


/* select wrapper */


.select-wrapper {
    display: inline-block;
    position: relative;
    max-width: 100%;
    padding: 0px;
    margin: 1px;
}

.select-wrapper select,
.dlist-container td > span > select {
    max-width: 100%;
    padding-right: 4vw !important;
    margin: 0px !important;
}

.select-wrapper:before {
    content: ' ';
    display: inline-block;
    position: absolute;
    top: 1px;
    bottom: 0px;
    right: 1px;
    width: 2.1vw;
    border-left: solid 1px rgba(0,0,0,0.1);
    background-color: rgba(0,0,0,0.1);
    pointer-events: none;

    transition: all linear 0.4s;
}

.select-wrapper:after {
    content: ' ';
    display: inline-block;
    position: absolute;
    right: .7vw;
    top: 25%;
    width: 0.6vw;
    height: 0.6vw;
    border: solid .3vw rgba(0,0,0,0.3);
    border-top: none;
    border-left: none;
    pointer-events: none;
    
    transform: rotate(45deg);
}


/* CAUTION: Internet Explorer hackery ahead */

select::-ms-expand {
    display: none; /* Remove default arrow in Internet Explorer 10 and 11 */
}

/* Target Internet Explorer 9 to undo the custom arrow */
@media screen and (min-width:0\0) {
    select {
        background: none\9;
        padding: 5px\9;
    }
}


/* */

.rule-and-or {
     font-size: .8vw;
     font-weight: bold;
}

.rule-all-or-one-of {
    font-style: italic;
}

.row-button-bar {
    display: flex;
    justify-content: flex-end;
}


/*  */

.import-response {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#responseErrors {
    text-align: left;
}

.large {
    font-size: 3.8vw;
}

.green {
    color: rgb(var(--colorAccepted));
}

.orange {
    color: rgb(var(--colorConditionally));
}

/* */

td.label {
    vertical-align: top;
    padding-top: 4px;
}

/* */


.slider-row > td:first-of-type {
    padding: 0px;
}

.slider-row > td {
    xborder: dashed 1px rgba(0,0,0,0.2);
    border: 0 !important;
}

.slider-container {
    position: absolute;
    display: none;
    visibility: hidden;
    width: 100%;
    overflow: hidden;
    margin: 1.3vw;
}

.slider-container.opening,
.slider-container.closing {
    position: relative;
    display: block;
    visibility: visible;
}

.slider-container.opened {
    position: relative;
    display: block;
    visibility: visible;
    overflow: visible;
}

.slider-element {
    display: block;
}


/* */

.row {
    display: flex;
    flex-direction: row;
    align-items: center;
}


.excel-grid {
    display: flex;
    align-items: center;
    xborder: solid 1px red;
    flex-direction: column;
    clear: both;
}

.excel-grid > .row {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.excel-grid > .row > span {
    flex: 1;
    xborder: solid 1px green;
    padding: 1px 5px;
}

.excel-grid > .row > span:last-of-type {
    padding-right: 0px;
}

.excel-grid > .row > span.small {
    flex: 0;
}

.excel-grid > .row > span.label {
    flex: 0;
    text-align: left;
    white-space: nowrap;
    padding: 0px 5px;
}

.excel-grid > .row > span input:not([type=checkbox]),
.excel-grid > .row > span textarea {
    display: block;
    width: 100%;
}

.excel-grid > .row > span textarea {
    height: 3.2em;
    resize: none;
    margin-right: 0.2em;
}

/* switch radio */

.switch-radio {
    display: inline-block;
    background-color: rgba(var(--colorWhite), 1);
    border: solid 1px rgba(var(--colorPrimary), 1);
    border-radius: .2vw;
    overflow: hidden;
}

.switch-radio input {
    display: none;
    visibility: hidden;
}

.switch-radio input[type="radio"] + label {
    display: inline-block;
    position: relative;
    top: 0px;
    color: rgb(var(--colorGrey));
    font-size: .8vw;
    font-weight: 400;
    padding: .8vw 1.3vw;
    transition: all linear .2s;
}

.switch-radio input[type="radio"]:not(:checked) + label + input[type="radio"]:not(:checked) + label::after {
    content: '';
    display: inline-block;
    position: absolute;
    top: .2vw;
    bottom: .2vw;
    left: 0;
    right: 0;
    border-left: solid 1px rgba(0,0,0,0.2);
}

.switch-radio input[type="radio"]:checked + label {
    position: relative;
    border-radius: .2vw;
    background-color: rgba(var(--colorPrimary),0.8);
    color: rgb(var(--colorWhite));
    padding-right: 1vw;
    padding-left: 1.6vw;
}

.switch-radio input[type="radio"]:checked + label::before {
    content: ' ';
    display: inline-block;
    position: absolute;
    left: .7vw;
    border: solid .2vw rgb(var(--colorWhite));
    border-top: 0;
    border-left: 0;
    width: .3vw;
    height: .6vw;
    transform: perspective(999px) translateY(0%) rotate(45deg);
}

/* grids no-hover */

.grid-condition-type {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin: 2vw 0 1vw;
}

.grid-results, .grid-condition {
    display: grid;
    grid-gap: 0px;
    grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 2fr);
    align-items: flex-start; /* was stretch ? */
    width: 100%;
    xoverflow: hidden;
}

.grid-condition {
    grid-template-columns: auto auto minmax(0, 1fr) minmax(0, 1fr);
}

.grid-results > .row,
xx.grid-condition > .row {
    display: contents;
}

.grid-results > .row > span,
.grid-condition > .row > span {
    padding: 1px;
}

.grid-results > .row > span input,
.grid-results > .row > span textarea {
    margin: 0 !important;
}

.grid-results > .row > span.label,
.grid-condition > .row > span.label {
    padding: 1.4vw 1vw 1vw .3vw;
}

.grid-results > .row > span textarea,
.grid-condition > .row > span textarea {
    width: 100%;
}


/* */

.descriptions-detail-grid {
    display: grid;
    grid-gap: .4vw;
    grid-template-columns: 1fr 2fr;
    align-items: stretch;
    clear: both;
}

.descriptions-detail-grid > span {
    padding: .4vw 0 .4vw .4vw;
}

.descriptions-detail-grid > span > input,
.descriptions-detail-grid > span > textarea {
    width: 100%;
}

.descriptions-detail-grid > span > textarea {
    height: 8vw;
}

/* grid */

.grid {
    display: grid;
    grid-gap: 0px;
    grid-template-columns: 1fr 2fr;
    align-items: stretch;
    background-color: white;
    border: solid 1px rgba(0,0,0,0.1);
    border-radius: var(--borderRadius);
    width: 100%;
    overflow: hidden;
}

.grid-description {
    grid-template-columns: auto;
}

.grid-question-description {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.grid-hints {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
}

.grid-2 {
    grid-template-columns: repeat(2, auto);
}

.grid-3 {
    grid-template-columns: repeat(3, auto);
}

.grid-3.theme-1 {
    grid-template-columns: auto repeat(2, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, auto);
}

.grid-4.theme-1 {
    grid-template-columns: auto repeat(3, minmax(0, 1fr));
}

.grid-rules {
    grid-template-columns: auto auto auto minmax(0, 1fr) auto;
}

.col-2 {
    grid-column: span 2;
}

.col-3 {
    grid-column: span 3;
}

.col-4 {
    grid-column: span 4;
}

.col-5 {
    grid-column: span 5;
}

.content-center {
    justify-content: center;
}

.grid > .row {
    display: contents;
}

.grid > .row > span {
    display: flex;
    align-items: center;
    transition: all linear .2s;
}

.grid > .row:not(.slider-row):not(.head) > span {
    padding: .8vw .6vw;
    background-color: rgb(var(--colorLightGrey));
    cursor: pointer;
}

.grid > .row:not(.no-hover):not(.slider-row):not(.head):hover > span,
.grid > .row:not(.slider-row).opened > span {
    background-color: rgba(var(--colorSecondary1), 0.5) !important;
}

.grid > .row.slider-row > span {
    padding: 0 !important;
}


/* grid-description / grid-term-results */

.grid.grid-description,
.grid.grid-question-description,
.grid.grid-hints,
.grid.grid-term-results,
.grid.grid-rules {
    border: solid 1px rgba(var(--colorPrimary),0.2);
    border-radius: var(--borderRadius);
}

.term-condition-section .grid.grid-rules > .row:not(.slider-row):not(.head) > span,
.grid.grid-description > .row:not(.slider-row):not(.head) > span,
.grid.grid-question-description > .row:not(.slider-row):not(.head) > span,
.grid.grid-hints > .row:not(.slider-row):not(.head) > span,
.grid.grid-term-results > .row:not(.slider-row):not(.head) > span {
    background-color: rgba(var(--colorWhite),1);
    padding: .8vw !important;
}

.grid.theme-1 > .row:not(.slider-row):not(.head):not(.no-hover):hover > span,
.grid.grid-description > .row:not(.slider-row):not(.head):not(.no-hover):hover > span,
.grid.grid-question-description > .row:not(.slider-row):not(.head):not(.no-hover):hover > span,
.grid.grid-hints > .row:not(.slider-row):not(.head):not(.no-hover):hover > span,
.grid.grid-term-results > .row:not(.slider-row):not(.head):not(.no-hover):hover > span,
.grid.grid-rules > .row:not(.slider-row):not(.head):not(.no-hover):hover > span {
    background-color: rgba(var(--colorSecondary1),0.5) !important;
}

.grid.grid-question-description > .row:not(.slider-row):not(.head) > span {
    display: block;
    padding-bottom: .2vw !important;
}

/* index span */

.row > span.index {
    padding: .2vw .1vw .2vw .4vw;
}

.row > span.index span {
    display: inline-block;
    width: 2.6vw;
    height: 2.6vw;
    font-weight: bold;
    text-align: center;
    font-size: .8vw;
    line-height: 2.6vw;
    background-color: rgb(var(--colorWhite));
    color: rgb(var(--colorPrimary));
    border: solid 1px rgba(var(--colorPrimary),0.3);
    border-radius: 50%;
}


/* grid theme 1 (main grid) */

.grid.theme-1 {
    border: solid 1px rgba(var(--colorPrimary),0.2);
}

.grid.theme-1 > .row:not(.head) > span,
.grid.grid-hints > .row:not(.slider-row):not(.head) > span,
.grid.grid-rules > .row:not(.slider-row):not(.head) > span {
    background-color: rgba(var(--colorLightGrey), 0.2);
    padding: .8vw;
    
    transition: all linear .2s;
}

.grid.theme-1 > .row:not(.slider-row):not(.head) > span {
    border-top: solid 1px rgba(var(--colorPrimary),0.2);
}


.grid-rules .row-child-condition > span {
    padding: 0 .8vw !important;
}

/* grid header */

.grid > .row.head > span {
    background-color: rgb(var(--colorPrimary));
    color: rgb(var(--colorWhite));
    font-weight: 600;
    font-size: .9vw;
    padding: .8vw .6vw;
}


/* grid errors (import) */

.grid-errors {
    grid-template-columns: auto minmax(0, 1fr) !important;
    grid-gap: 1px;
    border: 0;
    width: unset;
    min-width: 50%;
    max-width: 100%;
}

.grid-errors > .row > span {
    border-radius: .2vw;
    padding: .2em .4em;
}

.grid-errors > .row.head > span {
    color: rgb(var(--colorWhite));
    background-color: rgb(var(--colorPrimary));
    border: solid 1px rgba(0,0,0,0.3);
    padding: .8vw;
}

.grid-errors > .row:not(.head):nth-of-type(odd) > span {
    background-color: rgba(0,0,0,0.01);
}

.grid-errors > .row:not(.head):nth-of-type(even) > span {
    background-color: rgba(0,0,0,0.05);
}



/* */

span.cell-value {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grid > .row > span > label {
    display: block;
    font-size: .9vw;
    font-weight: bold;
    margin-bottom: .3vw;
}

/* */

.excel-table {
    width: 100%;
}

.excel-table td {
    padding: 0;
    vertical-align: top;
}

.excel-table td:not(:last-of-type) {
    padding-right: 8px;
}

.excel-table td.label {
    width: 1%;
    white-space: nowrap;
    padding: 3px 8px 3px 3px;
}

td.small {
    width: 1%;
}

.excel-table td input:not([type=checkbox]),
.excel-table td textarea {
    width: 100%;
}

.excel-table td textarea {
    height: 1.9em;
}


/* dlist */

.dlist-container {
    overflow: hidden;
}

.dlist-container .dlist-header {
    background-color: rgb(var(--colorWhite));
    z-index: 999;
    padding-top: 2vw;
    padding-bottom: 1vw;
}

.dlist-container .dlist-footer {
    background-color: rgb(var(--colorWhite));
    z-index: 999;
}

.dlist-container table thead th {
    position: -webkit-sticky;
    position: sticky;
    vertical-align: middle;
    top: 5.7vw;
    color: rgb(var(--colorWhite));
    background-color: rgb(var(--colorPrimary));
    border: solid 1px rgba(0,0,0,0.3);
    padding: .8vw .6vw;
}

.dlist-container th:not(.dlist-no-sort):hover {
    background-color: rgb(var(--colorSecondary1));
    opacity: 1;
}

.dlist-container table th.orderby-asc,
.dlist-container table th.orderby-desc {
    xpadding-right: 1.6vw;
}

.dlist-container table th.orderby-asc::after,
.dlist-container table th.orderby-desc::after {
    display: unset;
    border: 0;
    border-radius: unset;
    background-color: unset;
    width: unset;
    height: unset;
    padding-left: .8vw;
}

.dlist-container tbody tr td {
    transition: all ease-in 0.2s;
    padding: .8vw .6vw;
}

.dlist-container tbody tr:nth-of-type(odd) td {
    background-color: rgba(255,255,255,0.2);
}

.dlist-container tbody tr:nth-of-type(even) td {
    background-color: rgba(0,0,0,0.05);
}

.dlist-container tbody tr:hover:not(.dlist-row-no-edits) td {
    background-color: rgba(var(--colorSecondary1), 0.5);
    opacity: 1;
}

.dlist-container table tr .dlist-edit-column button {
    border-radius: 50%;
    font-size: .7vw;
    width: 2.2vw;
    height: 2.2vw;
    min-width: unset;
    padding: 0;
}



/* player - registrations overview */

.registrations-overview {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.registrations-overview .reg-game {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: solid 1px transparent;
    border-radius: var(--borderRadius);
    padding: 0;
    margin: 0 3vw 3vw 0;
    width: 28vw;
    height: 70vh;
    background-color: rgb(var(--colorWhite));
    overflow: hidden;
}

.registrations-overview .reg-game:hover {
    border-color: rgb(0,0,0,0.1);
}

xxx.registrations-overview .reg-game:hover .reg-game-status {
    background-color: rgb(var(--colorBackground));
}

.registrations-overview .reg-game,
.registrations-overview .reg-game .reg-game-image,
.registrations-overview .reg-game .reg-game-title,
.registrations-overview .reg-game .reg-game-description,
.registrations-overview .reg-game .reg-game-teaser,
.registrations-overview .reg-game .reg-game-button,
.registrations-overview .reg-game .reg-game-status {
    display: flex;
    justify-content: center;
    transition: all ease-in 0.2s;
}

.registrations-overview .reg-game .reg-game-title,
.registrations-overview .reg-game .reg-game-description,
.registrations-overview .reg-game .reg-game-teaser,
.registrations-overview .reg-game .reg-game-button,
.registrations-overview .reg-game .reg-game-status {
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 1vw;
}

.registrations-overview .reg-game .reg-game-teaser {
    flex-shrink: 0;
    padding-top: 1.6vw;
    padding-bottom: 0;
}

.registrations-overview .reg-game .reg-game-image {
    flex-shrink: 0;
}

.registrations-overview .reg-game .reg-game-image img {
    max-height: 6vw;
    max-width: 100%%;
    object-fit: contain;
}

.registrations-overview .reg-game .reg-game-button {
    flex-shrink: 0;
    padding-top: 1.6vw;
    padding-bottom: .4vw;
}

.registrations-overview .reg-game .reg-game-title {
    flex-shrink: 0;
    font-size: 1vw;
    font-weight: bold;
    color: rgba(var(--colorBlack),0.8);
    padding: 2vw 2vw 1.4vw;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.registrations-overview .reg-game .reg-game-description {
    position: relative;
    flex: 1;
    align-items: flex-start;
    font-size: .9vw;
    font-weight: 400;
    padding: 0 2vw;
    line-height: 1.8em;
    color: rgb(var(--colorBlack));
    overflow-y: auto;
    text-overflow: ellipsis;
}

.registrations-overview .reg-game .reg-game-description .reg-game-icon {
    display: flex;
    font-size: 7.8vw;
    position: absolute;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.05;
    pointer-events: none;
}

.registrations-overview .reg-game .reg-game-status {
    flex-shrink: 0;
    font-size: .8vw;
    color: rgb(var(--colorGrey));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* box shadows */

.box-shadow3 {
    box-shadow: rgba(0, 0, 0, 0.3) 0px 7px 20px 0px;
}

.box-shadow1 {
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
}

.box-shadow1:hover {
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

.box-shadow2 {
    xbox-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px, rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;

}

.box-shadow2:hover {
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
}

/* custom scrollbar */

.custom-scrollbar::-webkit-scrollbar {
    width: .6vw;
    height: .6vw;
}

/* Track */
.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: .25vw;
    overflow: hidden;
}

/* Handle */
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: .25vw;
    overflow: hidden;
}

/* Handle on hover */
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
    border-radius: .25vw;
    overflow: hidden;
}


/* dashboard items */

.dashboard-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin-left: .4vw;
}

.dashboard-item h3, .dashboard-item h4 {
    padding: 0;
    margin: 0;
}

.dashboard-item h3, .dashboard-item h4 > span {
    display: block;
    font-size: .9vw;
}

.dashboard-item > span {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    color: rgb(var(--colorBlack));
    background-color: rgb(var(--colorSecondary2));
    padding: .5vw 1vw .5vw 1.5vw;
    border-radius: .2vw;
}

.dashboard-item > span > span {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 3vw;
    width: 3vw;
    height: 3vw;
    background-color: rgb(var(--colorWhite));
    border-radius: 50%;
}

.dashboard-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.8vw;
    height: 2.8vw;
    padding: 0;
    margin: 0;
    font-weight: 500;
    font-size: 1.1vw;
    color: rgb(var(--colorBlack));
    background-color: rgb(var(--colorSecondary2));
    border-radius: 50%;
}


/* x-tabs-element */

.x-tabs-element {
}

.x-tabs-headers {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.x-tabs-headers > span {
    display: flex;
    align-items: center;
    text-align: center;
    padding: .9vw;
    font-weight: 600;
    font-size: .8vw;
    color: rgb(var(--colorGrey));
}

.x-tabs-headers > span.disabled {
    pointer-events: none;
    cursor: default;
    color: rgb(var(--colorLightGrey));
}

.x-tabs-element:not(.disabled) .x-tabs-headers > span:not(.disabled):hover {
    cursor: pointer;
}

.x-tabs-headers > span.active {
    color: rgb(var(--colorBlack));
    border: solid 1px rgba(0,0,0,0.2);
    border-bottom: none;
    border-radius: .2vw .2vw 0 0;
    background-color: rgb(var(--colorWhite));
    margin-bottom: -1px;
}

.x-tabs-headers > span.current:not(.active) {
    color: rgb(var(--colorSecondary1));
}

.x-tabs-tab {
    padding: 1.2vw 1.2vw 1.6vw;
    font-size: .9vw;
}

.x-tabs-tab:not(.active) {
    display: none;
    visibility: hidden;
}

.x-tabs-tab.active:first-of-type {
    border-radius: 0 .2vw .2vw;
}

.x-tabs-tab.active {
    border: solid 1px rgba(0,0,0,0.2);
    border-radius: .2vw;
}

.x-tabs-tab input[type=radio] {
    display: none;
    visibility: hidden;
}

.x-tabs-tab input[type=radio] + label {
    display: inline-block;
    padding: .8vw 1vw 1vw;
    margin: 2px;
    color: rgb(var(--colorPrimary));
    font-size: .8vw;
    font-weight: 500;
    border: solid 1px rgb(var(--colorPrimary));
    border-radius: var(--borderRadius);
    cursor: pointer;
    transition: all linear 0.2s;
}

.x-tabs-element.disabled .x-tabs-tab input[type=radio] + label {
    cursor: default;
}

.x-tabs-tab input[type=radio] + label:hover {
    color: rgb(var(--colorSecondary1));
    border-color: rgb(var(--colorSecondary1));
}

.x-tabs-tab input[type=radio]:checked + label {
    color: rgb(var(--colorWhite));
    border: solid 1px rgba(0,0,0,0.3);
    background-color: rgb(var(--colorPrimary));
}

/* play game - terms */

.play-term-overview, .play-question-terms {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0vw 2vw;
    margin-bottom: 1vw;
}

.play-term-grid {
    display: grid;
    grid-gap: 2vw;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start; /* was stretch ? */
    width: 100%;
}

.play-term-grid h5 {
    margin: 0;
}

.play-term-grid > span.negotiable {
    padding-top: 1vw;
}

.x-tabs-tab > .play-term-feedback {
    
}

.x-tabs-tab > .play-term-description-text {
    margin-bottom: .8vw;
    font-weight: 300;
}

.x-tabs-tab > .play-term-description-text.rejected {
    color: rgb(var(--colorGrey));
    text-decoration: line-through;
}

.x-tabs-tab > .play-term-buttons {
    position: relative;
    display: flex;
    flex-direction: column;
}

.x-tabs-tab > .play-term-buttons > .play-term-buttons-button-bar {
    position: relative;
    display: inline-flex;
    flex-direction: row;
    align-items: center;
}

.x-tabs-tab > .play-term-buttons > .play-term-buttons-button-bar a {
    margin-left: 1.6vw;
}

.play-term-hint-popup {
    position: fixed;
    z-index: 999999;
    font-size: .9vw;
}

.play-term-hint-popup .hint-popup-content {
    position: relative;
    display: flex;
    justify-content: top;
    align-items: left;
    background-color: rgb(var(--colorWhite));
    border: solid 1px rgba(0,0,0,0.1);
    border-radius: .2vw;
    padding: 1.4vw;
    margin: 0;

    width: 27vw;
    min-width: 27vw;
    x-min-height: 18vw;
    max-width: 40vw;
    max-height: 60vh;
}

.play-term-hint-popup .hint-popup-content .hint-popup-content-inner {
    z-index: unset;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: top;
    align-items: left;
    font-weight: 300;
    font-size: .9vw;
    background-color: rgb(var(--colorWhite));
    
    min-width: 100%;
    overflow: hidden;
}

.play-term-hint-popup .hint-popup-content .hint-popup-content-inner > p {
    margin: 0 0 1vw 0;
}

.play-term-hint-popup .hint-popup-content .hint-popup-content-inner > p:last-child {
    margin: 0;
}

.play-term-hint-popup .hint-popup-content::before, .play-term-hint-popup .hint-popup-content::after {
    content: '';
    display: block;
    position: absolute;
    z-index: -1;
    top: 1vw;
    left: -.5vw;
    background-color: var(rgb(--colorWhite));
    border: solid 1px rgba(0,0,0,0.1);
    width: 1.2vw;
    height: 1.2vw;
    transform: rotate(45deg);
    xclip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    box-shadow: rgba(0, 0, 0, 0.3) 0px 7px 20px 0px;
}

.play-term-hint-popup .hint-popup-content::after {
    z-index: unset;
    top: 1.1vw;
    left: -.4vw;
    width: 1vw;
    height: 1vw;
    border-color: transparent;
    background-color: rgb(var(--colorWhite));
    box-shadow: unset;
}


/* accept in combination */

.accept-combinations-container {
    margin-top: 1vw;
}

.accept-combinations-container > span {
    display: block;
    padding: .4vw;
    font-weight: 600;
    font-size: .8vw;
}

.accept-combinations-container .accept-in-combination-with {
}

.accept-combinations-container .accept-in-combination-with .accept-in-combination-term > span {
    display: inline-block;
}

.accept-combinations-container .accept-in-combination-with .accept-in-combination-term > span:nth-child(1) {
    width: 18%;
}

.accept-combinations-container .accept-in-combination-with .accept-in-combination-term > span:nth-child(2) {
    width: 82%;
}


/* play game - questions */

.play-question-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin: 1vw 0;
}

.play-question-term, .play-question-text .play-question-description, .play-question-footer, .play-question-error {
    display: flex;
    justify-content: center;
    margin-top: 2vw;
}

.play-question-term span {
    font-size: larger;
    padding-right: .4vw;
}

.play-question-term h4 {
    /*width: 53vw;*/
    text-align: left;
}

.play-question-text {
    font-size: smaller;
    margin-bottom: 1vw;
}

.play-term-feedback {
    display: flex;
    margin: 0 0 1vw;
    align-items: center;
    font-size: .8vw;
    font-weight: 600;
}

.play-term-feedback > span {
    xfont-size: smaller;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: .9vw;
    background-color: rgb(var(--colorGrey));
    color: rgb(var(--colorWhite));
    xborder: solid 1px rgba(0,0,0,0.1);
    border-radius: 50%;
    width: 2vw;
    height: 2vw;
    margin-right: .5vw;
}

.play-term-feedback.reaction-accepted > span {
    border-color: rgba(0,0,0,0.3);
    background-color: rgba(var(--colorAccepted), 1);
}

.play-term-feedback.reaction-accepted {
    color: rgba(var(--colorAccepted), 1);
}

.play-term-feedback.reaction-conditionally > span {
    border-color: rgba(0,0,0,0.3);
    background-color: rgba(var(--colorConditionally), 1);
}

.play-term-feedback.reaction-conditionally {
    color: rgba(var(--colorConditionally), 1);
}

.play-term-feedback.reaction-paused > span {
    border-color: rgba(0,0,0,0.3);
    background-color: rgba(var(--colorConditionally), 1);
}

.play-term-feedback.reaction-paused {
    color: rgba(var(--colorConditionally), 1);
}

.play-term-feedback.reaction-rejected > span {
    border-color: rgba(0,0,0,0.3);
    background-color: rgba(var(--colorRejected), 1);
}

.play-term-feedback.reaction-rejected {
    color: rgba(var(--colorRejected), 1);
}

play-question-description-container {
    
}

.play-question-description-container > span {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.play-question-description-container > span > span {
    width: 3vw;
    font-weight: 600;
    font-size: .9vw;
}

.play-question-description-container > span > label {
    display: block;
    border: solid 1px rgba(var(--colorPrimary), 1);
    width: 100%;
    /*width: 50vw;*/
    min-width: 50vw;
    padding: .8vw;
    margin: .2vw 0;
    background-color: rgb(var(--colorWhite));
    color: rgba(var(--colorPrimary), 1);
    font-size: .9vw;
}

.play-question-description-container > span > input:checked + label {
    background-color: rgb(var(--colorPrimary));
    color: rgba(var(--colorWhite), 1);
    border: solid 1px rgba(0,0,0,0.3);
}

.play-question-description-container > span:hover > input:not(:checked) + label {
    color: rgba(var(--colorSecondary1), 1);
    border: solid 1px rgba(var(--colorSecondary1), 1);
}

.play-question-description-container > span > input {
    display: none;
    visibility: hidden;
}

label.description-current {
    font-weight: bold;
}

.description-hint {
    display: inline-block;
    color: rgb(var(--colorBlack));
    background-color: rgb(var(--colorWhite));
    padding: .8vw;
    border: solid 1px rgba(0,0,0,0.8);
    border-radius: var(--borderRadius);
    margin-top: 1vw;
}

.description-hint .hint-text {
    margin-left: 5px;
}

.play-question-footer {
    flex-direction: column;
    align-items: center;
}


/* score results */

.player-scores-grid {
    display: grid;
    grid-gap: .2vw;
    grid-template-columns: 6fr 2fr 2fr 1fr 1fr;
}

.player-scores-grid > div {
    padding: .4vw;
}

.player-scores-grid > .header {
    display: flex;
    font-size: 1vw;
    font-weight: 600;
    align-items: center;
}

.player-scores-grid > .header.results-score {
    flex-direction: column;
    align-items: flex-end;
}

.player-scores-grid > .header.results-score > span {
    font-size: .8vw;
}

.player-scores-grid > .results-player,
.player-scores-grid > .results-status,
.player-scores-grid > .results-rounds,
.player-scores-grid > .results-score,
.player-scores-grid > .results-view {
    display: flex;
    align-items: center;
}

.player-scores-grid > .results-player {
    font-weight: 300;
    font-size: 1.1vw;
}

.player-scores-grid > .results-status {
    font-weight: 300;
    font-size: .9vw;
}

.player-scores-grid > .results-rounds,
.player-scores-grid > .results-score {
    justify-content: center;
}

/* registration results */

.play-term-text {
    max-width: 25vw;
}

.play-term-text > div {
    margin-top: .8vw;
}

.result-description-text {
    font-weight: 300;
}


.registration-results {
    display: grid;
    position: relative;
    grid-gap: 1px;
    grid-auto-rows: auto;
    z-index: 9999;
}

.registration-results > div:first-of-type {
    position: sticky;
    left: .6vw;
}

.registration-results > span.header:not(.sticky),
.registration-results > span.header.sticky span {
    color: rgb(var(--colorWhite));
    background-color: rgb(var(--colorPrimary));
    border: solid 1px rgba(0,0,0,0.3);
    font-weight: bold;
    font-size: smaller;
    padding: .8vw;
    border-radius: .2em;
    white-space: nowrap;
}

.registration-results > span.header {
    position: sticky;
    top: 0;
}

.registration-results > span.header.sticky {
    z-index: 999;
}

.registration-results > span:not(.header):not(.sticky),
.registration-results > span.sticky > span {
    white-space: nowrap;
    padding: .6vw;
    border-radius: .2em;
}

.registration-results > span.sticky {
    position: sticky;
    xleft: .6vw;
    left: 0;
    padding: 0;
    border: 0;
}

.registration-results > span.sticky > span {
    position: relative;
    display: flex;
    align-items: center;
    font-weight: 600;
    font-size: smaller;
    width: 100%;
    height: 100%;
}

.registration-results > span.sticky >span::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -1px;
    bottom: -1px;
    right: -1px;
    left: -2vw;
    margin-right: 1px;
    background-color: rgb(var(--colorWhite));
}

.registration-results > span.sticky.footer span,
.registration-results > span:not(.sticky).footer {
    color: rgb(var(--colorWhite));
    background-color: rgb(var(--colorSecondary1));
    border: solid 1px rgba(0,0,0,0.3);
    font-weight: 500;
    font-size: smaller;
    padding: .6vw;
    border-radius: .2em;
    white-space: nowrap;
}



/* validation */

.validate-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 4vw;
}

.validate-container > div {
    margin-bottom: 2vw;
}

.validate-container .validate-random-combinations {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

.validate-container .validate-random-combinations > span {
     margin: 0 1vw 1vw 0;
}


/* import */

#responseErrorsHeader {
    margin-top: 1vw;
}


/* toast messages */

.toast-message {
    font-weight: 500;
    font-size: .9vw;
    color: rgb(var(--colorWhite));
    background-color: rgba(var(--colorPrimary),1);
    border-radius: .2vw;
    border: solid 1px rgba(0,0,0,0.3);
    padding: 1.2vw;
    box-shadow: rgba(0,0,0,0.5) 1px 1px 5px;
}
