/* Fahrdienst-Planer */

.elterntaxiWeekNav {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

.elterntaxiWeekNav__label {
	flex: 1;
	text-align: center;
}

.elterntaxiWeekNav__range {
	color: var(--wcfContentDimmedText);
	display: block;
	font-size: var(--wcfFontSizeSmall);
}

.elterntaxiWeekActions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

/* Wochenplan als Tabelle: eine Zeile je Tag, Hinfahrt | Rueckfahrt */

.elterntaxiWeekWrap {
	overflow-x: auto;
}

.elterntaxiWeek {
	border-collapse: collapse;
	width: 100%;
}

.elterntaxiWeek th,
.elterntaxiWeek td {
	border: 1px solid var(--wcfContentBorderInner);
	padding: 8px 10px;
	text-align: left;
	vertical-align: top;
}

.elterntaxiWeek thead th {
	background: var(--wcfTabularBoxBackgroundActive);
	font-weight: 600;
	white-space: nowrap;
}

.elterntaxiWeek__dayHead {
	width: 120px;
}

.elterntaxiWeek__slotHead {
	width: 50%;
}

.elterntaxiWeek__time {
	color: var(--wcfContentDimmedText);
	font-weight: normal;
	margin-left: 6px;
}

.elterntaxiDay__label {
	white-space: nowrap;
}

.elterntaxiDay--today .elterntaxiDay__label {
	box-shadow: inset 3px 0 0 var(--wcfContentLinkActive);
}

.elterntaxiDay__name {
	display: block;
	font-weight: 600;
}

.elterntaxiDay__date {
	color: var(--wcfContentDimmedText);
	display: block;
	font-size: var(--wcfFontSizeSmall);
	font-weight: normal;
}

.elterntaxiDay__toggle {
	background: none;
	border: 0;
	color: var(--wcfContentDimmedText);
	cursor: pointer;
	margin-top: 4px;
	padding: 0;
}

.elterntaxiDay__toggle:hover {
	color: var(--wcfContentLinkActive);
}

.elterntaxiDay--free td,
.elterntaxiDay--free th {
	background: var(--wcfContentContainerBackground);
	color: var(--wcfContentDimmedText);
}

.elterntaxiDay__free {
	font-style: italic;
}

.elterntaxiSlot {
	min-width: 220px;
}

/* Ein Auto: Kopfzeile mit Fahrer, darunter die Kinder */

.elterntaxiCar {
	padding: 2px 0;
}

.elterntaxiCar + .elterntaxiCar {
	border-top: 1px dashed var(--wcfContentBorderInner);
	margin-top: 6px;
	padding-top: 8px;
}

.elterntaxiCar--overbooked .elterntaxiCar__seats {
	color: var(--wcfStatusErrorText);
	font-weight: 600;
}

.elterntaxiCar--cancelled {
	opacity: 0.55;
}

.elterntaxiCar__driver {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	min-height: 28px;
}

.elterntaxiCar__driverName {
	font-weight: 600;
}

.elterntaxiCar__driverName--open {
	color: var(--wcfStatusWarningText);
	font-weight: 600;
}

.elterntaxiCar__seats,
.elterntaxiCar__time {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.elterntaxiCar__actions {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-left: auto;
}

.elterntaxiCar__driverSelect {
	font-size: var(--wcfFontSizeSmall);
	max-width: 11em;
}

.elterntaxiCar__delete {
	background: none;
	border: 0;
	color: var(--wcfContentDimmedText);
	cursor: pointer;
	padding: 2px 4px;
}

.elterntaxiCar__delete:hover {
	color: var(--wcfStatusErrorText);
}

.elterntaxiCar--add {
	background: none;
	border: 0;
	color: var(--wcfContentDimmedText);
	cursor: pointer;
	font-size: var(--wcfFontSizeSmall);
	margin-top: 4px;
	padding: 2px 0;
}

.elterntaxiCar--add:hover {
	color: var(--wcfContentLinkActive);
}

.elterntaxiCar__children,
.elterntaxiPending,
.elterntaxiSkipped {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 4px 0 0;
	min-height: 30px;
	padding: 2px;
}

.elterntaxiPending--empty:not(.elterntaxiDropZone--active) {
	margin: 0;
	min-height: 0;
	padding: 0;
}

.elterntaxiPlanner--selecting .elterntaxiPending--empty,
.elterntaxiDragging .elterntaxiPending--empty {
	margin-top: 4px;
	min-height: 30px;
	padding: 2px;
}

.elterntaxiCar__empty {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	font-style: italic;
}

.elterntaxiWeekLegend {
	color: var(--wcfContentDimmedText);
	display: flex;
	flex-wrap: wrap;
	font-size: var(--wcfFontSizeSmall);
	gap: 16px;
	margin-top: 8px;
}

/* Kind-Chips */

.elterntaxiChip {
	align-items: center;
	background: var(--elterntaxiChipColor, var(--wcfButtonBackground));
	border: 1px solid var(--wcfContentContainerBorder);
	border-radius: 999px;
	display: inline-flex;
	gap: 6px;
	font-size: var(--wcfFontSizeSmall);
	padding: 4px 10px;
}

.elterntaxiChip--draggable {
	cursor: grab;
	/* Projektkonvention aus tippspiel: das Greifen bleibt beim Ziehen sichtbar. */
	/* Ohne diese Zeile deutet der Browser die Geste als Scrollen und der Chip
	   laesst sich auf dem Handy nicht ziehen. */
	touch-action: none;
	user-select: none;
}

.elterntaxiChip--draggable:active {
	cursor: grabbing;
}

.elterntaxiChip--dragging {
	opacity: 0.35;
}

.elterntaxiChip--selected {
	box-shadow: 0 0 0 2px var(--wcfContentLinkActive);
}

.elterntaxiChip--ghost {
	left: 0;
	/* Muss durchlaessig sein, sonst findet die Trefferpruefung beim Ziehen
	   nur das Abbild selbst und nie die Ablageflaeche darunter. */
	pointer-events: none;
	position: fixed;
	top: 0;
	z-index: 900;
	opacity: 0.9;
}

.elterntaxiChip--pending {
	background: transparent;
	border: 1px dashed var(--wcfStatusWarningText);
}

.elterntaxiChip--skipped {
	background: transparent;
	color: var(--wcfContentDimmedText);
	text-decoration: line-through;
}

.elterntaxiChip--legend {
	padding: 1px 8px;
}

.elterntaxiChip__class {
	color: var(--wcfContentDimmedText);
	font-size: 11px;
}

.elterntaxiChip__remove {
	background: none;
	border: 0;
	color: var(--wcfContentDimmedText);
	cursor: pointer;
	line-height: 1;
	padding: 0;
}

/* Ablageflaechen */

.elterntaxiDropZone {
	border: 1px dashed transparent;
	border-radius: var(--wcfBorderRadius);
	transition: background-color 0.1s linear, border-color 0.1s linear;
}

.elterntaxiPlanner--selecting .elterntaxiDropZone,
.elterntaxiDragging .elterntaxiDropZone {
	border-color: var(--wcfContentBorderInner);
}

.elterntaxiDropZone--active {
	background: var(--wcfContentContainerBackground);
	border-color: var(--wcfContentLinkActive);
}

.elterntaxiPlanner--busy {
	opacity: 0.6;
	pointer-events: none;
}

/* Handy: Tabelle wird zur Liste - Tag, darunter Hin- und Rueckfahrt */
@media (max-width: 640px) {
	.elterntaxiWeek thead {
		display: none;
	}

	.elterntaxiWeek,
	.elterntaxiWeek tbody,
	.elterntaxiWeek tr,
	.elterntaxiWeek th,
	.elterntaxiWeek td {
		display: block;
		width: auto;
	}

	.elterntaxiWeek tr {
		border: 1px solid var(--wcfContentBorderInner);
		margin-bottom: 10px;
	}

	.elterntaxiWeek th,
	.elterntaxiWeek td {
		border: 0;
		border-top: 1px solid var(--wcfContentBorderInner);
	}

	.elterntaxiDay__label {
		background: var(--wcfTabularBoxBackgroundActive);
		border-top: 0 !important;
	}

	.elterntaxiDay__name,
	.elterntaxiDay__date {
		display: inline;
		margin-right: 6px;
	}

	.elterntaxiSlot::before {
		color: var(--wcfContentDimmedText);
		content: attr(data-label);
		display: block;
		font-size: var(--wcfFontSizeSmall);
		margin-bottom: 2px;
	}
}

@media print {
	.elterntaxiWeekNav,
	.elterntaxiWeekActions,
	.elterntaxiCar__actions,
	.elterntaxiCar--add,
	.elterntaxiChip__remove,
	.elterntaxiPending--empty,
	.elterntaxiCar__delete,
	.elterntaxiDay__toggle,
	.elterntaxiWeekLegend {
		display: none !important;
	}

}

/* Rangliste */

.elterntaxiFairness--credit {
	color: var(--wcfStatusSuccessText);
}

.elterntaxiFairness--debt {
	color: var(--wcfStatusWarningText);
}

.elterntaxiFairness small {
	color: var(--wcfContentDimmedText);
	display: block;
}

.elterntaxiGroupItem {
	align-items: flex-start;
	display: flex;
	gap: 12px;
	justify-content: space-between;
}

.elterntaxiTimeWindow {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-left: 12px;
}

.elterntaxiTimeWindow label {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

.elterntaxiDayCheckbox {
	display: inline-block;
	margin-right: 14px;
}

.elterntaxiMyChildren {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* Boxen */

.elterntaxiBoxList {
	list-style: none;
	margin: 0;
	padding: 0;
}

.elterntaxiBoxList li + li {
	border-top: 1px solid var(--wcfContentBorderInner);
	margin-top: 6px;
	padding-top: 6px;
}

.elterntaxiBoxList__day {
	font-weight: 600;
}

.elterntaxiBoxList__direction {
	margin-left: 4px;
}

.elterntaxiBoxList__meta {
	color: var(--wcfContentDimmedText);
	display: block;
	font-size: var(--wcfFontSizeSmall);
}

.elterntaxiBoxList__meta--open {
	color: var(--wcfStatusWarningText);
}

/* Farbauswahl für Kinder */

.elterntaxiColorChoice {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.elterntaxiColorChoice__option {
	cursor: pointer;
	display: inline-flex;
}

.elterntaxiColorChoice__option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.elterntaxiColorChoice__swatch {
	align-items: center;
	border: 2px solid var(--wcfContentBorderInner);
	border-radius: 999px;
	display: inline-flex;
	height: 34px;
	justify-content: center;
	min-width: 34px;
	padding: 0 10px;
}

.elterntaxiColorChoice__swatch--none {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
}

/* Die Auswahl muss auch ohne Farbwahrnehmung erkennbar sein, deshalb ein
   deutlicher Rahmen zusätzlich zur Färbung. */
.elterntaxiColorChoice__option input:checked + .elterntaxiColorChoice__swatch {
	border-color: var(--wcfContentLinkActive);
	box-shadow: 0 0 0 2px var(--wcfContentLinkActive);
}

.elterntaxiColorChoice__option input:focus-visible + .elterntaxiColorChoice__swatch {
	outline: 2px solid var(--wcfContentLinkActive);
	outline-offset: 2px;
}

.elterntaxiChip--skipped {
	opacity: 0.6;
	text-decoration: line-through;
}

.elterntaxiSlot__skipped {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}

.elterntaxiInviteCode {
	font-family: var(--wcfFontFamilyMonospace, monospace);
	letter-spacing: 0.12em;
	text-transform: uppercase;
	width: 12em;
}

.elterntaxiDay__actions {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 4px;
}

.elterntaxiCar__driverSelect {
	font-size: var(--wcfFontSizeSmall);
	max-width: 12em;
}

/* Stundenplan-Uebersicht */

.elterntaxiOverviewWrap {
	overflow-x: auto;
}

.elterntaxiOverview {
	min-width: 720px;
}

.elterntaxiOverview th,
.elterntaxiOverview td {
	text-align: center;
	vertical-align: top;
}

.elterntaxiOverview__subhead th {
	color: var(--wcfContentDimmedText);
	font-weight: normal;
}

.elterntaxiOverview__week {
	text-align: left !important;
	white-space: nowrap;
}

.elterntaxiOverview__cell {
	min-width: 5em;
	position: relative;
	padding-top: 16px !important;
}

.elterntaxiOverview__date {
	color: var(--wcfContentDimmedText);
	font-size: 10px;
	left: 4px;
	position: absolute;
	top: 2px;
}

.elterntaxiOverview__driver {
	display: block;
	font-size: var(--wcfFontSizeSmall);
	white-space: nowrap;
}

.elterntaxiOverview__open {
	color: var(--wcfStatusWarningText);
	font-weight: 600;
}

.elterntaxiOverview__free {
	color: var(--wcfContentDimmedText);
}

.elterntaxiOverview__cell--free {
	background: var(--wcfContentContainerBackground);
}

.elterntaxiOverview__cell--today {
	box-shadow: inset 0 0 0 2px var(--wcfContentLinkActive);
}

.elterntaxiOverview__cell--past {
	opacity: 0.55;
}

.elterntaxiOverview__legend {
	color: var(--wcfContentDimmedText);
	font-size: var(--wcfFontSizeSmall);
	margin-top: 8px;
}

.elterntaxiOverviewExport {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.elterntaxiOverviewExport__hint {
	color: var(--wcfContentDimmedText);
}

.elterntaxiOverview__cell {
	position: relative;
}

/* Die ganze Zelle ist der Link in den Wochenplan */
.elterntaxiOverview__link {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.elterntaxiOverview__cell:hover {
	background-color: var(--wcfTabularBoxBackgroundActive);
	cursor: pointer;
}

@media print {
	.elterntaxiOverview__cell--past {
		opacity: 1;
	}

	.elterntaxiOverviewExport,
	.elterntaxiWeekNav,
	.contentHeaderNavigation,
	.pageNavigation,
	.boxesSidebarRight,
	.pageFooter {
		display: none !important;
	}

	.elterntaxiOverview {
		font-size: 11pt;
	}
}
