/**
 * @copyright 2025 USTP
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
 *
 * @author: Fabian Gabler <fabian.gabler@ustp.at>
 */

/* zum suchen wo die klasse noch verwendet wird: class\s*=\s*["'][^"']*\bKLASSEN_NAME\b[^"']*["'] */

:root{
	--color-gray-50: var(--color-surface-50);
	--color-gray-100: var(--color-surface-100);
	--color-gray-200: var(--color-surface-200);
	--color-gray-300: var(--color-surface-300);
	--color-gray-400: var(--color-surface-400);
	--color-gray-500: var(--color-surface-500);
	--color-gray-600: var(--color-surface-600);
	--color-gray-700: var(--color-surface-700);
	--color-gray-800: var(--color-surface-800);
	--color-gray-900: var(--color-surface-900);
	--color-gray-950: var(--color-surface-950);
}

.bg-gradient-primary-500 {
	background: linear-gradient(180deg, rgba(1, 80, 150, 0.9) 0%, rgba(1, 80, 150, 1) 100%);
}

.bg-gradient-primary-300 {
	background: linear-gradient(180deg, rgba(64, 123, 179, 0.8) 0%, rgba(64, 123, 179, 1) 100%);
}

.bg-gradient-red {
	background: linear-gradient(180deg, rgba(220, 38, 38, .8) 0%, rgba(220, 38, 38, 1) 100%) !important;
}

.bg-gradient-green {
	background: linear-gradient(180deg, rgba(79, 180, 64, .8) 0%, rgba(79, 180, 64, 1) 100%) !important;
}


/* @deprecated use: .bg-surface-... */
.bg-gray-50 {
	background-color: var(--color-surface-50);
	color: var(--color-on-surface-50);
}

/* @deprecated use: .bg-surface-... */
.bg-gray-100 {
	background-color: var(--color-surface-100);
	color: var(--color-on-surface-100);
}

/* @deprecated use: .bg-surface-... */
.bg-gray-150 {
	background-color: var(--color-surface-100);
	color: var(--color-on-surface-100);
}

/* @deprecated use: .bg-surface-... */
.bg-gray-200 {
	background-color: var(--color-surface-200);
	color: var(--color-on-surface-200);
}

/* @deprecated use: .bg-surface-... */
.bg-gray-300 {
	background-color: var(--color-surface-300);
	color: var(--color-on-surface-300);
}

/* @deprecated use: .bg-surface-... */
.bg-gray-400 {
	background-color: var(--color-surface-400);
	color: var(--color-on-surface-400);
}

/* @deprecated use: .bg-surface-... */
.bg-gray-500 {
	background-color: var(--color-surface-500);
	color: var(--color-on-surface-500);
}

/* @deprecated use: .bg-surface-... */
.bg-gray-600 {
	background-color: var(--color-surface-600);
	color: var(--color-on-surface-600);
}

/* @deprecated use: .bg-surface-... */
.bg-gray-700 {
	background-color: var(--color-surface-700);
	color: var(--color-on-surface-700);
}

/* @deprecated use: .bg-surface-... */
.bg-gray-800 {
	background-color: var(--color-surface-800);
	color: var(--color-on-surface-800);
}

/* @deprecated use: .bg-surface-... */
.bg-gray-900 {
	background-color: var(--color-surface-900);
	color: var(--color-on-surface-900);
}

/* @deprecated use: .bg-surface-... */
.bg-gray-950 {
	background-color: var(--color-surface-950);
	color: var(--color-on-surface-950);
}

/* @deprecated use: .bg-red */
.bg-red-600 {
	background-color: var(--color-red);
}


/* @deprecated use: .items-center */
.align-center {
	align-items: center;
}

/* @deprecated use: .items-stretch */
.align-stretch {
	align-items: stretch;
}


/* @deprecated use: .font-semibold or .font-bold */
.bold {
	font-weight: bold;
}


.border-gray-300 {
	border-color: var(--color-surface-300);
}

.border-b-gray {
	border-bottom: 1px solid grey;
}

.border-success {
	border-bottom: 2px solid var(--color-green);
}


.loading {
	background: url("images/loading_small.gif") no-repeat scroll 0 0 transparent;
	display: inline-block;
	margin-left: 5px;
	width: 16px;
}

.w-6-1-1 {
	width: calc(100vw/6);
}

.w-a-1-1 {
	width: auto;
}

.join>*:not(:last-child)::after {
	content: ', ';
}

.evenrow {
	background-color: var(--color-surface-100);
	color: var(--color-on-surface-100);
}

.oddrow {
	background-color: var(--color-surface-50);
	color: var(--color-on-surface-50);
}

table.prof {
	text-align: left;
}

table.prof th {
	background-color: var(--color-surface-300);
	color: var(--color-on-surface-300);
	border-collapse: collapse;
	padding: 2px 5px 2px 5px;
}

table.prof td {
	border-collapse: collapse;
	padding: 2px 5px 2px 5px;
}

table.prof .sum {
	font-weight: bold;
	text-decoration: underline;
}

.lv_table tr td:first-child {
	border-left: none;
}

.lv_table tr td:last-child,
.lv_table tr th:last-child {
	border-right: none;
}

.lv_table,
.lv_table tr {
	width: 100%;
}

.lv_table tr th,
.lv_table tr td {
	width: 12.5%;
}

.lv_table tr td,
.lv_table tr th {
	border: 1px solid grey;
}

.lv_table tr td div,
.lv_table tr th div {
	height: 100%;
	width: 100%;
}

.lv_table tr td span,
.lv_table tr th span {
	display: block;
	line-height: 1em;
}

.lvplan_lehrfach {
	font-weight: 600;
}

.lvplaninfo td {
	border: 1px solid black;
}

.loading {
	background: url("images/loading_small.gif") no-repeat scroll 0 0 transparent;
	display: inline-block;
	margin-left: 5px;
	width: 16px;
}

.head span {
	color: var(--color-primary-500);
}

.blue .head {
	background-color: var(--color-primary-500);
	color: var(--color-on-primary-500);
}

.red .head {
	background-color: var(--color-red);
	color: var(--color-on-red);
}

#busydiv {
	position: absolute;
	top: 0px;
	left: 0px;
	background-color: rgba(64, 123, 179, 0.6);
	z-index: 9999;
}

#busydivcontent {
	position: absolute;
	text-align: center;
	min-width: 60px;
	min-height: 60px;
	background-color: var(--color-surface-100);
}

#ContextDiv {
	position: absolute;
	border-color: var(--color-surface-300);
	border-style: solid;
	border-width: 1px;
	background-color: var(--color-surface-200);
	z-index: 30000;
	box-shadow: 3px 3px 3px #555;
}

#ContextDiv .contextentry {
	color: var(--color-on-surface-300);
	margin: 1px;
	padding: 1px 5px 1px 5px;
}

#ContextDiv .contextentryover {
	background-color: var(--color-surface-300);
	cursor: pointer;
	margin: 1px;
	padding: 1px 5px 1px 5px;
}

#error {
	background-color: #FFA69F;
}

#error.headline {
	font-weight: bold;
}

#errormessage {
	text-align: center;
	color: red;
	font-size: 14px;
}

#showfktsdiv,
#showfktsdiv select,
#showfktsdiv select option,
#showdetdiv,
#showdetdiv select,
#showdetdiv select option {
	font-size: 12px !important;
}

/* @deprecated use: .switch */
.cis_switch {
	position: relative;
	display: inline-block;
	width: 2rem;
	height: 18px;
}

.cis_switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.cis_switch_slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	-webkit-transition: .4s;
	transition: .4s;
	border-radius: 34px;
	box-shadow: rgba(0, 0, 0, .2) 0px 2px 4px 0px inset;
}

.cis_switch_slider:before {
	position: absolute;
	content: "";
	height: 14px;
	left: 2px;
	bottom: 2px;
	background-color: white;
	-webkit-transition: .4s;
	transition: .4s;
	border-radius: 50%;
	aspect-ratio: 1/1;
}

input:checked+.cis_switch_slider {
	background-color: #2196F3;
}

input:checked+.cis_switch_slider:before {
	-webkit-transform: translateX(14px);
	-ms-transform: translateX(14px);
	transform: translateX(14px);
}

.cis_btn_disabled_loading {
	position: relative;
	padding-right: 2.5rem;
	background-color: grey;
	border: 2px solid #777;
	color: var(--color-surface-300);
	cursor: default;
	pointer-events: none !important;
}

.cis_btn_disabled_loading:hover {
	cursor: not-allowed;
	border: 2px solid #777;
	background: grey;
	color: var(--color-surface-300);
}

.cis_btn_disabled_loading::after {
	content: "\f110";
	font-family: 'FONT AWESOME 5 FREE';
	font-weight: 900;
	pointer-events: none;
	position: absolute;
	animation-name: fa-spin;
	animation-duration: var(--fa-animation-duration, 2s);
	animation-iteration-count: var(--fa-animation-iteration-count, infinite);
	animation-timing-function: var(--fa-animation-timing, linear);
	right: 1rem;
}

.text-excel {
	color: var(--color-ms-excel);
}

.text-primary {
	color: var(--color-primary);
}

.text-gray-300 {
	color: var(--color-surface-300);
}

.text-gray-400 {
	color: var(--color-surface-400);
}

.loadinganim:after {
	background: var(--color-primary-300);
	-webkit-animation: lineAnim 2s linear infinite;
	-moz-animation: lineAnim 2s linear infinite;
	animation: lineAnim 2s linear infinite;
	height: 2px;
	width: 100%;
	position: absolute;
	bottom: 0;
	left: 0;
	content: '';
	display: block;
}

.loadinganim_end:after {
	background: var(--color-primary-300);
	-webkit-animation: lineAnimEnd .4s linear;
	-moz-animation: lineAnimEnd .4s linear;
	animation: lineAnimEnd .4s linear;
	height: 2px;
	width: 100%;
	position: absolute;
	bottom: 0;
	left: 0;
	content: '';
	display: block;
	opacity: 0;
}

@keyframes lineAnim {
	0% {
		left: 0%;
		width: 0%;
	}

	50% {
		left: 50%;
		width: 50%;
	}

	100% {
		left: 100%;
		width: 0%;
	}
}

@keyframes lineAnimEnd {
	0% {
		left: 50%;
		width: 0%;
		opacity: 1;
	}

	100% {
		left: 0%;
		width: 100%;
		opacity: 0;
	}
}

@media (max-width:768px) {

	/* @deprecated alle .r_table */
	.r_table tr td:nth-child(odd) {
		background-color: var(--color-surface-200);
		color: var(--color-on-surface-200);
	}

	.r_table tr td:nth-child(even) {
		background-color: var(--color-surface-100);
		color: var(--color-on-surface-100);
	}

	#lvpv .r_table tr:nth-child(2n) {
		background-color: var(--color-surface-100);
		color: var(--color-on-surface-100);
	}

	.r_table tr td,
	.r_table tr th {
		display: block;
		padding: var(--p-300) var(--p-500) !important;
	}

	.r_table_horizontal tr td::before {
		content: attr(data-label);
		display: block;
		font-weight: bold;
	}

	.r_table_vertical tr td:first-child {
		display: block;
		font-weight: bold;
	}

	.r_table_vertical tr td:nth-child(2) {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.r_table.r_table_horizontal tr th {
		display: none;
	}

	.r_table.r_table_horizontal tr:not(:first-child):not(:last-child) {
		border-bottom: 2px solid black;
	}

	.r_table.r_table_vertical tr th {
		display: none;
	}

	.r_table.r_table_vertical tr .r_table_edit,
	.r_table.r_table_horizontal tr .r_table_edit {
		display: inline;
	}
}