/* Import von allgemeinen CSS Dateien (im shared css ordner) */
@import url("./../../css/color.css");
@import url("./../../css/dialog.css");
@import url("./../../css/font/font.css");

body {
	margin: 0;
	overflow: hidden;
}
#container {
	display: flex;
	height: 100dvh;
}

.hidden {
	display: none !important;
}

/********************* DIENSTPLAN GRID LAYOUT *********************/
.gridcontainer {
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	grid-template-rows: auto;
	grid-template-areas: "schicht qualifikation montag dienstag mittwoch donnerstag freitag samstag sonntag gesamt";
	align-content: start;
	width: 100%;
	flex: 1; /* Grow to fill available space */
	overflow-y: auto; /* Enable vertical scrolling */
}

#top-header {
	display: grid;
	align-items: center;
	justify-items: center;
	grid-column: span 10;
	grid-template-columns: .5fr 2fr .5fr;
    font-weight: bold;
	padding: 5px 10px 0px;
	color: var(--primary-color);
	font-size: 16px;
}

#top-header > div {
	min-width: 20%;
}

.top-header-links {
	cursor: pointer;
}

.top-header-links:hover {
	opacity: 70%;
}

.top-header-links {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
}

.top-header-links a:hover {
	opacity: 70%;
}

#select-betriebsstaette {
	font-weight: bold;
	font-size: 14px;
	cursor: pointer;
	max-width: 40vw;
}

#logout {
	justify-self: right;
	color: var(--primary-color);
}

#logout-link-div {
	cursor: pointer;
}

.logout-last-minute {
	color: var(--custom-red);
}

#neolohn-link {
	justify-self: left;
	display: flex;
	justify-content: center;
}

#logout-link-div {
	cursor: pointer;
}

.logout-last-minute {
	color: var(--custom-red);
}

.header {
	background-color: var(--primary-color);
	color: white;
	display: flex;
	flex-direction: column;
    justify-content: space-evenly;
	align-items: center;
	height: 40px;
	font-weight: bold;
	font-size: 12px;
	z-index: 10;
	position: sticky;
	top: 88px;
	border-radius: 5px;
	margin: 1px;
}

.notiz-header {
	top: 46px;
}

#tagesnotizen {
	grid-column: span 2;
}

.tages-notiz {
	border-radius: 5px;
	border-color: var(--primary-color);
	color: var(--primary-color);
	text-align: center;
	font-weight: bold;
	resize: none;
	overflow: auto;
	width: 95%;
	height: 80%;
	height: -webkit-fill-available;
	margin: 2px 0;
	position: sticky;
	font-size: 12px;
}

#grid-content {
	display: grid;
	width: 100%;
	grid-column: span 10;
	grid-template-columns: repeat(10, 10%);
	grid-template-rows: auto;
	grid-template-areas: "schicht qualifikation montag dienstag mittwoch donnerstag freitag samstag sonntag gesamt";
	border-radius: 5px;
}

.grid-element {
	display: flex;
	justify-content: space-evenly;
	font-size: min(1vw, 12px);
	text-align: center;
	background: #f7f7f7;
	hyphens: auto;
	min-height: 15mm;
	border-radius: 5px;
	margin: 1px;
}

.grid-element.tag {
	flex-direction: column;
	align-items: center;
	max-width: 10vw;
}

.grid-element.tag .tag-urlaub {
	rotate: 45deg;
}

.monat-2 {
	background-color: var(--background-grey);
}

.ma,
.ge {
	background-color: var(--third-color);
}

.ge.grid-element {
	text-align: right;
	flex-direction: column;
    align-items: flex-end;
    padding-right: 5px;
}

.ma.grid-element {
	flex-direction: row;
	font-weight: bold;
	justify-content: space-between;
	align-items: center;
	padding: 0 5px;
}

.feiertag.grid-element {
	background-color: var(--custom-turquoise);
}

.feiertag-label {
	color: var(--third-color);
    font-size: min(10px, 0.8vw);
    text-overflow: ellipsis;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
}

.ma-info {
	display: flex;
    flex-direction: column;
	text-align: left;
	overflow: hidden;
}

.ma-info > span {
	font-size: 11px;
}

.ma-auswahl {
	transform: scale(1.25);
	cursor: pointer;
}

.sc {
	font-weight: bold;
}

.tages-summe {
	border-top: 5px solid var(--primary-color);
	align-items: center;
	font-weight: bold;
	min-height: 10mm;
}

.grid-element.gesamt-tages-summe {
	background-color: var(--primary-color);
	color: #fff;
	align-items: center;
	font-weight: bold;
	min-height: 10mm;
}

.ge.grid-element.gesamt-tages-summe {
	align-items: flex-end;
}

.zeiten-ma {
	font-size: min(1vw, 12px);
	text-align: left;
}

.ma-qualifikationen {
	font-size: 10px;
	font-weight: normal;
}

.ma-status-grid {
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: 90%;
	padding: 2.5px 10px;
	grid-row-gap: 2px;
	font-size: 10px;
}

.ma-status-grid > div {
	display: flex;
	justify-content: space-between;
}

.ua-antrag-icon {
	cursor: pointer;
}
.ua-antrag-icon:hover {
	opacity: 0.7;
}

#grid-toolbar {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	grid-template-rows: 40px;
	align-items: center;
	grid-column: span 10;
	text-align: center;
	background: var(--third-color);
	font-weight: bold;
	font-size: min(1.25vw, 14px);
	z-index: 10;
	position: sticky;
	top: 4px;
	border-radius: 5px;
	margin: 1px;
}

.bereich-select-div {
	display: flex;
	align-items: center;
	margin-right: auto;
	margin-left: 10px;
	height: 100%;
}

.toolbar-button-div {
	display: flex;
	align-items: center;
	margin-left: auto;
	height: 100%;
}

.toolbar-single-buttons {
	display: flex;
	flex-direction: row;
}

.toolbar-button {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0px 5px;
	height: 25px;
	min-width: 25px;
	background-color: var(--primary-color);
	border-radius: 5px;
	border-color: var(--primary-color);
	color: var(--third-color);
	font-size: 14px;
}

.toolbar-button:hover {
	cursor: pointer;
	opacity: 70%;
}

.freigabe-button {
	background-color: var(--custom-green);
	border-color: var(--custom-green);
	color: var(--menu-font-color);
}

.vorlage-tb-div, .kopieren-tb-div {
	display: flex;
	align-items: center;
	min-height: 25px;
    transition: background-color ease-out 0.5s;
}

#vorlage-tb-select, #bereich-select, #kopieren-tb-select {
	width: auto;
	padding: 2px;
	margin-right: 0;
}

#kal-select {
	height: 28px;
}
#kal-select > option {
	font-size: min(1.5vw, 20px);
}

.kal-nav-div {
	display: flex;
	align-items: center;
	margin: auto;
	font-size: min(1.5vw, 20px);
	line-height: 1;
}
.kal-nav {
	color: var(--primary-color);
	margin: 0 10px;
}

.kal-nav:hover {
	cursor: pointer;
	opacity: 70%;
}

#kal-woche {
	margin: 0px;
}

.area-header {
	grid-column: span 10;
	text-align: center;
	background: var(--secondary-color);
	align-items: center;
	font-weight: bold;
	font-size: 14px;
	min-height: 5mm;
	padding: 5px;
	justify-content: space-between;
	height: auto;
	color: white;
	background-image: url('../icons/chevron-down-white.svg');
	background-repeat: no-repeat;
	background-position: center left 5px;
}

.area-header.area-header-closed {
	background-image: url('../icons/chevron-right-white.svg');;
}

.area-header-buttons {
	display: flex;
	padding-left: 20px;
	align-items: center;
}

.highlight-element {
	background-color: yellow;
	border-color: yellow;
}

#vorlagen-uebersicht {
	display: block;
	margin-top: 88px;
	position: relative;
	overflow: hidden; /* Hide any content that overflows */
}
#vorlagen-liste {
	display: flex;
	flex-direction: column;
	justify-content: start;
	align-items: center;
	padding-top: 5px;
	height: calc(100% - 90px);
	width: 155px;
	overflow-y: auto;
	background-color: var(--background-grey);
	border-radius: 5px;
}
#vorlagen-liste .schicht-div.vorlage-liste-item-active {
	background-color: var(--primary-color) !important;
	color: var(--menu-font-color) !important;
}
.vorlagen-header {
	height: 40px;
	position: initial;
}
.vorlagen-header:first-child {
	margin-bottom: 2.5px;
}
.vorlagen-liste-item {
	display: flex;
	justify-content: center;
}
#vorlagen-sidebar {
	background-color: var(--secondary-color);
	color: var(--menu-font-color);
	padding: 0 5px;
	margin: 0 2px;
	cursor: pointer;
	display: flex;
	align-items: center;
	margin-top: 88px;
	position: relative;
	overflow: hidden; /* Hide any content that overflows */
	border-radius: 5px;
}

.grid-element.wunschzeit-positiv {
	background-image: url(../icons/hand-thumbs-up-fill.svg);
    
}
.grid-element.wunschzeit-negativ {
	background-image: url(../icons/hand-thumbs-down-fill.svg);
}
.wunschzeit-positiv, .wunschzeit-negativ {
	background-repeat: no-repeat;
	background-size: 16px;
	background-position: right 20% center;
}
.wunschzeit-positiv.wunschzeit-hide,
.wunschzeit-negativ.wunschzeit-hide {
	background-position: right 20% bottom 5px;
}

.ma-ua-liste {
	max-height: 20vh;
	overflow-y: auto;
}
.urlaubsantrag {
	background-color: var(--background-grey);
	padding: 2px;
	border: 1px solid var(--primary-color);
	border-radius: 10px;
	display: grid;
	grid-template-columns: 25% 20% 25% 30%;
	align-content: center;
	align-items: center;
	margin-bottom: 5px;
}
.urlaubsantrag-egfztage {
	display: flex;
	flex-direction: column;
}
.urlaubsantrag-aktion {
	display:flex; 
	justify-content:space-evenly;
}

.urlaubsantrag-aktion > button {
	padding: 1px;
	border: none;
	cursor: pointer;
}

.urlaubsantrag-aktion > button:hover {
	opacity: 70%;
}

/********************* SCHICHT ELEMENTE *********************/

.schicht-div {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	width: 80%;
	margin: 1.5%;
	padding: 0;
	border: 3px solid var(--secondary-color);
	border-radius: 10px;
	background-color: white;
	color: var(--secondary-color);
}

.schicht-div:hover,
.schicht-div:focus {
	background-color: var(--primary-color);
	color: var(--menu-font-color);
	cursor: pointer;
}

.schicht-div.egfz-schicht {
	background-color: var(--third-color);
	color: var(--primary-color);
	border-color: var(--primary-color);
}

.schicht-div.egfz-schicht .schicht-inhalt {
	margin: auto;
}

.schicht-div.egfz-schicht:hover {
	cursor: not-allowed;
}

.schicht-div.egfz-schicht .span-div {
	display: none;
}

.schicht-inhalt {
	display: inline-block;
	margin-left: auto;
	max-width: 75%;
}
.schicht-div.schicht-panel {
	opacity: .8;
	background-color: var(--primary-color);
	color: var(--menu-font-color);
}
.schicht-div.schicht-panel:hover {
	cursor: help;
}
.schicht-panel .schicht-inhalt {
	margin: auto;
	flex-direction: row;
}
.schicht-panel .schicht-titel {
	font-size: 12px;
}
.schicht-panel .schicht-beschreibung {
	font-size: 10px;
}
.schicht-freigabe-status {
	height: 100%;
	margin: 2px;
}

.schicht-freigabe-status > i {
	font-size: 10px;
	color: var(--custom-green);
}

.schicht-titel {
	font-weight: bold;
}

.schicht-titel,
.schicht-beschreibung {
	line-height: 1.5;
}
.schicht-titel {
	font-size: 11px;
}
.schicht-beschreibung {
	font-size: 10px;
}

.tageskosten > p {
	display: flex;
	font-size: 1vw;
	margin: 5px;
}

.tageskosten {
	border-top: 3px solid black;
}

.span-div {
	display: flex;
	width: 20%;
	float: right;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	margin-left: auto;
	margin-right: 5px;
}

.span-tools {
	float: right;
	font-weight: bold;
	margin: 2px;
	font-size: 14px;
}

.span-tools:hover,
.span-tools:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

.span-add {
	opacity: 50%;
	font-size: 1.25rem;
}

.span-add:hover,
.span-add:focus {
	color: var(--primary-color);
	opacity: 100%;
}
.span-question {
	padding: 5px;
	margin-bottom: auto;
	display: flex;
	vertical-align: top;
	color: var(--custom-yellow);
}

span > i {
	margin: 0px;
}

/*********************  The Modal (background) *********************/
.modal {
	display: none; /* Hidden by default */
	position: fixed; /* Stay in place */
	z-index: 100; /* Sit on top */
	padding-top: 10vh; /* Location of the box */
	left: 0;
	top: 0;
	width: 100%; /* Full width */
	height: 100%; /* Full height */
	overflow: auto; /* Enable scroll if needed */
	background-color: rgba(0, 113, 189, 0.2); /* Blue w/ opacity */
	backdrop-filter: blur(1px);
}

/* Modal Content */
.modal-inhalt {
	background-color: var(--background-grey);
	margin: auto;
	padding: 20px 2.5vw;
	border: 1px solid var(--primary-color);
	width: fit-content;
	max-height: 80vh;
	max-width: 90vw;
	overflow-y: auto;
	border-radius: 10px;
	text-align: center;
	min-height: 15vw;
}

/* The Close Button */
.close {
	color: black;
	float: right;
	font-size: 20px;
	font-weight: bold;
}

.close:hover,
.close:focus {
	color: #000;
	text-decoration: none;
	cursor: pointer;
}

#modal-text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

#modal-tag {
	font-size: 1.5vw;
	font-weight: bold;
	margin: 10px;
}

.modal-p {
	font-size: 1vw;
	margin-left: 0;
}

hr {
	border-style: solid;
	background: black;
}

select {
	padding: 2.5px;
	border-radius: 5px;
	margin: 5px;
	background-color: var(--third-color);
}


/********************* SCHICHT EDITIEREN ELEMENTE *********************/

.schicht-input-div {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

.schicht-input-div label {
	margin: 5px;
}

.schicht-input {
	margin: 5px;
	border-radius: 5px;
	max-width: 125px;
	border: 1px solid var(--secondary-color);
	height: 20px;
	box-sizing: border-box;
}

.schicht-input[type="number"] {
	width: 50px;
}

select.schicht-input {
	background-color: white;
	padding: 0;
}

#submitAdd,
#submitEdit {
	padding: 5px;
	width: 100px;
	height: 30px;
}

/********************* SYSTEM NACHRICHTEN *********************/

.nachricht-background {
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.4);
	position: fixed;
	z-index: 1000;
	top: 0;
	left: 0;
	overflow: auto;
}

.nachricht-box {
	margin: auto;
	display: flex;
	flex-direction: column;
	border: 1px solid black;
	border-radius: 10px;
	width: 30vw;
	box-shadow: 0px 0px 20px black;
	position: absolute;
	z-index: 1000;
	overflow-y: auto;
	background-color: white;
	top: 20vh;
	left: 35vw;
}

.nachricht-icon {
	padding: 1%;
	width: auto;
	margin: 10px 0px 0px 10px;
	align-self: center;
}

.nachricht-icon > span {
	padding: 1%;
}

.nachricht-icon i {
	font-size: 2vw;
}

.bi-exclamation-octagon-fill {
	color: var(--custom-red);
}

.bi-shield-fill-check {
	color: #5bad58;
}

.bi-exclamation-triangle-fill {
	color: orange;
}

.nachricht-inhalt {
	display: flex;
	flex-direction: column;
	justify-content: left;
	margin: 0px 10px 0px 2vw;
	padding: 10px;
}

.nachricht-titel {
	margin: 0;
	margin-bottom: 5px;
}

.nachricht-buttons {
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #f2f2f2;
	border-bottom-right-radius: 10px;
	border-bottom-left-radius: 10px;
	vertical-align: bottom;
	width: 100%;
}
.nachricht-buttons > button {
	margin: 10px;
	border: 1px solid var(--secondary-color);
	background-color: var(--primary-color);
	color: white;
	border-radius: 5px;
	min-width: 5vw;
	width: auto;
	height: auto;
	padding: 1%;
}

.nachricht-buttons > button:hover {
	background-color: var(--secondary-color);
}

.nachricht-buttons > button:active {
	background-color: var(--secondary-color);
	transform: translateY(1px);
}

.line-break {
	width: 100%;
}

/********************* Schicht Input Feld *********************/

.input-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 100%;
}

#input-header {
	font-weight: bold;
	margin-bottom: 10px;
}

.input-item {
	width: 100%;
	text-align: left;
}

input[type="checkbox"].input-item {
	width: 20px;
	margin: 0;
	cursor: pointer;
}

input[type="text"].input-item {
	padding: 2.5px;
	padding-left: 9px;
	border: 1px solid rgb(118, 118, 118);
	border-radius: 5px;
	margin: 5px;
	background-color: var(--third-color);
	width: 100%;
	box-sizing: border-box;
}

#input-offenes-ende-div {
	margin-top: 5px;
	margin-bottom: 10px;
}

.input-zeiten {
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 90%;
	margin-bottom: 2.5px;
}

#input-schicht-farbe {
	appearance: none;
    background: transparent;
	--webkit-appearance: none;
	--moz-appearance: none;
	cursor: pointer;
	border: none;
	height: 25px;
	transition: transform 0.5s ease-out;
}

#input-schicht-farbe::-webkit-color-swatch {
	border: none;
	padding: 0;
	border-radius: 10px;
}

#input-schicht-farbe::-webkit-color-swatch-wrapper {
	border: none;
	padding: 0;
	border-radius: 10px;
}

#input-schicht-farbe::-moz-color-swatch {
    border: none;
	padding: 0;
	border-radius: 10px;
}

#input-schicht-notiz {
    border-radius: 5px;
    margin: 5px;
}

#input-schicht-farbe:hover {
	transform: scale(1.1);
}

.input-zeiten > div {
	display: flex;
	align-items: center;
}

#input-zeiten-tabelle {
    flex-direction: column;
    display: flex;
    justify-content: center;
    align-items: center;

}

#input-zeiten-tabelle > span {
	margin-top: 10px;
	margin-bottom: 5px;
}

.zeitblock-summe {
	text-align: center;
	padding: 10px 0;
	font-weight: bold;
}

#vorlage-buttons > button,
.submit-buttons > button {
	color: white;
	border-color: inherit;
}

.submit-buttons, #vorlage-buttons {
	display: flex;
    justify-content: space-between;
    width: 100%;
}

#vorlage-buttons > button:hover,
.submit-buttons > button:hover {
	opacity: 0.7;
}

#vorlage-submit, #input-submit {
	background-color: var(--custom-green);
}

#vorlage-delete, #input-delete {
	background-color: var(--custom-red);
}

.horizontal-line {
	width: 100%;
	background: var(--primary-color);
    color: var(--primary-color);
}

.input-button {
	height: 30px;
	max-width: 200px;
	background-color: var(--primary-color);
	color: white;
	border: 1.5px solid var(--secondary-color);
	border-radius: 10px;
}

.input-button:hover {
	cursor: pointer;
	background-color: var(--secondary-color);
}

#input-submit {
	background-color: var(--custom-green);
}

#input-submit:hover {
	background-color: #00823acc;
}

#zeiten-tabelle {
	border-spacing: 1px;
}

#zeiten-tabelle th {
	background-color: var(--secondary-color);
	color: white;
	padding: 5px 10px;
	border-radius: 2px;
	max-width: 17vw;
}

#zeiten-tabelle td {
	border: none;
	padding: 0px;
	border-radius: 2px;
	max-width: 17vw;
}
#zeiten-tabelle td > * {
	max-width: 16vw;
}

#loader-div {
	display: none;
	position: fixed;
	height: 100%;
	width: 100%;
	z-index: 2000;
	background-color: rgba(0, 0, 0, 0.5);
	top: 0;
	left: 0;
}

#zeitblock-button {
	background-color: var(--third-color);
	border: 1.5px solid var(--secondary-color);
	border-radius: 10px;
	margin: 5px;
	width: 50%;
}

#zeitblock-button:hover {
	background-color: var(--secondary-color);
	color: white;
	cursor: pointer;
}

.zeitblock-zeile {
	background-color: var(--third-color);
}

#loader {
	border: 16px solid var(--third-color); /* Light blue */
	border-top: 16px solid var(--secondary-color); /* Blue */
	border-radius: 50%;
	width: 120px;
	height: 120px;
	animation: spin 2s linear infinite;
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	bottom: 0;
	margin: auto;
}

.remove-row {
	color: var(--custom-red);
}

.remove-row:hover {
	color: black;
	cursor: pointer;
}

.card-mo {
	grid-column: 1;
}

.card-di {
	grid-column: 2;
}

.card-mi {
	grid-column: 3;
}

.card-do {
	grid-column: 4;
}

.card-fr {
	grid-column: 5;
}
.card-sa {
	grid-column: 6;
}

.card-so {
	grid-column: 7;
}

.card-header {
	font-weight: bold;
}

.card-day {
	font-weight: bold;
	border: 1px soild var(--primary-color);
	border-top-left-radius: 20px;
	border-top-right-radius: 20px;
	color: white;
	padding: 0.25em;
	background-color: var(--secondary-color);
}

.card {
	padding: 0.5rem;
	border: 1px solid var(--primary-color);
	border-radius: 5px;
	background-repeat: no-repeat;
	background-size: 0.8vw;
	background-position: right 5px top 5px;
}

.gedeckt,
.bg-green {
	background-color: var(--custom-green);
	color: white;
	background-image: url("../icons/check-lg.svg");
}

.ungedeckt,
.bg-red {
	background-color: var(--custom-red);
	color: white;
	background-image: url("../icons/exclamation-circle.svg");
}

.bg-yellow {
	background-color: var(--custom-yellow);
	color: black;
	background-image: url("../icons/info-circle.svg");
}

#nachrichten-feed {
	position: absolute;
	bottom: 10px;
	right: 10px;
	display: flex;
	flex-direction: column;
	row-gap: 5px;
	pointer-events: none;
}

#kleine-system-nachricht {
	display: flex;
	width: 200px;
	min-height: 25px;
	max-height: 100px;
	padding: 10px 10px;
	padding-left: 30px;
	font-size: 12px;
	font-weight: bold;
	z-index: 99999;
	border: 1px solid black;
	border-radius: 10px;
	opacity: 0;
	transition: opacity 0.5s ease-out;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: left;
	background-repeat: no-repeat;
	background-size: auto;
	background-position: 5px center;
	pointer-events: none;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Hochkant Tablet/Smartphone Mode */
@media only screen and (max-width: 700px) {
	* {
		font-size: 8px;
	}
	#neolohn-clock {
		display: none;
	}
	#vorlagen-uebersicht,#vorlagen-sidebar {
		display: none;
	}
	#kleine-system-nachricht {
		left: 50%;
		right: unset;
		transform: translateX(-50%);
	}
	.grid-element, .ma-qualifikationen {
		font-size: 8px;
	}
	.grid-element {
		min-height: unset;
	}
	#top-header {
		display: grid;
		font-size: 10px;
		gap: 2.5px;
		grid-template-columns: repeat(2, 1fr);
	}
	#select-betriebsstaette {
		max-width: 250px;
	}
	#neolohn-link {
		grid-area: 1 / 1;
		margin-right: auto;
	}
	#neolohn-link img {
		height: 30px;
	}
	#logout {
		grid-area: 1 / 2;
	}
	#dienstplan-bs-info {
		grid-column: span 2;
	}

	#select-betriebsstaette {
		font-size: 10px;
	}
	
	#grid-toolbar {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		position: unset;
	}

	.kal-nav-div {
		width: 100%;
    	justify-content: flex-end;
	}
	#kal-woche {
		font-size: 10px;
	}
	
	.toolbar-button-div {
		grid-column: span 2;
		margin: auto;
		gap: 2.5px;
		flex-wrap: wrap;
		justify-content: center;
	}
	.vorlage-tb-div {
		flex-basis: 100%;
		display: flex;
		justify-content: center;
	}
	#logout-link-div * {
		font-size: 12px;
	}

	.zeiten-ma {
		overflow: auto;
	}
	.ma-status-grid {
		padding: 1px;
	}
	.ma-status-grid * {
		font-size: 6px;
	}
	.ma-status-grid > div {
		justify-content: flex-start;
	}
	.ma.grid-element > input {
		display: none;
	}
	.ma.grid-element {
		padding: 0 1px;
	}
	.schicht-div {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		width: 85%;
		margin: 1.5%;
		padding: 0;
		border: 3px solid var(--secondary-color);
		border-radius: 10px;
		background-color: white;
		color: var(--secondary-color);
	}
	.schicht-inhalt, .span-div {
		margin: auto;
	}
	.schicht-freigabe-status {
		margin: 0;
	}
	.wunschzeit-positiv, .wunschzeit-negativ {
		background-repeat: no-repeat;
		background-size: 10px;
		background-position: top 2px left 2px
	}
	.wunschzeit-positiv.wunschzeit-hide,
	.wunschzeit-negativ.wunschzeit-hide {
		background-image: none;
	}

	.toolbar-button,
	.toolbar-button > i {
		font-size: 12px;
	}
	.kal-nav,
	.kal-nav-div {
		font-size: 16px;
	}

	.header {
		font-size: 9px;
		height: auto;
		text-align: center;
		hyphens: auto;
		-webkit-hyphens: auto;
		-moz-hyphens: auto;
		top: 0px;
		font-weight: normal;
	}
	.notiz-header {
		position: unset;
	}
	.tages-notiz {
		max-height: 40px;
		padding: 0;
	}
	.schicht-titel,
	.schicht-beschreibung,
	.schicht-panel .schicht-titel {
		font-size: 7px;
		line-height: 1;
		margin: 2.5px 0;
	}
	.span-tools > i {
		font-size: 16px;
	}
	.tageskosten > p {
		font-size: 8px;
	}

	.gridMenu .item {
		font-size: 8px;
	}
}

@media print {
	* {
		overflow: hidden !important;
	}
	.feiertag-label {
		display: none;
	}
	#container {
		height: auto
	}	

	#vorlagen-uebersicht,#vorlagen-sidebar {
		display: none;
	}
	@page {
		margin: 1cm;
	}

	.grid-element {
		page-break-inside: avoid; /* Avoid page breaks within elements */
        overflow: visible !important; /* Ensure content is not cut off */
	}

	.hidden-print, .ms, .ge, .gesamt-tages-summe, .tages-summe {
		display: none !important;
	}

	#bereich-select, #select-betriebsstaette {
		border: none;
		background-color: transparent;
		color: var(--primary-color);
		appearance: none;
		font-weight: bold;
		font-size: 10px;
	}
	.bereich-select-div {
		font-size: 10px;
	}
	#kal-woche {
		font-size: 12px;
	}
	.gridcontainer {
		display: grid;
		grid-gap: 2.5px;
		grid-template-columns: repeat(8, 1fr);
		grid-template-rows: auto;
		grid-template-areas: "schicht montag dienstag mittwoch donnerstag freitag samstag sonntag";
		justify-content: center;
	}

	#neolohn-link {
		grid-area: 1 / 2;
		justify-self: right;
		min-width: 0% !important;
	}
	#neolohn-link img {
		height: 20px;
	}

	#dienstplan-bs-info {
		justify-self: left;
	}

	#top-header, #grid-toolbar, .area-header {
		grid-column: span 8;
		color: black;
		background-color: white;
		grid-template-rows: auto;
	}

	#top-header {
		grid-template-columns: 1fr 1fr;
		font-size: 10px;
		padding-top: 0;
	}

	.header {
		color: var(--primary-color);
		background-color: transparent;
		font-size: 10px;
		height: auto;
	}

	.area-header {
		color:  var(--primary-color);
		background-color: var(--third-color);
		padding: 0;
	}

	#grid-content {
		display: grid;
		grid-column: span 8;
		grid-template-columns: repeat(8, 1fr);
		grid-template-rows: auto;
		grid-template-areas: "schicht montag dienstag mittwoch donnerstag freitag samstag sonntag";
		gap: 0px;
		border-radius: 0;
	}

	.grid-element {
		border: 1px solid black;
		border-top: none;
		border-left: none;
		border-radius: 5px;
		font-size: 10px;
		min-height: 20px;
		background-color: white;
	}
	.grid-element.tag {
		max-width: 100%;
		border-radius: 0;
		margin: 0;
	}
	.ma.grid-element.tag {
		border-left: 1px solid black;
	}
	.schicht-div {
		margin: 0;
		border: none;
		border-radius: 0;
		background-color: transparent !important;
		color: black;
		width: 90%;
		border-left: 2px solid;
	}
	.grid-element.zeiten-ma {
		display: none;
	}

	.wunschzeit-positiv, .wunschzeit-negativ {
		background-image: none !important;
	}

	.tag-urlaub {
		display: none;
	}
	.ma-info > span {
		font-size: 8px;
	}
	.ma-qualifikationen {
		font-size: 7px;
	}

	.grid-element.area-header {
		border: 1px solid var(--primary-color);
		border-top-width: 2px;
		border-radius: 0;
		margin: 0;
	}

	.kal-nav-div {
		grid-column: 2 / 3;
	}
	
	.schicht-inhalt {
		margin-right: auto !important;
		max-width: 90%;
		margin-left: 5px !important;
		text-align: left;
	}
	.schicht-panel .schicht-titel,
	.schicht-div * {
		font-size: 8px;
	}
	.schicht-div.schicht-panel * {
		color: var(--secondary-color);
		font-size: 8px;
	}
	#kleine-system-nachricht {
		display: none;
	}

	#tagesnotizen {
		grid-column: span 1;
		text-align: center;
	}

	.tages-notiz {
		border: none;
		background-color: transparent;
		overflow: hidden;
		height: auto;
		font-size: x-small;
		color: black;
	}

	.notiz-header {
		display: block;
		height: auto;
	}

	.tages-notiz::-webkit-input-placeholder {
		color: transparent;
	}
	.tages-notiz::-moz-placeholder {
		color: transparent;
	}
}