/* Mini calendar widget — styles moved out of inline attributes for CSP (style-src-attr) */

#miniCalendar.mini-calendar-root {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	z-index: 2000;
	width: 146px;
}

/* Anchor wrapper for CSP-safe positioning (no inline styles) */
.mini-calendar-anchor {
	position: relative;
	display: inline-block;
}

/* Open state toggled by javascript/calendar.js */
#miniCalendar.mini-calendar-root.mini-calendar-root--open {
	display: block;
}

.cal-wrap {
	background: #b0b0b0;
	border: 1px solid #b0b0b0;
}

.cal-toolbar {
	font-size: 11px;
	overflow: hidden;
	height: 1%;
}

.cal-toolbar span {
	float: left;
}

.cal-tb-nav {
	float: left;
	padding: 3px 0 0 3px;
}

.cal-tb-nav--right {
	padding: 3px 3px 0 0;
}

.cal-tb-nav--month {
	padding: 3px 0 3px 10px;
}

.cal-tb-title {
	float: left;
	color: #fff;
	font-weight: bold;
	padding: 3px;
}

.cal-tb-close {
	float: right;
}

.cal-tb-close input[type="button"] {
	font-weight: bold;
	width: 20px;
	height: 20px;
	padding: 0;
}

.cal-tb-nav a,
.cal-tb-nav--right a,
.cal-tb-nav--month a {
	color: #fff;
	text-decoration: none;
}

.cal-body {
	background-color: #fff;
	border: 2px solid #dcdcdc;
	font-size: 11px;
}

.cal-body table {
	border-collapse: collapse;
	text-align: center;
}

.cal-body caption {
	overflow: hidden;
	width: 0;
	height: 0;
	line-height: 0;
	margin: 0;
	padding: 0;
	position: absolute;
	visibility: hidden;
}

.cal-body th {
	width: 20px;
	line-height: 18px;
	border-right: 1px solid #dcdcdc;
	border-bottom: 1px solid #dcdcdc;
}

.cal-cell {
	line-height: 18px;
	text-align: right;
	padding-right: 4px;
	width: 16px;
	border-right: 1px solid #dcdcdc;
	border-bottom: 1px solid #dcdcdc;
}

.cal-cell--empty {
	border-right: 1px solid #dcdcdc;
	border-bottom: 1px solid #dcdcdc;
}

.cal-cell--today {
	background-color: #dcdcdc;
}

.cal-cell a {
	text-decoration: none;
}

.cal-day--sun {
	color: red;
}

.cal-day--sat {
	color: blue;
}

.cal-day--week {
	color: #696969;
}

/* Wider variant used by /uni/js/calendar.js */
#miniCalendar.mini-calendar-root--wide {
	width: 250px;
	position: relative;
	z-index: 2000;
	background-color: #fff;
}
