/* GENERAL */

html, body {
	height: auto;
}

.datepicker {
	margin-top: 5px;
}

hr.fieldset {
	margin-top: 2px;
}

/* TOOLTIP */
.tooltip {
	pointer-events: none;
}

.tooltip-inner {
	max-width: 350px;
	text-align: justify;
}

.tooltip-inner span {
	white-space: nowrap;
}

/* CALENDAR */

.calendar {
	table-layout: fixed;
	opacity: 0;
}

.calendar th.first-line {
	background-color: white;
	position: sticky;
  	top: 47px;
  	z-index: 666;
}

.calendar td {
	font-size: 0.7rem;
	line-height: 1;
	padding: 0 !important;
}

.calendar .shift small {
	padding: 0px 2px;
}

.calendar td.shift-size-1 .shift {
	height: 32px;
}

.calendar td.shift-size-2 .shift {
	height: 16px;
}

.calendar td.shift-size-3 .shift {
	height: 10.67px;
	font-size: 0.6rem;
}

.calendar td.shift-size-4 .shift {
	height: 8px;
	font-size: 0.5rem;
}

.calendar .shift-incomplete {
	background-color: #7FB685 !important;
}

.calendar .shift-complete {
	background-color: #DB5461 !important;
}

.calendar .shift-requested {
	background-color: #067BC2 !important;
}

.calendar .shift-core {
	background-color: #FFA500 !important;
}

.calendar .shift-requested.shift-backup-normal, .calendar .shift-requested.shift-backup-core, .calendar .shift-requested.shift-complete, .shift-complete.shift-backup-normal, .shift-complete.shift-backup-core {
	background-color: #FF0000 !important;
	background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5) 24px, transparent 24px, transparent 48px);
}

.calendar .shift-incomplete.shift-backup-foreign {
	background-color: #999999 !important;
}

.calendar th.saturday, .calendar th.sunday {
	color: red;
}

/* NOTIZEN (EDSD-85) */

/*
 * Tage mit einem Hinweis werden gelb hervorgehoben. Wo ein Dienst liegt,
 * deckt dessen eigenes Feld die Faerbung ab - die Dienstfarben bleiben
 * dadurch unveraendert und nur die freien Zellen werden gelb.
 */
.calendar .note-day {
	background-color: #fff3cd !important;
}

/*
 * Hinweiszeile unter der Datumszeile in der Kalenderansicht. Absichtlich
 * nicht sticky: die Datumszeile darueber klebt bei top 47px, ein zweiter
 * Wert waere geraten und die Zeilen wuerden sich bei falscher Hoehe
 * ueberlappen.
 */
/*
 * vertical-align: middle - Bootstrap richtet Tabellenzellen oben aus, und
 * weil Beschriftung und Text unterschiedlich gross sind, lagen ihre
 * Grundlinien dadurch versetzt.
 */
.calendar tr.note-row td {
	background-color: white;
	color: #856404;
	font-weight: 600;
	white-space: normal;
	line-height: 1.3;
	vertical-align: middle;
	/* Etwas Hoehe, damit die Zeile nicht gequetscht wirkt. */
	padding: 7px 4px !important;
}

/* Die Beschriftung bleibt in der Schriftgroesse der uebrigen Zeilenkoepfe. */
.calendar tr.note-row th {
	background-color: white;
	color: #6c757d;
	font-weight: 400;
	vertical-align: middle;
	padding: 7px 4px !important;
}

.calendar tr.note-row td.note-day {
	background-color: #fff3cd !important;
}

/* PLANUNGSZEILEN UNTER DEN STANDORTEN (EDSD-82) */

.calendar tr.planning-row th {
	background-color: white;
	color: #6c757d;
	font-weight: 400;
	padding: 7px 4px !important;
	vertical-align: top;
}

/*
 * Die Liste der freien Notaerzte kann lang werden, deshalb umbrechen und
 * kleiner setzen als die Dienstfelder.
 */
.calendar td.planning-cell {
	background-color: white;
	color: #212529;
	font-size: 0.65rem;
	line-height: 1.25;
	white-space: normal;
	text-align: left;
	vertical-align: top;
	padding: 5px 4px !important;
}

/* Notizzeilen: ein Klick oeffnet die Notiz des Tages (nur Planungsteam). */
.calendar td.note-cell {
	cursor: pointer;
}

.calendar td.note-cell:hover {
	box-shadow: inset 0 0 0 2px #ffc107;
}

/* DATEPICKER */

.date-input .datepicker {
	margin: auto;
}

.datepicker table tr td.highlighted {
	background-color: var(--yellow) !important;
}

.datepicker table tr td.active {
	background-color: #aaa !important;
}

/* ICONBAR */

.navbar .icon {
	min-width: 50px;
    display: block;
    text-align: center;
    transition: all 0.3s ease;
    padding: 6px;
    color: black !important;
    font-size: 24px;
}

.navbar .icon:hover, .navbar .icon.active {
    background-color: var(--secondary) !important;
    color: white !important;
}

.navbar .icon:hover img, .navbar icon.active img {
    -webkit-filter: invert(100%);
    filter: invert(100%);
}

.navbar .brand img {
	height: 24px;
	margin-bottom: 6px;
}

/* FILTERBAR */

.filter-bar .card {
    background-color: var(--light) !important;
	border: none;
	border-radius: 0;
}

.filter-bar .card-header {
	padding: 0;
    background-color: var(--light) !important;
    border: none;
}

[data-toggle="collapse"] .fa:before {   
  content: "\f077";
}

[data-toggle="collapse"].collapsed .fa:before {
  content: "\f078";
}
