/**
 * Elastic layout glue for the calendar plugin.
 * Fullcalendar / Kolab widget styles come from libkolab.css.
 */

#layout-sidebar {
	display: flex;
	flex-direction: column;
}

#layout-sidebar #datepicker,
#layout-sidebar .calendar-datepicker {
	flex: 0 0 auto;
}

#layout-sidebar #calendars {
	flex: 1 1 auto;
	overflow: auto;
	visibility: inherit;
}

#layout-sidebar .footer .toolbar {
	justify-content: center;
}

#calendar.content {
	overflow: hidden !important;
	position: relative;
	min-height: 0;
}

#timezonedisplay {
	position: absolute;
	right: 0.75rem;
	bottom: 0.35rem;
	z-index: 2;
	font-size: 0.75rem;
	opacity: 0.65;
	pointer-events: none;
}

#agendaoptions {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
}

#layout-sidebar #datepicker .ui-datepicker {
	width: 100% !important;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

#calendars .listing li > div {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

#calendars .listing span.calname {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#calendars .listing span.handle {
	display: inline-block;
	width: 0.7rem;
	height: 0.7rem;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.35);
	flex: 0 0 auto;
}

#calendars .listing span.actions a {
	padding: 0 0.2rem;
}

.uidialog {
	display: none;
}

.eventdialog .event-section,
.eventdialog .event-line {
	margin: 0.4rem 0;
}

.eventdialog .event-line label {
	display: inline-block;
	min-width: 8rem;
	font-weight: 600;
}

