/* ==========================================================================
   JetAPB Weekly Schedule – Frontend stílusok
   ========================================================================== */

/* --------------------------------------------------------------------------
   Szabad slot: zöld
   -------------------------------------------------------------------------- */
.jet-apb-slot:not(.jet-apb-slot--selected):not(.jet-apb-slot--booked) {
	background-color: #d4edda;
	border-color: #28a745;
	color: #155724;
}

.jet-apb-slot:not(.jet-apb-slot--selected):not(.jet-apb-slot--booked):hover {
	background-color: #b8dfc4;
	border-color: #1e7e34;
}

/* --------------------------------------------------------------------------
   Foglalt slot: piros, nem kattintható
   -------------------------------------------------------------------------- */
.jet-apb-slot--booked {
	background-color: #f8d7da !important;
	border-color: #dc3545 !important;
	color: #721c24 !important;
	cursor: not-allowed !important;
	pointer-events: none;
	opacity: 0.75;
}

/* --------------------------------------------------------------------------
   Naptár nap: van szabad hely → zöld jelölés
   -------------------------------------------------------------------------- */
.jet-apb-calendar-date--has-free-slots:not(.jet-apb-calendar-date--disabled) .jet-apb-calendar-date-body {
	background-color: #28a745;
	color: #fff;
	border-radius: 50%;
}

.jet-apb-calendar-date--has-free-slots:not(.jet-apb-calendar-date--disabled):not(.jet-apb-calendar-date--selected) .jet-apb-calendar-date-body:hover {
	background-color: #1e7e34;
}

/* --------------------------------------------------------------------------
   Naptar csak szolgaltatas valasztas utan jelenjen meg
   -------------------------------------------------------------------------- */
.jet-apb-ws-calendar-placeholder {
	display: none;
	padding: 10px 12px;
	margin-top: 8px;
	border: 1px dashed #c3c4c7;
	border-radius: 6px;
	font-size: 13px;
	color: #50575e;
	background: #f6f7f7;
}

.jet-apb-calendar-wrapper.jet-apb-ws-calendar-hidden .appointment-calendar,
.jet-apb-calendar-wrapper.jet-apb-ws-calendar-hidden .jet-apb-ws-week-view,
.jet-apb-calendar-wrapper.jet-apb-ws-calendar-hidden .jet-apb-calendar-appointments-list-wrapper,
.jet-apb-calendar-wrapper.jet-apb-ws-calendar-hidden .jet-apb-calendar-notification,
.jet-apb-calendar-wrapper.jet-apb-ws-calendar-hidden .jet-apb-recurrence-app-settings-wrapper {
	display: none !important;
}

.jet-apb-calendar-wrapper.jet-apb-ws-calendar-hidden .jet-apb-ws-calendar-placeholder {
	display: block;
}

/* --------------------------------------------------------------------------
   Heti nyitott nezeti UI
   -------------------------------------------------------------------------- */
.jet-apb-calendar-wrapper.jet-apb-ws-weekly-mode .jet-apb-calendar-header,
.jet-apb-calendar-wrapper.jet-apb-ws-weekly-mode .jet-apb-calendar-week,
.jet-apb-calendar-wrapper.jet-apb-ws-weekly-mode .jet-apb-calendar-body,
.jet-apb-calendar-wrapper.jet-apb-ws-weekly-mode .jet-apb-calendar-slots,
.jet-apb-calendar-wrapper.jet-apb-ws-weekly-mode .jet-apb-calendar-slots-container,
.jet-apb-calendar-wrapper.jet-apb-ws-weekly-mode .jet-apb-calendar-slots__close {
	display: none !important;
}

.jet-apb-ws-week-view {
	margin-top: 12px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
	padding: 10px;
}

.jet-apb-ws-week-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 10px;
}

.jet-apb-ws-week-label {
	font-weight: 600;
	font-size: 14px;
}

.jet-apb-ws-week-prev,
.jet-apb-ws-week-next {
	border: 1px solid #c3c4c7;
	background: #f6f7f7;
	min-width: 34px;
	height: 34px;
	border-radius: 6px;
	cursor: pointer;
}

.jet-apb-ws-week-days {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 8px;
}

.jet-apb-ws-day {
	border: 1px solid #dcdcde;
	border-radius: 8px;
	padding: 8px;
	background: #fcfcfc;
	min-height: 140px;
}

.jet-apb-ws-day-title {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 8px;
	line-height: 1.25;
}

.jet-apb-ws-day-title small {
	display: block;
	font-size: 12px;
	font-weight: 400;
	opacity: 0.75;
}

.jet-apb-ws-day-slots {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.jet-apb-ws-day-slots .jet-apb-slot {
	width: 100%;
	text-align: left;
	padding: 6px 8px;
	border-radius: 6px;
	border: 1px solid #dcdcde;
	font-size: 12px;
	line-height: 1.2;
	cursor: pointer;
}

.jet-apb-ws-slot-provider {
	display: block;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jet-apb-ws-slot-time {
	display: block;
	font-size: 11px;
	opacity: 0.9;
}

.jet-apb-ws-no-slots,
.jet-apb-ws-loading {
	font-size: 12px;
	opacity: 0.75;
	padding: 4px 0;
}

@media (max-width: 767px) {
	.jet-apb-ws-week-days {
		display: block;
	}

	.jet-apb-ws-day {
		display: none;
	}

	.jet-apb-ws-week-view[data-mobile-day-offset="0"] .jet-apb-ws-day[data-day-offset="0"],
	.jet-apb-ws-week-view[data-mobile-day-offset="1"] .jet-apb-ws-day[data-day-offset="1"],
	.jet-apb-ws-week-view[data-mobile-day-offset="2"] .jet-apb-ws-day[data-day-offset="2"],
	.jet-apb-ws-week-view[data-mobile-day-offset="3"] .jet-apb-ws-day[data-day-offset="3"],
	.jet-apb-ws-week-view[data-mobile-day-offset="4"] .jet-apb-ws-day[data-day-offset="4"],
	.jet-apb-ws-week-view[data-mobile-day-offset="5"] .jet-apb-ws-day[data-day-offset="5"],
	.jet-apb-ws-week-view[data-mobile-day-offset="6"] .jet-apb-ws-day[data-day-offset="6"] {
		display: block;
	}
}
