.oics-calendar {
	font-family: inherit;
	color: inherit;
	margin: 1em 0;
}

.oics-toolbar {
	display: flex;
	align-items: center;
	gap: .5em;
	margin-bottom: .75em;
	flex-wrap: wrap;
}

.oics-toolbar .oics-month-label {
	margin: 0;
	flex: 1;
	text-align: center;
	font-size: 1.25em;
	text-transform: capitalize;
}

.oics-btn {
	display: inline-block;
	padding: .35em .75em;
	background: #f3f4f6;
	color: inherit;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	text-decoration: none;
	line-height: 1;
}
.oics-btn:hover { background: #e5e7eb; }
.oics-btn.oics-today { font-weight: 600; }

.oics-grid {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.oics-grid th,
.oics-grid td {
	border: 1px solid #e5e7eb;
	vertical-align: top;
	padding: 4px;
}

.oics-grid th {
	background: #f9fafb;
	font-size: .85em;
	text-align: center;
	padding: 6px 4px;
}

.oics-cell {
	height: 110px;
	position: relative;
	overflow: hidden;
}

.oics-cell.oics-out { background: #fafafa; color: #9ca3af; }
.oics-cell.oics-today-cell { background: #fff7ed; }

.oics-day-number {
	font-size: .8em;
	font-weight: 600;
	margin-bottom: 2px;
	text-align: right;
}

.oics-events {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.oics-events > .oics-event::before { content: none; }

.oics-event {
	font-size: .75em;
	line-height: 1.25;
}
.oics-event-trigger {
	display: block;
	width: 100%;
	text-align: left;
	background: #dbeafe;
	color: #1e3a8a;
	padding: 2px 4px;
	border: 0;
	border-radius: 3px;
	font: inherit;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.oics-event.oics-all-day .oics-event-trigger {
	background: #dcfce7;
	color: #166534;
}
.oics-event-trigger:hover,
.oics-event-trigger:focus {
	filter: brightness(.95);
	outline: 2px solid rgba(30, 58, 138, .35);
	outline-offset: 1px;
}
.oics-event .oics-time { font-weight: 600; margin-right: 3px; }

.oics-list-trigger {
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
	text-align: left;
}
.oics-list-trigger:hover strong { text-decoration: underline; }

.oics-list { list-style: none; padding: 0; margin: 0; }
.oics-list-item {
	display: flex;
	gap: 1em;
	padding: .75em 0;
	border-bottom: 1px solid #e5e7eb;
}
.oics-list-item::before { content: none; }
.oics-list-date {
	min-width: 110px;
	display: flex;
	flex-direction: column;
}
.oics-list-location { color: #6b7280; font-size: .9em; }

.oics-mobile-list { display: none; }

@media (max-width: 768px) {
	.oics-grid-wrap { display: none; }
	.oics-mobile-list { display: block; margin-top: .25em; }
}

.oics-mobile-day {
	padding: .5em 0;
	border-bottom: 1px solid #e5e7eb;
}
.oics-mobile-day.is-today .oics-mobile-day-header { color: #b45309; }
.oics-mobile-day-header {
	display: flex;
	align-items: baseline;
	gap: .5em;
	margin-bottom: .35em;
	color: #6b7280;
	font-size: .85em;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.oics-mobile-daynum {
	font-size: 1.2em;
	font-weight: 700;
	color: inherit;
}
.oics-mobile-dayname {
	text-transform: capitalize;
}
.oics-mobile-events {
	display: flex;
	flex-direction: column;
	gap: .35em;
}
.oics-mobile-event {
	display: flex;
	gap: .6em;
	align-items: baseline;
	width: 100%;
	background: #f3f4f6;
	border: 0;
	border-left: 3px solid #1e3a8a;
	border-radius: 4px;
	padding: .5em .65em;
	cursor: pointer;
	font: inherit;
	color: inherit;
	text-align: left;
}
.oics-mobile-event.oics-all-day {
	border-left-color: #166534;
	background: #dcfce7;
}
.oics-mobile-event .oics-time {
	font-weight: 600;
	min-width: 4.5em;
	color: #1e3a8a;
}
.oics-mobile-event.oics-all-day .oics-time { color: #166534; }
.oics-mobile-event .oics-title { flex: 1; }
.oics-mobile-empty {
	color: #6b7280;
	font-style: italic;
	padding: 1em 0;
}

.oics-modal[hidden] { display: none; }
.oics-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}
.oics-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, .55);
}
.oics-modal-panel {
	position: relative;
	background: #fff;
	color: #111827;
	max-width: 420px;
	width: 100%;
	border-radius: 8px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
	padding: 1.25rem 1.5rem 1.5rem;
	max-height: 85vh;
	overflow-y: auto;
	outline: none;
}
.oics-modal-close {
	position: absolute;
	top: .35rem;
	right: .5rem;
	background: none;
	border: 0;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #6b7280;
	padding: .25rem .5rem;
}
.oics-modal-close:hover { color: #111827; }
.oics-modal-title {
	margin: 0 1.5rem .5rem 0;
	font-size: 1.15rem;
	line-height: 1.3;
}
.oics-modal-when {
	margin: 0 0 .5rem;
	font-weight: 600;
	color: #1e3a8a;
}
.oics-modal-location {
	margin: 0 0 .75rem;
	color: #374151;
}
.oics-modal-location:empty { display: none; }
.oics-modal-description p {
	margin: 0 0 .5rem;
	white-space: pre-wrap;
}
/* Scroll-lock: Salient zet overflow-y:scroll op <html>, dus beide vergrendelen. */
html.oics-modal-open,
html.oics-modal-open body { overflow: hidden !important; }
html.oics-modal-open body { padding-right: var(--oics-scrollbar-width, 0px); }
.oics-modal-panel { overscroll-behavior: contain; }

