* {
	margin: 0;
	padding: 0;
}

body {
	background: #fff;
	color: #000;
	font-family: "Lucida Grande",Arial,Helvetica,Sans-Serif;
	font-size: 62.5%; /*76.1*/
}

img {
	border: 0;
}

a {
	outline: 0;
	color: #000;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

.clearer {
	clear: both;
}

.clearfix:after {  /* f�r Firefox, IE8, Opera, Safari, etc. */
    content: ".";  
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
 
* + html .clearfix { /* f�r IE7 */
    display: inline-block;
}
 
* html .clearfix { /* f�r IE6 */
	height: 1%;
}

p {
	margin: 1em 0;
	font-size: 1.1em;
}

#wrapper {
	max-width: 1200px;
	margin: 20px auto;
}

#header {
	width: 100%;
	padding: 5px 0 20px 0;
}

#logo {
	width: 230px;
	float: left;
	margin: 0 100px 0 0;
}

#header h1 {
	margin: 10px 0 0 0;
	color: #155092;
}

#header .current-user {
	margin-top: 4px;
	color: #555555;
	font-size: 1.1em;
}

/* main menu */
#mainmenu {
	margin: 0;
	padding: 0;
	float: left;
	list-style: none;
	height: 32px; /*--Set height of tabs--*/
	border-bottom: 1px solid #c0c0c0;
	border-left: 1px solid #c0c0c0;
	width: 100%;
}

#mainmenu li {
	float: left;
	margin: 0;
	padding: 0;
	height: 31px; /*--Subtract 1px from the height of the unordered list--*/
	line-height: 31px; /*--Vertically aligns the text within the tab--*/
	border: 1px solid #c0c0c0;
	border-left: none;
	margin-bottom: -1px; /*--Pull the list item down 1px--*/
	overflow: hidden;
	position: relative;
	-moz-box-shadow:inset 0px 1px 0px 0px #ffffff;
	-webkit-box-shadow:inset 0px 1px 0px 0px #ffffff;
	box-shadow:inset 0px 1px 0px 0px #ffffff;
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) );
	background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf');
	background-color:#ededed;
}

#mainmenu .logout {
	float: right;
	border: 1px solid #c0c0c0;
}

#mainmenu li a {
	text-decoration: none;
	color: #666;
	display: block;
	font-size: 1.4em;
	font-weight: bold;
	padding: 0 20px;
	border: 1px solid #fff; /*--Gives the bevel look with a 1px white border inside the list item--*/
	outline: none;
}

#mainmenu li a:hover {
	background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) );
	background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% );
	filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed');
	background-color:#dfdfdf;
}

html #mainmenu li.active, html #mainmenu li.active a, html #mainmenu li.active a:hover  { /*--Makes sure that the active tab does not listen to the hover properties--*/
	background: #fff;
	color: #333;
	border-bottom: 1px solid #fff; /*--Makes the active tab look like it's connected with its content--*/
}

#content {
	border: 1px solid #c0c0c0;
	border-top: none;
	overflow: hidden;
	clear: both;
	float: left; width: 100%;
	background: #fff;
}

#inner-content {
	padding: 20px;
}

.button-left {
	float: left;
}

.button-right {
	float: right;
}

h2 {
	font-size: 1.5em;
	color: #155092;
	margin: 25px 0 5px 0;
	/*padding-left: 5px;
	border-left: 5px solid #ced3e6;*/
}

.list {
	border-collapse: collapse;
	width: 100%;
	margin-top: 20px;
}

.list th {
	background: #edf3fe;
	padding: 10px 8px;
	border-bottom: 1px solid #999;
	text-align: left;
	font-size: 1.3em;
	font-weight: bold;
}

.list td {
	padding: 10px 8px;
	border-bottom: 1px solid #e0e0e0;
	font-size: 1.2em;
}

.list td.right {
	text-align: right;
}

.list td.nowrap {
	white-space: nowrap;
}

.list tr:hover td, .list tr:focus td { /* highlight table rows */
	background-color: #f9f9f9;
}

tr.invalid-date-row td {
	background-color: #ffe8e8 !important;
}

input.invalid-date {
	border: 2px solid #c00 !important;
	background-color: #fff5f5;
}

.invalid-date-message {
	display: block;
	margin-top: 3px;
	color: #c00;
	font-size: 11px;
	white-space: nowrap;
}

.formtable {
	border-collapse: collapse;
	margin: 10px 0 20px 0;
}

.formtable.archiv {
	width: 100%;
}
.formtable.archiv td {
	border: 1px solid #e0e0e0;
	padding: 8px 5px!important;
	font-size: 1.1em;
	vertical-align: middle;
}

.formtable th {
	background: #edf3fe;
	padding: 10px 8px!important;
	border-bottom: 1px solid #999;
	text-align: left;
	font-size: 1.3em;
	font-weight: bold;
}

.formtable td {
	border-top: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
	padding: 3px 5px!important;
	font-size: 1.2em;
	vertical-align: middle;
}

.formtable td input {
	font-size: 0.9em;
}

.formtable td select {
	font-size: 0.9em;
}

#lform .formtable td {
	line-height: 2em;
}

form {
	clear: both;
	margin: 10px 0 0 0;
}

fieldset {
	margin-top: 20px;
	padding: 20px;
	border: 1px solid #d0d0d0;
	-moz-border-radius: 5px 5px 5px 5px;
	-webkit-border-radius: 5px 5px 5px 5px;
	border-radius: 5px 5px 5px 5px;
}

legend {
	font-size: 1.4em;
	font-weight: bold;
	color: #155092;
	padding: 0 4px;
	margin: 0;
}

.element {
	margin: 0 0 1.5em 0;
	font-size: 1.0em;
	vertical-align: middle;
}

.element img {
	vertical-align: middle;
}

.well {
	padding: 1em;
	font-size: 1.0em;
	background: #f5f5f5;
	border: 1px solid #d3d3d3;
	border-radius: 4px;
}

.element-left {
	float: left;
	/*width: 110px;*/
	width: auto;
	margin: 0 3em 1.5em 0;
	font-size: 1.0em;
}

.list-timetables {
	font-size: 1.2em;
	margin: 0.5em 0;
}

.hint-text {
	color: var(--color-text-muted);
	font-size: 1.05em;
	line-height: 1.45;
	margin: 0 0 14px 0;
}

.table-heading {
	margin: 20px 0 0 0;
	font-size: 1.1em;
	font-weight: bold;
}

.offtime-heading {
	margin: 0.5em 0;
	font-size: 1.0em;
	clear: both;
}

.offtimes {
	margin: 0.5em 0;
	font-size: 1.0em;
}

.offtimes-text {
	margin: 0.5em 0;
	font-size: 1.1em;
}

.calendar-import-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 16px;
	margin: 20px 0 28px;
}

.calendar-import-form fieldset,
.calendar-options {
	margin: 0;
}

.calendar-import-form input[type="file"] {
	display: block;
	margin: 8px 0 12px;
}

.calendar-section {
	margin-top: 28px;
}

.calendar-section h3 {
	margin: 18px 0 6px;
}

.calendar-options .calendar-option {
	display: inline-flex;
	align-items: center;
	margin: 4px 24px 4px 0;
}

.calendar-options .calendar-option label {
	display: inline;
	margin-left: 5px;
}

.calendar-settings {
	clear: both;
}

.calendar-conflict-row > td {
	background: #fff9e8;
}

.calendar-badge {
	display: block;
	width: max-content;
	max-width: 180px;
	margin-top: 4px;
	padding: 2px 5px;
	border: 1px solid #b17a14;
	border-radius: 3px;
	background: #fff2cb;
	color: #6f4b09;
	font-size: 11px;
	font-weight: bold;
	white-space: normal;
}

.calendar-badge-feiertag {
	border-color: #b24b4b;
	background: #fde4e4;
	color: #7c2929;
}

.checkboxes-heading {
	margin: 0.5em 0;
	font-size: 1.0em;
	clear: both;
}

.checkboxes {
	margin: 0.5em 0;
	font-size: 1.1em;
}

.lecturer-filter {
	background: #f4f4f4;
	border: 1px solid #cccccc;
	margin: 0 0 10px 0;
	padding: 10px;
}

.lecturer-filter label {
	display: block;
	margin: 0 0 5px 0;
}

.lecturer-filter input {
	box-sizing: border-box;
	font-size: 1.2em;
	height: 36px;
	padding: 7px 10px;
	width: 480px;
	max-width: 100%;
}

#lecturer-filter-count {
	color: #666666;
	display: inline-block;
	font-size: 1.1em;
	margin: 8px 0 0 10px;
}

.lecturer-selection-table {
	width: 100%;
}

.lecturer-selection-table .selection-separator td {
	background: #edf3fe;
	border-bottom: 2px solid #155092;
	border-top: 2px solid #155092;
	color: #155092;
	font-size: 1.05em;
	font-weight: bold;
	padding: 8px 6px!important;
}

.lecturer-selection-table input[type="checkbox"]:disabled {
	cursor: not-allowed;
	opacity: .75;
}

.assignment-lock {
	color: #842029;
	display: inline-block;
	font-size: .78rem;
	font-weight: 600;
	margin-left: 6px;
}

.subject-selection {
	margin: 0 0 1.5em 0;
}

.subject-selection-list {
	border-bottom: 1px solid #e0e0e0;
	margin-top: 10px;
	max-width: 760px;
}

.subject-selection-row {
	border-top: 1px solid #e0e0e0;
	box-sizing: border-box;
	display: block;
	font-size: 1.1em;
	font-weight: normal;
	line-height: 1.5em;
	padding: 7px 6px;
	width: 100%;
}

.subject-selection-row input {
	margin-right: 8px;
}

.subject-selection-list .selection-separator {
	background: #edf3fe;
	border-bottom: 2px solid #155092;
	border-top: 2px solid #155092;
	color: #155092;
	font-size: 1.1em;
	font-weight: bold;
	padding: 8px 6px;
}

label {
	display: block;
	width: auto;
	padding-bottom: 2px;
	font-size: 1.1em;
	font-weight: bold;
}

label.noblock {
	display: inline;
	width: auto;
	padding-bottom: 2px;
	font-size: 1.1em;
	font-weight: bold;
}

label.checkbox {
  display: block;
  padding-left: 15px;
  text-indent: -15px;
}

input[type="checkbox"] {
  width: 13px;
  height: 13px;
  padding: 0;
  margin:0;
  vertical-align: bottom;
  position: relative;
  top: -1px;
  *overflow: hidden;
}

input {
	font-size: 1.1em;
	border: 1px solid #ccc;
	background: #fcfcfc;
	margin-right: 5px;
	-moz-border-radius: 5px 5px 5px 5px;
	-webkit-border-radius: 5px 5px 5px 5px;
	border-radius: 5px 5px 5px 5px;
}

input[type="text"]:hover, input[type="text"]:focus, textarea:hover, select:hover, checkbox:hover {
	border: 1px solid #A4A4A4;
	background: #fff;
}

input[type="text"], input[type="password"] {
	padding: 4px;
}

.input-text-40 {
	width: 280px;
}

.input-text-20 {
	width: 140px;
}

.select-40 {
	width: 280px;
}

select {
	font-size: 1.1em;
	border: 1px solid #ccc;
	background: #fcfcfc;
	padding: 2px 5px;
	-moz-border-radius: 5px 5px 5px 5px;
	-webkit-border-radius: 5px 5px 5px 5px;
	border-radius: 5px 5px 5px 5px;
}

.select_400 {
	width: 400px;
}


input[type="button"], input[type="submit"] {
	cursor: pointer;
	padding: 4px 20px 4px 20px;
	margin: 10px 10px 0 0;
}

.archive,
.export-pdf,
.export-xml,
.button-cancel,
.button-save {
	margin: 10px 10px 0 0;
}

#lecturers_subjects {
	width: 370px;
}

.timetable-identifiers {
	clear: both;
}

.timetable-identifiers .element {
	margin-bottom: 0.6em;
}

/*label.error {
	float: none;
	color: red;
	padding-left: 0.5em;
	vertical-align: top;
}*/

label.error {
	/*margin-left: 10px;
	width: auto;
	display: inline;*/
	color: red;
	font-weight: normal;
}

.formtable td .error {
	font-size: 0.9em;
}

.button-delete,
.button-export,
.button-copy,
.button-mail {
	font-size: 0.9em !important;
}

.button-add-small,
.button-delete-small {
	padding: 2px 7px !important;
	margin: 0px !important;
}

.button-add-ot-small {
	font-size: 0.9em !important;
	padding: 2px 7px !important;
	margin: 0px !important;
}

.message-box {
	margin: 1em 0 2em 0;
	padding: 0 1em;
}

#setSelectedAll,
#setSelectedNone {
	padding: 0px !important;
	margin: 0px !important;
	cursor: pointer;
}

#select-date,
#edit-lecturer-subjects {
	font-size: 0.8em !important;
	margin: 0 !important;
	padding: 0 3px !important;
}

/*.message-box-icon {
	float: left;
	margin-right: 0.5em;
}*/

.msg-busy {
	font-size: 0.8em;
	color: red;
}


/* sidebar */
#sideBar {
	position: fixed;
	width: auto;
	height: auto;
	top: 10px;
	right:0px;
	background: #fff;
	
}

#sideBarTab {
	float: left;
	height: 26px;
	width: 26px;
}

#sideBarTab img {
	border: 0px solid #FFFFFF;
}

#sideBarContents {
	float: left;
	overflow: hidden !important;
	width: 300px;
	/*height: 100px;*/
	border: 1px solid #c0c0c0;
}

* html #sideBarContentsInner { 
   height: expression( this.scrollHeight > 299 ? "300px" : "auto" ); /* sets max-height for IE */
}

#sideBarContentsInner {
	padding: 0 10px;
	width: 280px;
	max-height: 300px; /*700*/
	overflow: auto;
}

#select-date,
#select-lecturer,
#select-subject,
#select-room {
    padding: 3px!important;
}

#select-date .ui-button-text,
#select-lecturer .ui-button-text,
#select-subject .ui-button-text,
#select-room .ui-button-text {
	padding: 0;
}

/* dataTables */
.dataTables_wrapper {
	margin-top: 20px;
}
.dataTable.list th,
.dataTable.formtable th {
	border-color: #999;
}
.dataTable.list td {
	border-bottom: 0;
}
.dataTables_wrapper .dataTables_filter input {
	padding: 4px;
}
table.dataTable.no-footer {
    border-color: #ddd;
}

#lecturerTable {
	table-layout: fixed;
}

#lecturerTable th,
#lecturerTable td {
	vertical-align: middle;
}

#lecturerTable th:nth-child(1) {
	width: 14%;
}

#lecturerTable th:nth-child(2) {
	width: 17%;
}

#lecturerTable th:nth-child(3) {
	width: 24%;
}

#lecturerTable th:nth-child(4) {
	width: 11%;
}

#lecturerTable th:nth-child(5) {
	width: 34%;
}

.lecturer-email,
.lecturer-subjects {
	overflow-wrap: anywhere;
	word-break: normal;
}

.lecturer-unavailability-cell {
	min-width: 0;
	color: var(--color-text-muted);
	font-size: 1.05em;
}

.lecturer-unavailability {
	max-width: 100%;
}

.lecturer-unavailability summary {
	cursor: pointer;
	list-style: none;
	outline: none;
}

.lecturer-unavailability summary::-webkit-details-marker {
	display: none;
}

.lecturer-unavailability summary::after {
	content: "›";
	display: inline-block;
	margin-left: 7px;
	color: #8a94a3;
	font-size: 14px;
	transform: rotate(90deg);
	transition: transform .15s ease;
}

.lecturer-unavailability[open] summary::after {
	transform: rotate(-90deg);
}

.unavailability-count {
	display: inline-block;
	margin-right: 0;
	padding: 2px 8px;
	border: 1px solid #d8c9f3;
	border-radius: 999px;
	background: #f7f2ff;
	color: #6f42c1;
	font-size: 11px;
	font-weight: 700;
	white-space: nowrap;
}

.lecturer-unavailability ul {
	margin: 8px 0 0 0;
	padding-left: 17px;
	color: var(--color-text);
	font-size: 11px;
	line-height: 1.45;
}

.lecturer-unavailability li + li {
	margin-top: 4px;
}

.unavailability-empty {
	color: #98a1ad;
	font-size: 11px;
	font-style: italic;
}

.lecturer-unavailability-edit {
	margin-top: 10px;
}

.lecturer-unavailability-edit td {
	padding: 8px;
}

.lecturer-unavailability-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	align-items: flex-end;
}

.lecturer-unavailability-form label {
	display: flex;
	flex-direction: column;
	gap: 3px;
	color: var(--color-text-muted);
	font-size: 0.9em;
	font-weight: bold;
}

.lecturer-unavailability-form input[type="datetime-local"] {
	width: 185px;
}

.lecturer-unavailability-form input[type="text"] {
	width: 260px;
}

.lecturer-unavailability-delete {
	margin-top: 6px;
	text-align: right;
}

.lecturer-unavailability-new {
	margin-top: 10px;
}

.lecturer-actions {
	white-space: nowrap;
	min-width: 0;
	text-align: right;
}

.lecturer-actions .action-form {
	display: inline;
}

.build-info {
	margin: 24px 0 10px;
	color: #777;
	font-size: 11px;
	text-align: center;
}
/*
#lecturerTable_wrapper {
	font-size: 1.2em;
	margin-top: 20px;
}

#lecturerTable_length label {
	font-size: 1em;
}

#lecturerTable_length select option {
	font-size: 1em;
}

#lecturerTable th, 
#lecturerTable td {
	padding: 15px 12px!important;
}
*/

/* Modern responsive application shell */
:root {
	--color-primary: #155092;
	--color-primary-dark: #0d3b70;
	--color-border: #dfe4ea;
	--color-surface: #ffffff;
	--color-surface-muted: #f7f9fc;
	--color-text: #17202a;
	--color-text-muted: #5f6975;
	--focus-ring: #f5a623;
}

html {
	font-size: 15px;
}

*, *::before, *::after {
	box-sizing: border-box;
}

body {
	color: var(--color-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, Helvetica, sans-serif;
	font-size: 1rem;
	line-height: 1.42;
}

a {
	color: var(--color-primary-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--focus-ring);
	outline-offset: 2px;
}

#wrapper {
	margin: 18px auto;
	padding: 0 20px;
	width: 100%;
}

#header {
	align-items: center;
	display: grid;
	grid-template-columns: auto 1fr;
	column-gap: 28px;
	padding: 4px 0 18px;
}

#logo {
	width: 280px;
	float: none;
	height: auto;
	margin: 0;
	max-width: 100%;
}

#header h1 {
	font-size: clamp(1.2rem, 2vw, 1.6rem);
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
}

#header .current-user {
	font-size: .875rem;
	grid-column: 2;
	margin: 6px 0 0;
}

#mainmenu {
	background: var(--color-surface-muted);
	border: 1px solid var(--color-border);
	border-radius: 5px 5px 0 0;
	display: flex;
	float: none;
	height: auto;
	overflow: visible;
	width: 100%;
}

#mainmenu li,
#mainmenu .logout {
	background: transparent;
	border: 0;
	border-right: 1px solid var(--color-border);
	box-shadow: none;
	filter: none;
	float: none;
	height: auto;
	line-height: normal;
	margin: 0;
	overflow: visible;
}

#mainmenu .logout {
	border-left: 1px solid var(--color-border);
	border-right: 0;
	margin-left: auto;
	order: 20;
}

#mainmenu li a,
#mainmenu .logout button {
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--color-text-muted);
	display: block;
	font-size: .86rem;
	font-weight: 600;
	line-height: 1.2;
	margin: 0;
	min-height: 38px;
	padding: 10px 14px;
	white-space: nowrap;
}

#mainmenu .logout form {
	clear: none;
	margin: 0;
}

#mainmenu li a:hover,
#mainmenu .logout button:hover {
	background: #e6edf6;
	color: var(--color-primary-dark);
	text-decoration: none;
}

html #mainmenu li.active,
html #mainmenu li.active a,
html #mainmenu li.active a:hover {
	background: var(--color-surface);
	border-bottom: 0;
	color: var(--color-primary-dark);
}

#content {
	border-color: var(--color-border);
	border-radius: 0 0 5px 5px;
	box-shadow: 0 2px 8px rgba(23, 32, 42, .04);
	float: none;
	overflow: visible;
	width: 100%;
}

#inner-content {
	padding: 20px;
}

h2 {
	font-size: 1.16rem;
	font-weight: 600;
	margin: 22px 0 6px;
}

p,
.list th,
.list td,
.formtable th,
.formtable td,
label,
legend {
	font-size: .92rem;
}

.list,
.formtable {
	background: var(--color-surface);
}

.list th,
.formtable th {
	background: #f0f4f9;
	font-weight: 600;
}

.list th,
.list td {
	padding: 8px 9px;
}

.formtable th {
	padding: 8px 9px !important;
}

.action-form {
	clear: none;
	display: inline-flex !important;
	margin: 1px;
	vertical-align: middle;
}

.ui-button,
button,
input[type="submit"],
input[type="button"] {
	font-size: .84rem;
	min-height: 30px;
}

.ui-button {
	background: #f4f6f8;
	border: 1px solid #aeb8c4;
	border-radius: 4px;
	box-sizing: border-box;
	color: #24364b;
	cursor: pointer;
	line-height: 1.2;
	padding: .36em .72em;
	text-decoration: none;
	vertical-align: middle;
}

a.ui-button,
button.ui-button {
	align-items: center;
	display: inline-flex;
}

.ui-button:hover,
.ui-button:focus {
	background: #e6edf5;
	border-color: #728399;
	color: #123f73;
	text-decoration: none;
}

.ui-button .ui-button-icon {
	flex: 0 0 16px;
	margin: 0;
	position: static;
}

.ui-button .ui-button-icon-space {
	display: inline-block;
	width: .35em;
}

.ui-button-text-only .ui-button-text,
input.ui-button {
	padding: .3em .72em;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="search"],
input[type="number"],
select,
textarea {
	font-size: .93rem;
	min-height: 34px;
}

fieldset {
	border-color: var(--color-border);
	border-radius: 4px;
	max-width: 100%;
	min-width: 0;
	padding: 16px;
}

.timetable-editor-table-scroll {
	max-width: 100%;
	overflow-x: auto;
	width: 100%;
	-webkit-overflow-scrolling: touch;
}

.timetable-editor-table {
	table-layout: fixed;
	width: 100%;
}

.timetable-editor-table .timetable-column-weekday {
	width: 32px;
}

.timetable-editor-table .timetable-column-date {
	width: 170px;
}

.timetable-editor-table .timetable-column-hours {
	width: 48px;
}

.timetable-editor-table .timetable-column-time {
	width: 58px;
}

.timetable-editor-table .timetable-column-room {
	width: 142px;
}

.timetable-editor-table .timetable-column-note {
	width: 180px;
}

.timetable-editor-table .timetable-column-action {
	width: 38px;
}

.timetable-editor-table td,
.timetable-editor-table th {
	overflow-wrap: anywhere;
}

.timetable-editor-table .timetable-detail-row td input[type="text"],
.timetable-editor-table .timetable-detail-row td select {
	max-width: 100%;
	width: 100%;
}

.timetable-editor-table .select_400 {
	width: 100%;
}

.timetable-editor-table .calendar-badge {
	max-width: 100%;
	width: 100%;
}

.total-hours-summary {
	align-items: center;
	display: inline-flex;
	font-weight: 600;
	gap: 8px;
}

.total-hours-display {
	font-variant-numeric: tabular-nums;
	text-align: right;
	width: 64px;
}

.timetable-actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 18px 0 8px;
}

.timetable-actions .ui-button,
.timetable-actions input[type="submit"],
.timetable-actions button[type="submit"],
.timetable-actions .archive,
.timetable-actions .button-save,
.timetable-actions .export-pdf,
.timetable-actions .export-xml,
.timetable-actions .export-web,
.timetable-actions .export-ics {
	margin: 0;
}

@media (max-width: 1120px) {
	.timetable-editor-table {
		min-width: 1100px;
	}
}

.message-box {
	border-radius: 4px;
	margin: .75em 0 1.25em;
}

.status-badge {
	border: 1px solid transparent;
	border-radius: 999px;
	display: inline-block;
	font-size: .68rem;
	font-weight: 600;
	line-height: 1.2;
	margin: 3px 0 3px 8px;
	padding: 2px 7px;
	vertical-align: middle;
}

.status-active {
	background: #e7f5ec;
	border-color: #a7d8b8;
	color: #1f6b3a;
}

.status-editing {
	background: #e8f1fb;
	border-color: #afcbea;
	color: #174f87;
}

.status-finished {
	background: #fff0f0;
	border-color: #e5b3b8;
	color: #842029;
}

.status-archived {
	background: #eef0f3;
	border-color: #c9ced6;
	color: #4f5966;
}

.button-delete.ui-button {
	background: #fff4f4;
	border-color: #d99ca2;
	color: #842029;
}

.button-delete.ui-button:hover,
.button-delete.ui-button:focus {
	background: #f8d7da;
	border-color: #bd6f78;
	color: #641820;
}

@media (max-width: 760px) {
	#wrapper {
		margin: 0;
		padding: 12px;
	}

	#header {
		column-gap: 16px;
		grid-template-columns: minmax(120px, 180px) 1fr;
		padding-bottom: 16px;
	}

	#mainmenu {
		border-radius: 7px;
		flex-wrap: wrap;
		overflow: hidden;
	}

	#mainmenu li,
	#mainmenu .logout {
		border-bottom: 1px solid var(--color-border);
		border-right: 1px solid var(--color-border);
		flex: 1 1 auto;
	}

	#mainmenu .logout {
		border-left: 0;
		margin-left: 0;
	}

	#mainmenu li a,
	#mainmenu .logout button {
		text-align: center;
		width: 100%;
	}

	#content {
		border-radius: 7px;
		margin-top: 12px;
	}

	#inner-content {
		padding: 16px;
	}

	.list,
	.formtable,
	.dataTables_wrapper {
		display: block;
		overflow-x: auto;
		width: 100%;
		-webkit-overflow-scrolling: touch;
	}

	.list td.right {
		min-width: 230px;
	}

	.timetable-editor-table {
		display: table;
		overflow-x: visible;
	}

	fieldset {
		padding: 16px;
	}

	.element-left {
		float: none;
		margin-right: 0;
	}

	.input-text-40,
	.input-text-20,
	.select-40,
	.select_400,
	#lecturers_subjects {
		max-width: 100%;
		width: 100%;
	}

	#sideBar {
		display: none;
	}
}

@media (max-width: 520px) {
	#header {
		display: block;
	}

	#logo {
		margin-bottom: 14px;
		width: 230px;
	}

	#header .current-user {
		margin-top: 8px;
	}
}

.skip-link {
	background: #fff;
	border: 2px solid var(--color-primary);
	border-radius: 4px;
	color: var(--color-primary-dark);
	font-weight: 700;
	left: 16px;
	padding: 10px 14px;
	position: fixed;
	top: -70px;
	z-index: 10000;
}

.skip-link:focus {
	top: 16px;
}
.hours-status-red { color: #a20000; }
.hours-status-orange { color: #9a5500; }
.hours-status-green { color: #176b2c; }

/* Consistent readable field sizes across administration, planning and login. */
input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
select, textarea {
    box-sizing: border-box;
    min-height: 42px;
    max-width: 100%;
    padding: .5rem .65rem;
    font: inherit;
    border: 1px solid var(--color-border, #bcc7d4);
    border-radius: 6px;
}
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; vertical-align: middle; }
.input-text-40, .select-40 { width: min(100%, 30rem); }
.input-text-20 { width: min(100%, 20rem); }
.datepicker, .datepicker2, .german-date, .date-field, #end_date { width: 9.5rem; min-width: 9.5rem; }
.time-field { width: 6.5rem; min-width: 6.5rem; }
.hours-field { width: 5rem; min-width: 5rem; }
textarea { min-height: 5rem; resize: vertical; line-height: 1.4; }
input[readonly], input:disabled { background: #eef2f6; color: #475569; }
[aria-invalid="true"] { border-color: #b42318 !important; }
.field-error { display: block; color: #b42318; font-size: .85rem; margin-top: .3rem; max-width: 28rem; }
.field-error[hidden] { display: none; }
.timetable-editor-table { min-width: 1180px; }
.timetable-editor-table .timetable-column-weekday { width: 48px; }
.timetable-editor-table .timetable-column-hours { width: 86px; }
.timetable-editor-table .timetable-column-time { width: 110px; }
.timetable-editor-table .timetable-column-note { width: 240px; }
.timetable-editor-table .timetable-detail-row td textarea { width: 100%; }
.offtimes { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
@media (max-width: 640px) {
    input:not([type="hidden"]), select, textarea, .formtable td input, .formtable td select, .formtable td textarea { font-size: 16px !important; }
    .element, .element-left { max-width: 100%; }
    input[size="60"], .input-text-40, .input-text-20, .select-40 { width: 100%; }
}

.calendar-help { display: inline-flex; align-items: center; }
.calendar-help-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 22px;
    height: 22px;
    min-height: 0;
    padding: 0;
    margin: 0 0 0 3px;
    border: 1px solid #8495ac;
    border-radius: 50%;
    color: #334e73;
    background: #f5f8fc;
    font: 600 13px/1 sans-serif;
    cursor: help;
}
.calendar-help-button:hover, .calendar-help-button[aria-expanded="true"] { background: #e5eefb; }
.calendar-preview {
    position: fixed;
    z-index: 1500;
    width: min(360px, calc(100vw - 24px));
    box-sizing: border-box;
    max-height: min(380px, calc(100vh - 24px));
    overflow-y: auto;
    padding: 14px;
    border: 1px solid #c7d3e2;
    border-radius: 8px;
    background: #fff;
    color: #1e293b;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
    font-size: .9rem;
    font-weight: normal;
    line-height: 1.45;
    text-align: left;
}
.calendar-preview[hidden] { display: none; }
.calendar-preview-heading, .calendar-preview-range, .calendar-preview-list,
.calendar-preview-empty, .calendar-preview-entry, .calendar-preview-entry > span { display: block; }
.calendar-preview-range { color: #64748b; margin: 2px 0 10px; }
.calendar-preview-entry { padding: 8px 0; border-top: 1px solid #e2e8f0; }
.calendar-preview-entry > span { color: #475569; }

.timetable-overview .overview-column-course { width: auto; }
.timetable-overview .overview-column-status { width: 130px; }
.timetable-overview .overview-column-date { width: 115px; }
.timetable-overview .overview-column-actions { width: 240px; }
.timetable-overview .overview-status { white-space: nowrap; }
.timetable-overview .status-badge { margin-left: 0; }
.overview-actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; white-space: nowrap; }
.overview-options-button { cursor: pointer; }
.overview-options-panel {
    position: fixed;
    z-index: 1200;
    box-sizing: border-box;
    width: 200px;
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding: 6px;
    background: #fff;
    border: 1px solid #c7d3e2;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .16);
    text-align: left;
}
.overview-options-panel[hidden] { display: none; }
.overview-options-panel a, .overview-options-panel button,
.overview-options-panel .ui-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 9px 10px;
    font-size: .875rem;
    border: 0;
    background: transparent;
    text-align: left;
    white-space: nowrap;
}
.overview-options-panel .action-form { display: block !important; width: 100%; margin: 0; }
.overview-options-panel a:hover, .overview-options-panel button:hover { background: #edf3fa; }
.overview-options-panel .button-delete { color: #b42318; border-top: 1px solid #e2e8f0; border-radius: 0; }
@media (max-width: 760px) {
    .timetable-overview th:first-child, .timetable-overview td:first-child { min-width: 240px; }
    .timetable-overview .overview-status { min-width: 130px; }
}

.overview-options-panel button:disabled,
.overview-options-panel .overview-action-disabled,
.overview-options-panel button:disabled:hover {
    color: #8993a1;
    background: transparent;
    cursor: not-allowed;
    opacity: .65;
}

#lecturerTable .lecturer-actions { width: 180px; min-width: 180px; }
#lecturerTable th.lecturer-active-heading, #lecturerTable .lecturer-active-cell { text-align: center; width: 65px; }
.lecturer-subject-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.lecturer-subject-tags li {
    box-sizing: border-box;
    max-width: 100%;
    padding: 4px 8px;
    border: 1px solid #dce3ec;
    border-radius: 4px;
    background: #f2f5f9;
    color: #334155;
    font-size: .85rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}
.lecturer-active-trigger { width: auto; min-width: 30px; height: 28px; padding: 0 7px; margin: 0; border-radius: 5px; font-size: .85rem; }
.lecturer-active-help .calendar-preview-heading { margin-bottom: 8px; }
