@use "../../../010-settings/" as *;
@use "../../../050-layout/basics/_layout_spacing-variables"as *;
@use "../../../070-components/legacy/component_alert" as alert;

/* not yet refactored code from former ta.css */
$il-test-dropzone-bg-color: $il-main-dark-bg;
$il-test-dropzone-bg-color-hover: $il-highlight-bg;
$il-test-dropzone-border: $il-main-border;
$il-test-term-bg-color: $il-highlight-bg;
$il-test-term-disabled-bg-color: $il-disabled-btn-bg;
$il-test-definition-bg-color: $il-main-darker-bg;
$il-test-matching-padding: $il-padding-xs-horizontal;
$il-test-longmenu-selectionlist-bg: $il-main-bg;
$il-test-longmenu-selectionlist-bg-hover: $il-highlight-bg;
$il-test-longmenu-selectionlist-border: $il-main-border;
$il-test-longmenu-selectionlist-padding: $il-padding-xs-horizontal;
$il-test-icon-min-size: $il-font-size-base;

.fullwidth_invisible {
	background-color: transparent !important;
}

.feedback {
	padding: 4px;
	display: block;
	background: #EEEEEE;
}

.centermessage {
	width: 25em;
	margin-left: auto;
	margin-right: auto;
	font-weight: bold;
	font-size: 150%;
}

.il-pagetitle {
	.l-bar__space-keeper {
		--l-bar__element__margin-bottom: #{$il-margin-xs-vertical};
		font-size: $il-font-size-base;
		font-weight: $il-font-weight-base;
	}
	.il-test-kiosk-head__participant-name {
		font-size: $il-font-size-xlarge;
		font-weight: $il-font-weight-bold;
	}
}

.col2 {
	width: 100%;
	float: left;
}

.rcol {
	width: 50%;
	float: right;
}

.lcol {
	width: 50%;
	float: left;
}

.participant.solution {
	padding: 5px;
	width: 50%;
	overflow-x: auto;
}

.lcol.participant
{
    width: 49%;
	overflow-x: auto;
}

.rcol.solution {
	width: 49%;
	overflow-x: auto;
	padding: 5px;
	background: #E2FFC7; /* Fallback IE 6-8 */
	background: rgba(226, 255, 199, .4);
}

.print {
	visibility: hidden;
}

.ilTstQuestionSummaryBlock_WorkingTime {
	clear: both;
}

div.ilc_Question {
	padding-left: 20px;
	margin-top: 10px;
	margin-bottom: 10px;
}

.ilc_qinput_TextInput {
	max-width: 65vw;

	@media only screen and (max-width: $il-grid-float-breakpoint-max) {
		max-width: 100%;
	}
}

.testSheet {
	background: #EEEEEE;
	border-spacing: 1px;
	border: 1px outset #BBBBBB;
	margin: 5px;
	padding: 2em;
}

.questionTitle {
	margin-top: 5px;
	margin-bottom: 5px;
	font-size: 140%;
	padding-bottom: 3px;
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-color: #000000;
}

.ilTestQuestionRelatedObjectivesInfo
{
    font-size: 0.7em;
    font-style: italic;
    margin: 5px 0;
}

.questionPrintview {
	border: 1px solid #C0C0C0;
	padding: 0.25em;
	margin-top: 1em;

	padding: $il-padding-xxlarge-horizontal;
	.row.ilc_qanswer_Answer {
		padding-left: $il-padding-xxlarge-horizontal;
		padding-right: $il-padding-xxlarge-horizontal;
	}
}

img.ilc_solution_image {
    min-width: $il-test-icon-min-size;
    min-height: $il-test-icon-min-size;
}

.solutionbox {
	color: black;
	background-color: white;
	padding-left: 5px;
	padding-right: 5px;
	border-style: inset;
	border-width: 1px;
}

td.middle {
	color: #000000;
	background-color: inherit;
	border-spacing: 0px;
	border: none;
	padding: 3px;
	vertical-align: middle;
}

td.top {
	color: #000000;
	background-color: inherit;
	border-spacing: 0px;
	border: none;
	padding: 3px;
	vertical-align: top;
}

/* --- Test tool javascript styles --- */

span.nowrap {
	white-space: nowrap;
}

div.termtext {
	width: 200px;
	height: 100px;
	border: 1px solid #000000;
	background-color: #F1F1F1;
	color: #222222;
	padding: 10px;
	vertical-align: middle;
	border-style: outset;
	text-align: center;
}

div.dropzone {
	width: 220px;
	height: 120px;
	border: 1px solid #000000;
	background-color: #FFE4E4;
	color: #222222;
	padding: 10px;
	vertical-align: middle;
	border-style: dotted;
	text-align: center;
}

div.textboximage {
	width: 200px;
	height: 80px;
	border: 1px solid #000000;
	background: #DDDDDD;
	padding: 10px;
	vertical-align: middle;
	border-style: outset;
	text-align: center;
}

div.imagebox {
	width: 200px;
	height: 100px;
	border: 1px solid #000000;
	background-color: #F1F1F1;
	color: #222222;
	padding: 10px;
	vertical-align: middle;
	border-style: outset;
	text-align: center;
	z-index: 200;
}

div.textbox {
	width: 200px;
	height: 100px;
	border: 1px solid #000000;
	background-color: #F1F1F1;
	color: #222222;
	padding: 10px;
	vertical-align: middle;
	border-style: outset;
	text-align: center;
	z-index: 200;
}

#filterpanel {
	text-align: right;
}

.filteractive {
	background-color: #f7face;
	border: 1px #d48110 solid;
}

.filterinactive {
	background-color: #fff;
}

.manfeedback .toggle-button
{
	padding-left:20px;
	background:transparent url(images/del_sprite_arrows.gif) 3px -318px no-repeat;
	cursor:pointer;
}

.manfeedback .yes
{
	padding-left:20px;
	background:transparent url(images/del_sprite_arrows.gif) 3px -359px no-repeat;
	cursor:pointer;
}

.manfeedback .off
{
	padding-left:20px;
	background:none;
	cursor:default;
}

div.odd {
	padding: 0.5em 0;
}

div.even {
	padding: 0.5em 0;
}

div.last {
	border-bottom: none;
}


table.imagemapareas tr,
table.kvpwizard tr,
table.matchingwizard tr,
table.matchingpairwizard tr,
table.errortextwizard tr,
table.singlechoicewizard tr,
table.multiplechoicewizard tr {
	vertical-align: top;
}

table.imagemapareas th,
table.kvpwizard th,
table.matchingwizard th,
table.matchingpairwizard th,
table.errortextwizard th,
table.singlechoicewizard th,
table.multiplechoicewizard th,
table.kprimchoicewizard th
{
    vertical-align: top;
}
table.kprimchoicewizard th.true,
table.kprimchoicewizard th.false
{
    padding: 5px 5px;
}
table.kprimchoicewizard td.correctness
{
    vertical-align: top;
    text-align: center;
}
table.kprimchoicewizard th
{
    font-size: 90%;
    font-weight: bold;
    text-align: center;
}
table.kprimchoicewizard
{
}
table.kprimchoicewizard
{
    margin-bottom: 15px;
}
table.kprimchoicewizard td
{
    padding-top: 15px;
}
div.ilAssKprimChoiceTable div.optionLabel,
table.kprimchoicewizard th.optionLabel
{
    background-color: lightgrey;
}

table.ilAssKprimChoiceTable tr.aggregaterow td
{
	border-bottom: solid lightgrey 1px;
}
table.ilAssKprimChoiceTable tr.aggregaterow td.answer_frequency
{
	text-align: right;
}
table.il_tst_answer_aggregation
{
	border-collapse: collapse;
}
table.il_tst_answer_aggregation td,
table.il_tst_answer_aggregation th
{
	padding: 5px 15px;
}
table.il_tst_answer_aggregation th
{
	background-color: lightgrey;
}
table.il_tst_answer_aggregation td
{
	border-bottom: solid lightgrey 1px;
}
table.il_tst_answer_aggregation td.answer_option
{
	font-style: italic;
}
table.il_tst_answer_aggregation td.answer_frequency
{
	text-align: right;
}

.question_description {
	font-style: italic;
	font-size: 90%;
}

.number {
	text-align: right;
}

.errortext a:link,
.errortext a:visited {
	text-decoration: none;
	color: #000;
	padding: 0 2px;
	line-height: 1.5em;
}

.errortext a:hover {
	background-color: #ddd;
}

.ilc_qetitem_ErrorTextSelected {
	background-color: #9bd9fe;
	border: 1px #666 solid;
}
.selGroup {
	border: 2px #9bd9fe solid;
	padding: 3px 2px;
	margin-right: 2px;
}


.imageselection {
}

.questionpool_info {
	padding: 0.4em;
	margin-top: 0.4em;
}

.questionpool_title {
	font-weight: bold;
}

td.matching {
	vertical-align: middle;
}

div.term {
	display: inline;
	padding: 0.5em 1em;
	float: left;
}

.solutiontable td {
	padding: 0 1em;
}

span.result {
	font-style: italic;
}

ul.ilAssQuestionRelatedNavigationContainer,
div.ilAssQuestionRelatedNavigationContainer
{
	margin: 15px 0;
	float: none;
}

ul.ilAssQuestionRelatedNavigationContainer div.navbar
{
	padding-right: 12px;
	min-height: unset;
	margin-bottom: 10px;
}

div.tstModalConfirmationText
{
	margin-bottom: 20px;
}

div.tstModalConfirmationButtons a,
div.tstModalConfirmationButtons input
{
	margin-right: 20px;
}

div.ilTestOutputBlock_DynTestFinished
{
	background-color: #FAFAFA;
	padding: 100px;
}

a.il_question_answer_list_back_anchor
{
    float:right;
    font-size:0.7em;
    margin-right:3px;
}

.ilCenterForced {
	text-align: center !important;
}

tr.ilBorderlessRow
{
    margin-right: 20px;
}

td.ilAssQuestSkillAssignQuestTitle div
{
    margin-right: 20px;
}

.ilAssQuestionLacExprWizard td,
.ilAssQuestionLacExprWizard th
{
	padding-right: 10px;
}

a.il_participant_block_back_anchor,
a.il_question_answer_list_back_anchor
{
    float:right;
    margin-right:3px;
}
a.il_question_answer_list_back_anchor
{
    font-size:0.7em;
}

.test_specific_feedback td:first-child{
    padding-right: 1em;
    font-style: italic;
    font-weight: bold;
}
.test_specific_feedback td:last-child p:first-child{
    margin-top: 0;
}

p.ilAssKprimInstruction,
p.ilAdditionalAssQuestionInstruction
{
    font-style: italic;
    font-size: 0.9em;
    margin:5px 0 15px 0 !important;
}

table.kprimchoicewizard  th.optionLabel
{
	font-size: 1.1em;
}

table.imagemapareas tr.active-area, table.imagemapareas tr.active-area td {
	background-color: #fdfabb !important;
}

/* fau: testNav - added and changed styles */

td.ilc_Page {
    padding: 15px;
}

.ilTestMarkQuestionIcon {
	width: 28px;
	height: 28px;
}

.ilTestAnswerStatusIcon {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-top: -3px;
}

.ilTestQuestionAction.disabled a {
    color: #b0b0b0!important;
}
/* fau. */

div.ilAssClozeTest
{
	line-height: 2.5em;
}
div.ilAssClozeTest input
{
	line-height: 1.25em;
}

div.ilc_Page.readonly img.imagemap,
div.ilc_Page.readonly div.filesContainer,
div.ilc_Page.readonly div.filesContainer a,
div.ilc_Page.readonly div.uploadContainer input,
div.ilc_Page.readonly div.ilAssErrorText span,
div.ilc_Page.readonly input[disabled],
div.ilc_Page.readonly select[disabled],
div.ilc_Page.readonly textarea[disabled]
{
	pointer-events: all !important;
	cursor: not-allowed !important;
}

.tstAutosaveMsg
{
	position:fixed;
	z-index:99999999999;
	top:$il-margin-xlarge-vertical;
	right:$il-margin-xlarge-horizontal;
	box-shadow: $il-shadow--large;
	&:empty {
		display: none;
	}
}

.textarea {
	cursor: not-allowed !important;
	border: 1px solid rgb(169, 169, 169);
	padding: 2px;
	background-color: rgb(235, 235, 228);
	min-height: 200px;
}

.ilSpecificAnswerFeedback td:first-child {
	padding-right: 30px;
}

.ilc_question_MultipleChoice .ilc_qanswer_Answer > div {
	vertical-align: top;
}
.ilc_question_SingleChoice .ilc_qanswer_Answer > div {
	vertical-align: top;
}

.ilc_question_MatchingQuestion #sourceArea {
	height: fit-content;
	position: sticky;
	top: 40px;
}

/* 2024-10-23 skergomard: We use fixed margins from here on because of interactions with content.css */
.c-test__dropzone {
    display: none;
    margin: 5px 10px 5px 0;
    padding: 0;
    background: $il-test-dropzone-bg-color;
    border: $il-test-dropzone-border;

    &.c-test__dropzone--hover {
        background: $il-test-dropzone-bg-color-hover;
    }

    &.c-test__dropzone--active {
        display: block;
    }
}

.ilc_qordul_OrderListHorizontal .c-test__dropzone {
    float: left;
}

.ilc_qordul_OrderList .c-test__dropzone {
    width: 100%;
}

.c-test__definition {
    border: $il-test-dropzone-border;
    background-color: $il-test-definition-bg-color;
    margin: 5px 10px 5px 0;
    padding: $il-test-matching-padding;
}

.c-test__term {
    border: $il-test-dropzone-border;
    background-color: $il-test-term-bg-color;
    margin: 5px 10px 5px 0;
    padding: $il-test-matching-padding;
    cursor: move;
}

.c-test__term, .dd-item {
    .ilc_qimg_QuestionImage {
        pointer-events: none;
    }
}

.draggableDisabled {
    background-color: $il-test-term-disabled-bg-color;
}

.c-test__longmenu__selectionlist {
    position: relative;
    display: inline-block;
    & ul {
        position: absolute;
        background-color: $il-test-longmenu-selectionlist-bg;
        border-left: $il-test-longmenu-selectionlist-border;
        border-right: $il-test-longmenu-selectionlist-border;
        border-bottom: $il-test-longmenu-selectionlist-border;
        margin: 0;
        min-width: 100%;
        padding: $il-test-longmenu-selectionlist-padding;
        list-style: none;
        z-index: 1;
        cursor: default;
    }
    & li:hover {
        background-color: $il-test-longmenu-selectionlist-bg-hover;
    }
}
