/* ==========================================================================
   Mesa & Carta — Calendar admin styles
   Scope: admin/partials/mc-admin-reservas.php
   ========================================================================== */

/* --------------------------------------------------------------------------
   Calendario
   -------------------------------------------------------------------------- */

#mc-fullcalendar {
	max-width: 100%;
	margin-top: 20px;
	background: #fff;
	padding: 16px;
	border-radius: 4px;
	box-shadow: 0 1px 3px rgba( 0, 0, 0, 0.1 );
}

/* --------------------------------------------------------------------------
   Modal — overlay
   -------------------------------------------------------------------------- */

#mc-cal-modal {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.5 );
	z-index: 100000;
	overflow-y: auto;
}

#mc-cal-modal[hidden] {
	display: none;
}

/* --------------------------------------------------------------------------
   Modal — inner
   -------------------------------------------------------------------------- */

#mc-cal-modal-inner {
	position: relative;
	margin: 10% auto 0;
	max-width: 480px;
	background: #fff;
	border-radius: 6px;
	padding: 24px;
}

/* --------------------------------------------------------------------------
   Modal — botón cerrar
   -------------------------------------------------------------------------- */

#mc-cal-modal-close {
	position: absolute;
	top: 12px;
	right: 14px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-size: 1.4rem;
	line-height: 1;
	color: #666;
}

#mc-cal-modal-close:hover,
#mc-cal-modal-close:focus {
	color: #000;
	outline: 2px solid #2271b1;
	outline-offset: 2px;
	border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Modal — cuerpo
   -------------------------------------------------------------------------- */

#mc-cal-modal-body {
	line-height: 1.6;
	margin-top: 8px;
}

#mc-cal-modal-body p {
	margin: 0 0 8px;
}

#mc-cal-modal-body strong {
	font-weight: 600;
}

/* --------------------------------------------------------------------------
   Error inline
   -------------------------------------------------------------------------- */

#mc-cal-error {
	margin-top: 12px;
}

/* --------------------------------------------------------------------------
   Botón toggle de vista
   -------------------------------------------------------------------------- */

#mc-toggle-vista {
	margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Responsive — breakpoint WP admin (782 px)
   -------------------------------------------------------------------------- */

@media ( max-width: 782px ) {

	#mc-cal-modal-inner {
		width: 90%;
		margin-top: 5%;
	}

	/* Fuerza la toolbar de FullCalendar a columna en móvil */
	#mc-fullcalendar .fc-header-toolbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	#mc-fullcalendar .fc-toolbar-chunk {
		width: 100%;
	}
}
