/* Główny kontener - BEZ TŁA, BEZ RAMKI, BEZ CIENIA (do wstawienia we własnej ramce) */
.rbm-scal-wrapper {
	--rbm-scal-header-title: #0b3c75;
	--rbm-scal-header-icon: #0b3c75;
	--rbm-scal-navy: #0b3c75;
	--rbm-scal-navy-dark: #062952;
	--rbm-scal-title: #164e87;
	--rbm-scal-sub: #3b73a8;
	--rbm-scal-accent: #1277d9;

	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0;
	width: 100%;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	box-sizing: border-box;
}

/* Nagłówek: Ikona + "Kalendarz wydarzeń" */
.rbm-scal-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 18px;
}

.rbm-scal-header .rbm-scal-header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: var(--rbm-scal-header-icon, #0b3c75);
	flex-shrink: 0;
}

.rbm-scal-header-title {
	margin: 0 !important;
	font-size: 21px;
	font-weight: 700;
	color: var(--rbm-scal-header-title, #0b3c75) !important;
	line-height: 1.2;
}

/* Pasek nawigacji miesięcy: < Październik 2026 > */
.rbm-scal-month-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
	padding: 2px 0;
}

.rbm-scal-month-label {
	font-size: 16.5px;
	font-weight: 700;
	color: var(--rbm-scal-navy);
	text-align: center;
	user-select: none;
}

.rbm-scal-wrapper button.rbm-scal-nav-btn {
	appearance: none !important;
	-webkit-appearance: none !important;
	background: transparent !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	color: var(--rbm-scal-navy) !important;
	width: 32px;
	height: 32px;
	padding: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	border-radius: 6px;
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.rbm-scal-wrapper button.rbm-scal-nav-btn:hover {
	background-color: rgba(11, 60, 117, 0.08) !important;
}

/* Panele miesięcy / paczek wydarzeń */
.rbm-scal-month-panel {
	display: none;
	flex-direction: column;
}

.rbm-scal-month-panel.is-active {
	display: flex;
	animation: rbmScalFadeIn 0.22s ease;
}

@keyframes rbmScalFadeIn {
	from { opacity: 0; transform: translateY(3px); }
	to { opacity: 1; transform: translateY(0); }
}

/* Pojedynczy wiersz wydarzenia */
.rbm-scal-event-row {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 13px 0;
	border-bottom: 1px solid rgba(11, 60, 117, 0.09);
}

.rbm-scal-month-panel .rbm-scal-event-row:last-child {
	border-bottom: none;
}

/* Granatowy kafelek z datą po lewej stronie */
.rbm-scal-date-badge {
	width: 60px;
	height: 60px;
	flex: 0 0 60px;
	border-radius: 12px;
	background: linear-gradient(145deg, var(--rbm-scal-navy, #0b3c75) 0%, var(--rbm-scal-navy-dark, #062952) 100%);
	color: #ffffff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 10px rgba(6, 41, 82, 0.18);
	text-align: center;
	line-height: 1;
	user-select: none;
}

.rbm-scal-day {
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -0.3px;
	margin-bottom: 4px;
}

.rbm-scal-date-badge.is-range .rbm-scal-day {
	font-size: 16px;
}

.rbm-scal-mon {
	font-size: 11.5px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	opacity: 0.92;
}

/* Tekst wydarzenia po prawej stronie kafelka */
.rbm-scal-event-info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
}

.rbm-scal-event-title {
	font-size: 15.5px;
	font-weight: 700;
	color: var(--rbm-scal-title, #164e87);
	line-height: 1.3;
}

.rbm-scal-event-sub {
	font-size: 14px;
	font-weight: 400;
	color: var(--rbm-scal-sub, #3b73a8);
	line-height: 1.35;
}

/* Dolny przycisk "Zobacz pełny kalendarz ->" */
.rbm-scal-footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 10px;
	padding-top: 6px;
}

.rbm-scal-wrapper button.rbm-scal-open-popup {
	appearance: none !important;
	-webkit-appearance: none !important;
	background: transparent !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	padding: 4px 0 !important;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--rbm-scal-accent, #1277d9) !important;
	cursor: pointer;
	transition: gap 0.2s ease, opacity 0.2s ease;
}

.rbm-scal-wrapper button.rbm-scal-open-popup:hover {
	gap: 11px;
	opacity: 0.88;
}

/* =========================================================
   OKNO POP (MODAL PEŁNEGO KALENDARZA)
   ========================================================= */
.rbm-scal-modal-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(6, 28, 56, 0.58);
	backdrop-filter: blur(3px);
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 999999;
	box-sizing: border-box;
}

.rbm-scal-modal-overlay.is-open {
	display: flex;
	animation: rbmScalFadeIn 0.2s ease;
}

.rbm-scal-modal-box {
	background-color: #ffffff;
	width: 100%;
	max-width: 680px;
	max-height: 85vh;
	border-radius: 16px;
	box-shadow: 0 20px 50px rgba(6, 28, 56, 0.28);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rbm-scal-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 24px;
	background-color: #f4f8fc;
	border-bottom: 1px solid #e2ecf5;
}

.rbm-scal-modal-title-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #0b3c75;
}

.rbm-scal-modal-title-wrap .rbm-scal-header-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #0b3c75;
}

.rbm-scal-modal-title-wrap h4 {
	margin: 0 !important;
	font-size: 19px;
	font-weight: 700;
	color: #0b3c75;
}

.rbm-scal-modal-close {
	appearance: none !important;
	background: #e6eff8 !important;
	border: none !important;
	color: #0b3c75 !important;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 !important;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.rbm-scal-modal-close:hover {
	background: #0b3c75 !important;
	color: #ffffff !important;
}

/* Pasek filtrów w oknie POP (Wszystkie / PSP / PP) */
.rbm-scal-modal-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 12px 24px;
	background-color: #ffffff;
	border-bottom: 1px solid #edf2f7;
}

.rbm-scal-filter-btn {
	appearance: none !important;
	background-color: #f0f5fa !important;
	color: #164e87 !important;
	border: 1px solid #d8e6f3 !important;
	border-radius: 999px !important;
	padding: 6px 15px !important;
	font-size: 13px !important;
	font-weight: 600 !important;
	cursor: pointer;
	transition: all 0.18s ease;
}

.rbm-scal-filter-btn:hover,
.rbm-scal-filter-btn.is-active {
	background-color: #1277d9 !important;
	border-color: #1277d9 !important;
	color: #ffffff !important;
}

/* Przewijana zawartość pełnego kalendarza */
.rbm-scal-modal-body {
	padding: 18px 24px 24px 24px;
	overflow-y: auto;
	flex: 1;
}

.rbm-scal-modal-month-group {
	margin-bottom: 22px;
}

.rbm-scal-modal-month-group:last-child {
	margin-bottom: 0;
}

.rbm-scal-modal-month-heading {
	margin: 0 0 8px 0 !important;
	padding: 6px 12px;
	background-color: #f0f6fc;
	border-left: 4px solid #1277d9;
	border-radius: 4px;
	font-size: 15px;
	font-weight: 700;
	color: #0b3c75;
}

.rbm-scal-full-date {
	font-weight: 600;
}