/* ===============================================
   BOOKING PAGE STYLES
   Scoped to: body[data-path="bookings"]

   Page structure:
   body[data-path="bookings"]
     └── .page-bookings
         └── .page-content-wrapper
             └── main.container
                 ├── .page-header-wrapper (empty, hide it)
                 └── .page-content
                     └── .booking-page
                         └── .main-content
                             ├── .calendar-container
                             └── .side-panel
   =============================================== */

/* ===============================
   FRAPPE FRAMEWORK OVERRIDES
   Only when data-path="bookings"
   =============================== */

/* Hide empty Frappe header - takes vertical space even when empty */
body[data-path="bookings"] .page-header-wrapper {
	display: none !important;
}

/* Hide Frappe footer on bookings page */
body[data-path="bookings"] .web-footer,
body[data-path="bookings"] footer.web-footer {
	display: none !important;
}

/* Remove Frappe's container max-width constraint */
body[data-path="bookings"] main.container {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin: 0 !important;
}

/* Remove padding from page content wrapper */
body[data-path="bookings"] .page-content-wrapper {
	padding: 0 !important;
}

/* Remove padding from page content */
body[data-path="bookings"] .page-content {
	padding: 0 !important;
	margin: 0 !important;
}

/* Prevent horizontal scroll caused by Frappe's default styles */
body[data-path="bookings"] {
	overflow-x: hidden;
}

/* ===============================
   BOOKING PAGE - DESKTOP (BASE)
   =============================== */

.booking-page {
	max-width: 100%;
	min-height: 100vh;
	padding: 0;
	margin: 0;
	background: #f5f6fa;
}

/* Custom page header (not Frappe's) */
.booking-page .page-header {
	background: #fff;
	padding: 15px 30px;
	border-bottom: 1px solid #e0e0e0;
	text-align: center;
}

.booking-page .page-header h1 {
	margin: 0;
	font-size: 22px;
	color: #333;
	font-weight: 600;
}

/* Main layout: calendar left, side panel right */
.booking-page .main-content {
	display: flex;
	height: calc(100vh - 70px);
	overflow: hidden;
}

/* Calendar container takes remaining space */
.booking-page .calendar-container {
	flex: 1;
	padding: 20px;
	overflow-y: auto;
	background: #fff;
}

.booking-page .calendar-header {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 20px;
	margin-bottom: 15px;
}

.booking-page .calendar-header h2 {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	min-width: 180px;
	text-align: center;
}

.booking-page .nav-btn {
	background: #f0f0f0;
	border: none;
	padding: 10px 18px;
	font-size: 16px;
	cursor: pointer;
	border-radius: 6px;
	transition: background 0.2s;
}

.booking-page .nav-btn:hover {
	background: #e0e0e0;
}

/* Calendar weekdays row */
.booking-page .calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	text-align: center;
	font-weight: 600;
	font-size: 13px;
	color: #666;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
}

/* Calendar grid - 7 columns, fluid by default */
.booking-page .calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
	padding: 10px 0;
}

/* ===============================
   DESKTOP LAYOUT (≥1024px)
   Calendar full-width centered, panel appears on date select
   =============================== */
@media (min-width: 1024px) {
	/* Flex row layout */
	body[data-path="bookings"] .booking-page .main-content {
		display: flex;
		flex-direction: row;
		height: calc(100vh - 70px);
		overflow: hidden;
	}

	/* Calendar: takes available space, content centered */
	body[data-path="bookings"] .booking-page .calendar-container {
		flex: 1;
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 30px 20px;
		overflow-y: auto;
		background: #fff;
		box-sizing: border-box;
	}

	/* Center all calendar elements with max-width */
	body[data-path="bookings"] .booking-page .calendar-header,
	body[data-path="bookings"] .booking-page .calendar-weekdays,
	body[data-path="bookings"] .booking-page .calendar-grid,
	body[data-path="bookings"] .booking-page .calendar-legend {
		width: 100%;
		max-width: 560px;
	}

	/* Calendar grid: 7 equal columns */
	body[data-path="bookings"] .booking-page .calendar-grid {
		grid-template-columns: repeat(7, 1fr);
		gap: 6px;
	}

	/* Calendar cells: nice square proportions */
	body[data-path="bookings"] .booking-page .calendar-day {
		min-height: 60px;
		max-height: 75px;
		aspect-ratio: 1;
	}

	/* Side panel: minimal width when showing placeholder */
	body[data-path="bookings"] .booking-page .side-panel {
		flex-shrink: 0;
		display: flex;
		flex-direction: column;
		overflow-y: auto;
		background: #fff;
		box-sizing: border-box;
		transition: width 0.2s ease, min-width 0.2s ease;
	}

	/* Placeholder state: narrow hint panel */
	body[data-path="bookings"] .booking-page .panel-placeholder {
		width: 200px;
		padding: 20px;
		text-align: center;
		color: #888;
		font-size: 14px;
		border-left: 1px solid #e0e0e0;
	}

	/* Content state: full panel width */
	body[data-path="bookings"] .booking-page .panel-content {
		width: 420px;
		min-width: 420px;
		padding: 20px;
		border-left: 1px solid #e0e0e0;
	}
}

/* ===============================
   MOBILE LAYOUT (<768px)
   Stacked: calendar on top, panel below
   =============================== */
@media (max-width: 767px) {
	body[data-path="bookings"] .booking-page .main-content {
		display: flex;
		flex-direction: column;
		height: auto;
		overflow: visible;
	}

	body[data-path="bookings"] .booking-page .calendar-container {
		width: 100%;
		max-width: 100%;
		padding: 10px;
	}

	body[data-path="bookings"] .booking-page .calendar-header,
	body[data-path="bookings"] .booking-page .calendar-weekdays,
	body[data-path="bookings"] .booking-page .calendar-grid,
	body[data-path="bookings"] .booking-page .calendar-legend {
		max-width: 100%;
	}

	body[data-path="bookings"] .booking-page .side-panel {
		width: 100%;
		max-width: 100%;
		border-left: none;
		border-top: 1px solid #e0e0e0;
	}

	body[data-path="bookings"] .booking-page .panel-placeholder,
	body[data-path="bookings"] .booking-page .panel-content {
		width: 100%;
		min-width: auto;
		border-left: none;
	}
}

.booking-page .calendar-day {
	aspect-ratio: 1.2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.15s;
	border: 2px solid transparent;
	background: #f8fff8;
	min-height: 70px;
}

.booking-page .calendar-day:hover:not(.empty) {
	transform: scale(1.02);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.booking-page .calendar-day.empty {
	background: transparent;
	cursor: default;
}

.booking-page .calendar-day.past {
	background: #f5f5f5;
	color: #888;
	cursor: pointer;
}

.booking-page .calendar-day.available {
	background: #e8f5e9;
}

.booking-page .calendar-day.booked {
	background: #ffebee;
}

.booking-page .calendar-day.selected {
	border-color: #1976d2;
	background: #e3f2fd;
}

.booking-page .calendar-day.today {
	border-color: #ff9800;
}

.booking-page .calendar-day .day-num {
	font-size: 16px;
	font-weight: 600;
}

.booking-page .calendar-day .booking-count {
	font-size: 11px;
	color: #666;
	margin-top: 4px;
}

/* Calendar legend */
.booking-page .calendar-legend {
	display: flex;
	justify-content: center;
	gap: 25px;
	padding: 15px;
	font-size: 13px;
	color: #555;
}

.booking-page .calendar-legend .dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 3px;
	margin-right: 6px;
}

.booking-page .dot.green {
	background: #e8f5e9;
	border: 1px solid #4caf50;
}

.booking-page .dot.red {
	background: #ffebee;
	border: 1px solid #e53935;
}

/* Side panel - fixed width on desktop */
.booking-page .side-panel {
	width: 420px;
	background: #fff;
	border-left: 1px solid #e0e0e0;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
}

.booking-page .panel-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	color: #999;
	text-align: center;
	padding: 30px;
}

.booking-page .panel-content {
	padding: 20px;
	flex: 1;
	overflow-y: auto;
}

.booking-page .panel-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.booking-page .panel-header h3 {
	margin: 0;
	font-size: 18px;
	color: #333;
}

.booking-page .close-btn {
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #999;
}

.booking-page .close-btn:hover {
	color: #333;
}

/* Existing bookings section */
.booking-page #existing-bookings {
	margin-bottom: 25px;
}

/* Hide mobile toggle on desktop */
.booking-page #mobile-bookings-toggle {
	display: none;
}

.booking-page .existing-title {
	font-size: 13px;
	font-weight: 600;
	color: #666;
	text-transform: uppercase;
	margin-bottom: 12px;
}

.booking-page .loading,
.booking-page .error {
	padding: 15px;
	text-align: center;
	color: #666;
	font-size: 14px;
}

.booking-page .error {
	color: #e53935;
}

/* Booking card - collapsible */
.booking-page .booking-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-left: 4px solid #1976d2;
	border-radius: 0 8px 8px 0;
	margin-bottom: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* Booking summary - always visible, clickable */
.booking-page .booking-summary {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 15px;
	cursor: pointer;
	background: #fafafa;
	transition: background 0.2s;
}

.booking-page .booking-summary:hover {
	background: #f0f0f0;
}

.booking-page .summary-left {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.booking-page .summary-left .time {
	font-weight: 600;
	color: #333;
	font-size: 14px;
}

.booking-page .summary-left .customer {
	color: #666;
	font-size: 13px;
}

.booking-page .summary-right {
	display: flex;
	align-items: center;
	gap: 10px;
}

.booking-page .summary-right .event-type {
	font-size: 11px;
	background: #e3f2fd;
	color: #1976d2;
	padding: 3px 10px;
	border-radius: 12px;
	font-weight: 500;
}

.booking-page .expand-icon {
	font-size: 12px;
	color: #999;
	transition: transform 0.2s;
}

/* Booking details - expandable */
.booking-page .booking-details {
	padding: 15px;
	border-top: 1px solid #eee;
	background: #fff;
}

.booking-page .detail-section {
	margin-bottom: 12px;
}

.booking-page .detail-section.financial {
	padding-top: 12px;
	border-top: 1px dashed #ddd;
}

.booking-page .detail-row {
	display: flex;
	justify-content: space-between;
	padding: 4px 0;
	font-size: 13px;
}

.booking-page .detail-row .label {
	color: #666;
	font-weight: 500;
}

.booking-page .detail-row .value {
	color: #333;
	text-align: right;
}

.booking-page .detail-row.total {
	font-weight: 600;
	padding-top: 8px;
	border-top: 1px solid #eee;
	margin-top: 4px;
}

.booking-page .detail-row.balance {
	font-weight: 600;
	color: #e53935;
}

.booking-page .detail-row.balance .value {
	color: #e53935;
}

.booking-page .detail-notes {
	margin-top: 12px;
	padding: 10px;
	background: #f9f9f9;
	border-radius: 4px;
	font-size: 12px;
	color: #555;
	border-left: 2px solid #ddd;
}

.booking-page .badge {
	display: inline-block;
	margin-top: 10px;
	font-size: 11px;
	padding: 4px 10px;
	border-radius: 12px;
	font-weight: 500;
}

.booking-page .badge.kitchen {
	background: #e8f5e9;
	color: #2e7d32;
}

/* Booking action buttons - MUST be clickable */
.booking-page .booking-actions {
	display: flex;
	gap: 10px;
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #eee;
	position: relative;
	z-index: 10;
}

.booking-page .btn-edit,
.booking-page .btn-delete {
	flex: 1;
	padding: 12px 15px;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	pointer-events: auto;
	position: relative;
	z-index: 10;
}

.booking-page .btn-edit {
	background: #1976d2;
	color: white;
}

.booking-page .btn-edit:hover {
	background: #1565c0;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.booking-page .btn-delete {
	background: #fff;
	color: #e53935;
	border: 2px solid #e53935;
}

.booking-page .btn-delete:hover {
	background: #e53935;
	color: white;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(229, 57, 53, 0.3);
}

.booking-page .no-bookings {
	background: #e8f5e9;
	color: #2e7d32;
	padding: 15px;
	border-radius: 6px;
	text-align: center;
	font-size: 14px;
}

/* Form styles */
.booking-page .form-container h4 {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	margin: 0 0 15px;
	padding-top: 15px;
	border-top: 1px solid #eee;
}

.booking-page .form-group {
	margin-bottom: 12px;
}

.booking-page .form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.booking-page .form-group label {
	display: block;
	font-size: 12px;
	font-weight: 500;
	color: #555;
	margin-bottom: 4px;
}

.booking-page .form-group input,
.booking-page .form-group select,
.booking-page .form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
	box-sizing: border-box;
}

.booking-page .form-group input:focus,
.booking-page .form-group select:focus,
.booking-page .form-group textarea:focus {
	outline: none;
	border-color: #1976d2;
}

.booking-page .checkbox-group label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	cursor: pointer;
}

.booking-page .checkbox-group input[type="checkbox"] {
	width: auto;
}

.booking-page .form-buttons {
	display: flex;
	gap: 10px;
	margin-top: 15px;
}

.booking-page .btn-submit {
	flex: 1;
	padding: 14px;
	background: #2e7d32;
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	pointer-events: auto;
}

.booking-page .btn-submit:hover {
	background: #1b5e20;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.booking-page .btn-submit:active {
	transform: translateY(0);
}

.booking-page .btn-cancel {
	padding: 12px 20px;
	background: #f5f5f5;
	color: #666;
	border: none;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
}

.booking-page .btn-cancel:hover {
	background: #e0e0e0;
	color: #333;
}

/* ===============================
   MODAL STYLES
   Modal is outside .booking-page, so use body scope
   =============================== */
body[data-path="bookings"] #confirm-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	pointer-events: auto;
}

body[data-path="bookings"] #confirm-modal .modal-box {
	background: white;
	padding: 25px;
	border-radius: 12px;
	width: 100%;
	max-width: 400px;
	margin: 20px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	pointer-events: auto;
}

body[data-path="bookings"] #confirm-modal .modal-box h3 {
	margin: 0 0 15px;
	font-size: 18px;
	color: #333;
	font-weight: 600;
}

body[data-path="bookings"] #confirm-modal .modal-box p {
	color: #555;
	margin-bottom: 20px;
	font-size: 14px;
	line-height: 1.6;
}

body[data-path="bookings"] #confirm-modal .modal-actions {
	display: flex;
	gap: 12px;
	justify-content: flex-end;
}

body[data-path="bookings"] #confirm-modal .btn-secondary {
	padding: 10px 20px;
	background: #f0f0f0;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.2s;
}

body[data-path="bookings"] #confirm-modal .btn-secondary:hover {
	background: #e0e0e0;
}

body[data-path="bookings"] #confirm-modal .btn-danger {
	padding: 10px 20px;
	background: #e53935;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.2s;
}

body[data-path="bookings"] #confirm-modal .btn-danger:hover {
	background: #c62828;
}

/* ===============================
   TABLET BREAKPOINT (≤ 900px)
   Stack layout, full-width panels
   =============================== */
@media (max-width: 900px) {
	.booking-page .main-content {
		flex-direction: column;
		height: auto;
	}

	.booking-page .calendar-container {
		min-height: 50vh;
	}

	.booking-page .side-panel {
		width: 100%;
		border-left: none;
		border-top: 1px solid #e0e0e0;
	}

	.booking-page .calendar-day {
		min-height: 50px;
	}

	.booking-page .calendar-day .day-num {
		font-size: 14px;
	}

	.booking-page .form-row {
		grid-template-columns: 1fr;
	}

	.booking-page .booking-summary {
		flex-wrap: wrap;
		gap: 8px;
	}

	.booking-page .summary-right {
		width: 100%;
		justify-content: space-between;
	}
}

/* ===============================
   MOBILE BREAKPOINT (≤ 768px)
   Full-width, compact, touch-friendly
   =============================== */
@media (max-width: 768px) {
	/* CRITICAL: Remove Frappe container constraints on mobile */
	body[data-path="bookings"] main.container {
		max-width: 100% !important;
		width: 100% !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	/* Remove ALL wrapper padding that causes gray margins */
	body[data-path="bookings"] .page-bookings,
	body[data-path="bookings"] .page-content-wrapper,
	body[data-path="bookings"] .page-content {
		padding: 0 !important;
		margin: 0 !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	/* Booking page fills viewport width */
	.booking-page {
		padding: 0;
		margin: 0;
		width: 100%;
		max-width: 100%;
		min-height: 100vh;
		box-shadow: none;
	}

	/* Stack calendar and side panel vertically */
	.booking-page .main-content {
		flex-direction: column;
		height: auto;
		min-height: auto;
		overflow: visible;
	}

	/* Calendar: full width, compact padding, NO flex stretch */
	.booking-page .calendar-container {
		width: 100%;
		max-width: 100%;
		padding: 10px;
		border: none;
		min-height: auto;
		overflow: visible;
		box-sizing: border-box;
		flex-shrink: 0; /* Prevent flex parent from compressing this */
		flex-grow: 0; /* Prevent stretching to fill available space */
	}

	/* Compact calendar header */
	.booking-page .calendar-header {
		gap: 8px;
		margin-bottom: 10px;
		padding: 0 5px;
	}

	.booking-page .calendar-header h2 {
		font-size: 16px;
		min-width: 130px;
	}

	.booking-page .nav-btn {
		padding: 8px 12px;
		font-size: 14px;
	}

	/* Compact weekdays */
	.booking-page .calendar-weekdays {
		font-size: 11px;
		padding: 8px 0;
	}

	/* Calendar grid: fixed row height prevents row expansion */
	.booking-page .calendar-grid {
		gap: 2px;
		padding: 5px 0;
		grid-auto-rows: minmax(auto, 48px); /* Cap row height at 48px */
	}

	/* Calendar days: FIXED height, no aspect-ratio (causes vertical growth) */
	.booking-page .calendar-day {
		aspect-ratio: unset; /* Remove aspect-ratio - it causes cells to grow with width */
		min-height: 40px; /* Floor for touch targets */
		max-height: 48px; /* Hard cap prevents vertical expansion */
		height: 100%; /* Fill grid cell but respect max-height */
		border-radius: 6px;
		padding: 4px 0; /* Compact vertical padding */
		box-sizing: border-box; /* Include padding in height calculation */
	}

	.booking-page .calendar-day .day-num {
		font-size: 13px;
		line-height: 1; /* Prevent line-height from adding extra height */
	}

	.booking-page .calendar-day .booking-count {
		font-size: 9px;
		margin-top: 1px;
		line-height: 1; /* Compact line-height */
	}

	/* Compact legend */
	.booking-page .calendar-legend {
		padding: 8px;
		gap: 12px;
		font-size: 11px;
	}

	.booking-page .calendar-legend .dot {
		width: 10px;
		height: 10px;
		margin-right: 4px;
	}

	/* Side panel: full width, below calendar */
	.booking-page .side-panel {
		width: 100%;
		max-width: 100%;
		border-left: none;
		border-top: 1px solid #e0e0e0;
		overflow-y: visible;
		padding: 15px;
		box-sizing: border-box;
		box-shadow: none;
	}

	.booking-page .panel-content {
		padding: 0;
	}

	/* Compact page header */
	.booking-page .page-header {
		padding: 12px 15px;
	}

	.booking-page .page-header h1 {
		font-size: 18px;
	}

	/* Form: single column on mobile */
	.booking-page .form-row {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.booking-page .form-group {
		margin-bottom: 10px;
	}

	/* 16px font prevents iOS zoom on focus */
	.booking-page .form-group input,
	.booking-page .form-group select,
	.booking-page .form-group textarea {
		padding: 12px;
		font-size: 16px;
	}

	/* Show mobile bookings toggle */
	.booking-page #mobile-bookings-toggle {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		padding: 12px 15px;
		background-color: #f7f7f7;
		border: 1px solid #ddd;
		border-radius: 8px;
		font-size: 14px;
		font-weight: 600;
		color: #333;
		cursor: pointer;
		margin-bottom: 15px;
	}

	.booking-page #mobile-bookings-toggle .toggle-icon {
		font-size: 12px;
		transition: transform 0.2s;
	}

	/* Hide static title on mobile, use toggle button instead */
	.booking-page .existing-title {
		display: none;
	}

	/* Note: #existing-bookings visibility controlled by JS toggle
	   Don't hide by default - let JS handle it after page load */

	/* Compact booking summary */
	.booking-page .booking-summary {
		padding: 10px 12px;
		flex-wrap: wrap;
		gap: 6px;
	}

	.booking-page .summary-left .time {
		font-size: 13px;
	}

	.booking-page .summary-left .customer {
		font-size: 12px;
	}

	.booking-page .summary-right {
		width: 100%;
		justify-content: space-between;
	}

	.booking-page .summary-right .event-type {
		font-size: 10px;
		padding: 2px 8px;
	}

	/* Compact booking details */
	.booking-page .booking-details {
		padding: 12px;
	}

	.booking-page .detail-row {
		font-size: 12px;
	}

	.booking-page .booking-actions {
		margin-top: 12px;
		padding-top: 12px;
	}

	.booking-page .btn-edit,
	.booking-page .btn-delete {
		padding: 10px 12px;
		font-size: 12px;
	}

	/* Panel header */
	.booking-page .panel-header {
		padding: 12px 15px;
		margin: -15px -15px 15px -15px;
		background: #fafafa;
	}

	.booking-page .panel-header h3 {
		font-size: 16px;
	}

	/* Form container */
	.booking-page .form-container {
		padding-top: 15px;
		margin-top: 15px;
		border-top: 1px solid #eee;
	}

	.booking-page .form-container h4 {
		font-size: 13px;
		margin-bottom: 12px;
		padding-top: 12px;
	}

	.booking-page .form-buttons {
		margin-top: 12px;
	}

	.booking-page .btn-submit {
		padding: 14px;
		font-size: 15px;
	}

	.booking-page .btn-cancel {
		padding: 14px 15px;
		font-size: 14px;
	}

	/* Modal: nearly full-width on mobile */
	.booking-page .modal-box {
		margin: 15px;
		padding: 20px;
		max-width: calc(100% - 30px);
	}

	.booking-page .modal-box h3 {
		font-size: 16px;
	}

	.booking-page .modal-box p {
		font-size: 13px;
	}
}

/* ===============================
   SMALL MOBILE BREAKPOINT (≤ 480px)
   Extra compact for narrow screens
   =============================== */
@media (max-width: 480px) {
	/* Even more compact calendar */
	.booking-page .calendar-container {
		padding: 8px;
	}

	.booking-page .calendar-header {
		gap: 6px;
	}

	.booking-page .calendar-header h2 {
		font-size: 14px;
		min-width: 110px;
	}

	.booking-page .nav-btn {
		padding: 6px 10px;
		font-size: 13px;
	}

	/* Grid rows capped at 40px for small screens */
	.booking-page .calendar-grid {
		grid-auto-rows: minmax(auto, 40px);
	}

	/* Smaller calendar days with hard height cap */
	.booking-page .calendar-day {
		min-height: 34px;
		max-height: 40px;
		padding: 2px 0;
	}

	.booking-page .calendar-day .day-num {
		font-size: 12px;
	}

	/* Hide booking count on very small screens */
	.booking-page .calendar-day .booking-count {
		display: none;
	}

	/* Compact side panel */
	.booking-page .side-panel {
		padding: 10px;
	}

	.booking-page .panel-header {
		margin: -10px -10px 12px -10px;
		padding: 10px 12px;
	}

	/* Smaller legend */
	.booking-page .calendar-legend {
		gap: 10px;
		font-size: 10px;
		flex-wrap: wrap;
		justify-content: center;
	}
}

body[data-path="bookings"] {
background: #eef2f7;
}

body[data-path="bookings"] .navbar {
border-bottom: 1px solid #e2e8f0;
background: #ffffff;
}

body[data-path="bookings"] .booking-page {
background: transparent;
min-height: calc(100vh - 56px);
}

body[data-path="bookings"] .booking-page .page-header {
background: transparent;
border-bottom: 0;
padding: 20px 24px 8px;
}

body[data-path="bookings"] .booking-page .page-header h1 {
font-size: 30px;
font-weight: 700;
color: #0f172a;
letter-spacing: -0.02em;
}

body[data-path="bookings"] .booking-page .main-content {
max-width: 1320px;
margin: 0 auto;
padding: 12px 20px 20px;
gap: 20px;
height: auto;
min-height: calc(100vh - 124px);
overflow: visible;
box-sizing: border-box;
}

body[data-path="bookings"] .booking-page .calendar-container,
body[data-path="bookings"] .booking-page .side-panel {
background: #ffffff;
border: 1px solid #dbe3ee;
border-radius: 16px;
box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

body[data-path="bookings"] .booking-page .calendar-container {
padding: 24px;
}

body[data-path="bookings"] .booking-page .calendar-header {
margin-bottom: 18px;
}

body[data-path="bookings"] .booking-page .calendar-header h2 {
font-size: 28px;
color: #0f172a;
font-weight: 700;
min-width: 260px;
}

body[data-path="bookings"] .booking-page .nav-btn {
width: 40px;
height: 40px;
padding: 0;
border-radius: 10px;
font-size: 18px;
background: #f1f5f9;
color: #0f172a;
}

body[data-path="bookings"] .booking-page .nav-btn:hover {
background: #e2e8f0;
}

body[data-path="bookings"] .booking-page .calendar-weekdays {
font-size: 12px;
color: #64748b;
text-transform: uppercase;
letter-spacing: 0.03em;
padding: 10px 0 14px;
border-bottom: 1px solid #e2e8f0;
}

body[data-path="bookings"] .booking-page .calendar-grid {
gap: 8px;
padding-top: 14px;
}

body[data-path="bookings"] .booking-page .calendar-day {
min-height: 76px;
border-radius: 12px;
border: 1px solid #e5edf6;
background: #f8fafc;
}

body[data-path="bookings"] .booking-page .calendar-day .day-num {
font-size: 18px;
font-weight: 700;
color: #0f172a;
}

body[data-path="bookings"] .booking-page .calendar-day .booking-count {
font-size: 11px;
color: #475569;
margin-top: 5px;
}

body[data-path="bookings"] .booking-page .calendar-day.available {
background: #f0fdf4;
border-color: #ccefd7;
}

body[data-path="bookings"] .booking-page .calendar-day.booked {
background: #fff1f2;
border-color: #ffd7de;
}

body[data-path="bookings"] .booking-page .calendar-day.selected {
background: #eff6ff;
border-color: #2563eb;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

body[data-path="bookings"] .booking-page .calendar-day.today {
border-color: #f59e0b;
box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
}

body[data-path="bookings"] .booking-page .calendar-legend {
padding: 16px 4px 4px;
font-size: 12px;
color: #475569;
gap: 20px;
}

body[data-path="bookings"] .booking-page .side-panel {
width: 460px;
border-left: 1px solid #dbe3ee;
overflow: hidden;
}

body[data-path="bookings"] .booking-page .panel-content {
padding: 18px;
background: #ffffff;
}

body[data-path="bookings"] .booking-page .panel-placeholder {
padding: 30px 24px;
color: #64748b;
font-size: 15px;
border-left: 0;
}

body[data-path="bookings"] .booking-page .panel-header {
margin-bottom: 16px;
padding-bottom: 12px;
border-bottom: 1px solid #e2e8f0;
}

body[data-path="bookings"] .booking-page .panel-header h3 {
font-size: 22px;
font-weight: 700;
color: #0f172a;
}

body[data-path="bookings"] .booking-page .close-btn {
width: 34px;
height: 34px;
border-radius: 10px;
background: #f1f5f9;
color: #475569;
}

body[data-path="bookings"] .booking-page .close-btn:hover {
background: #e2e8f0;
color: #0f172a;
}

body[data-path="bookings"] .booking-page .existing-title,
body[data-path="bookings"] .booking-page .form-container h4 {
font-size: 12px;
letter-spacing: 0.04em;
text-transform: uppercase;
color: #64748b;
font-weight: 700;
}

body[data-path="bookings"] .booking-page .booking-card {
border: 1px solid #dbe3ee;
border-left: 3px solid #2563eb;
border-radius: 12px;
box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

body[data-path="bookings"] .booking-page .booking-summary {
padding: 12px 14px;
background: #f8fafc;
}

body[data-path="bookings"] .booking-page .booking-summary:hover {
background: #f1f5f9;
}

body[data-path="bookings"] .booking-page .summary-left .time {
font-size: 13px;
font-weight: 700;
color: #0f172a;
}

body[data-path="bookings"] .booking-page .summary-left .customer {
font-size: 12px;
color: #64748b;
}

body[data-path="bookings"] .booking-page .summary-right .event-type {
font-size: 10px;
font-weight: 700;
letter-spacing: 0.03em;
text-transform: uppercase;
border-radius: 999px;
background: #eff6ff;
color: #1d4ed8;
padding: 3px 8px;
}

body[data-path="bookings"] .booking-page .booking-details {
padding: 12px;
background: #ffffff;
}

body[data-path="bookings"] .booking-page .detail-row {
padding: 5px 0;
font-size: 12px;
}

body[data-path="bookings"] .booking-page .detail-row .label {
color: #64748b;
font-weight: 600;
}

body[data-path="bookings"] .booking-page .detail-row .value {
color: #0f172a;
font-weight: 600;
}

body[data-path="bookings"] .booking-page .form-group label {
font-size: 11px;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.03em;
color: #64748b;
margin-bottom: 5px;
}

body[data-path="bookings"] .booking-page .form-group input,
body[data-path="bookings"] .booking-page .form-group select,
body[data-path="bookings"] .booking-page .form-group textarea {
height: 38px;
padding: 8px 11px;
border: 1px solid #d6e1ee;
border-radius: 10px;
font-size: 13px;
color: #0f172a;
background: #ffffff;
}

body[data-path="bookings"] .booking-page .form-group textarea {
min-height: 64px;
height: auto;
}

body[data-path="bookings"] .booking-page .form-group input:focus,
body[data-path="bookings"] .booking-page .form-group select:focus,
body[data-path="bookings"] .booking-page .form-group textarea:focus {
border-color: #3b82f6;
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

body[data-path="bookings"] .booking-page .checkbox-group label {
font-size: 13px;
color: #334155;
text-transform: none;
letter-spacing: normal;
font-weight: 600;
}

body[data-path="bookings"] .booking-page .form-buttons {
gap: 10px;
margin-top: 16px;
}

body[data-path="bookings"] .booking-page .btn-submit {
height: 42px;
padding: 0 16px;
border-radius: 10px;
font-size: 14px;
font-weight: 700;
background: linear-gradient(135deg, #16a34a, #15803d);
}

body[data-path="bookings"] .booking-page .btn-submit:hover {
box-shadow: 0 10px 20px rgba(22, 163, 74, 0.25);
transform: translateY(-1px);
}

body[data-path="bookings"] .booking-page .btn-cancel {
height: 42px;
padding: 0 14px;
border-radius: 10px;
background: #f1f5f9;
color: #334155;
font-weight: 600;
}

@media (max-width: 1024px) {
body[data-path="bookings"] .booking-page .page-header {
padding-top: 16px;
}

body[data-path="bookings"] .booking-page .page-header h1 {
font-size: 24px;
}

body[data-path="bookings"] .booking-page .main-content {
padding: 10px 12px 16px;
gap: 12px;
}

body[data-path="bookings"] .booking-page .calendar-container,
body[data-path="bookings"] .booking-page .side-panel {
border-radius: 12px;
}

body[data-path="bookings"] .booking-page .side-panel {
width: 100%;
}
}

@media (max-width: 768px) {
body[data-path="bookings"] {
background: #f8fafc;
}

body[data-path="bookings"] .booking-page .page-header h1 {
font-size: 20px;
}

body[data-path="bookings"] .booking-page .calendar-container {
padding: 12px;
}

body[data-path="bookings"] .booking-page .calendar-header h2 {
font-size: 18px;
min-width: 160px;
}

body[data-path="bookings"] .booking-page .calendar-grid {
gap: 4px;
}

body[data-path="bookings"] .booking-page .calendar-day {
min-height: 48px;
border-radius: 8px;
}

body[data-path="bookings"] .booking-page .calendar-day .day-num {
font-size: 14px;
}

body[data-path="bookings"] .booking-page .panel-content {
padding: 12px;
}

body[data-path="bookings"] .booking-page .panel-header h3 {
font-size: 16px;
}

body[data-path="bookings"] .booking-page .form-group input,
body[data-path="bookings"] .booking-page .form-group select,
body[data-path="bookings"] .booking-page .form-group textarea {
height: 40px;
font-size: 14px;
}

body[data-path="bookings"] .booking-page .form-group textarea {
height: auto;
min-height: 72px;
}
}

/* Login page social button contrast fix */
body[data-path="login"] .btn-login-option,
body[data-route="login"] .btn-login-option,
body .for-login .btn-login-option {
background: #ffffff !important;
border: 1px solid #d1d5db !important;
color: #111827 !important;
opacity: 1 !important;
font-weight: 600;
}

body[data-path="login"] .btn-login-option:hover,
body[data-route="login"] .btn-login-option:hover,
body .for-login .btn-login-option:hover {
background: #f9fafb !important;
color: #111827 !important;
}

body[data-path="login"] .btn-login-option img,
body[data-route="login"] .btn-login-option img,
body .for-login .btn-login-option img {
opacity: 1 !important;
}

/* Mobile login social button readability fix */
body[data-path="login"] .social-login-buttons .btn,
body[data-route="login"] .social-login-buttons .btn,
body .for-login .social-login-buttons .btn {
background: #ffffff !important;
border: 1px solid #d1d5db !important;
color: #111827 !important;
-webkit-text-fill-color: #111827 !important;
text-shadow: none !important;
filter: none !important;
opacity: 1 !important;
}

body[data-path="login"] .social-login-buttons .btn *,
body[data-route="login"] .social-login-buttons .btn *,
body .for-login .social-login-buttons .btn * {
color: #111827 !important;
fill: currentColor !important;
opacity: 1 !important;
}

@media (max-width: 768px) {
body[data-path="login"] .social-login-buttons .btn,
body[data-route="login"] .social-login-buttons .btn,
body .for-login .social-login-buttons .btn {
min-height: 46px;
font-size: 16px !important;
font-weight: 600;
line-height: 1.2;
padding: 10px 14px;
border-radius: 10px;
}
}


/* ===============================================
   FINAL BOOKINGS LAYOUT FIX (authoritative)
   =============================================== */
body[data-path="bookings"] .booking-page .main-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 440px !important;
  align-items: start;
  gap: 18px;
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 18px 22px;
  box-sizing: border-box;
  height: auto !important;
  min-height: calc(100vh - 118px);
  overflow: visible !important;
}

body[data-path="bookings"] .booking-page .calendar-container {
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

body[data-path="bookings"] .booking-page .calendar-header,
body[data-path="bookings"] .booking-page .calendar-weekdays,
body[data-path="bookings"] .booking-page .calendar-grid,
body[data-path="bookings"] .booking-page .calendar-legend {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

body[data-path="bookings"] .booking-page .calendar-header {
  justify-content: center;
  margin-bottom: 14px;
}

body[data-path="bookings"] .booking-page .calendar-header h2 {
  text-align: center;
  min-width: 230px;
}

body[data-path="bookings"] .booking-page .calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  padding-top: 10px;
}

body[data-path="bookings"] .booking-page .calendar-day {
  aspect-ratio: 1 / 1;
  min-height: 0;
  max-height: none;
  height: auto;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

body[data-path="bookings"] .booking-page .calendar-day .day-num {
  line-height: 1;
}

body[data-path="bookings"] .booking-page .side-panel {
  width: 440px !important;
  max-width: 440px;
  min-width: 440px;
  height: auto;
  max-height: calc(100vh - 140px);
  position: sticky;
  top: 12px;
  align-self: start;
}

body[data-path="bookings"] .booking-page .panel-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

body[data-path="bookings"] .booking-page #existing-bookings,
body[data-path="bookings"] .booking-page .form-container {
  margin: 0;
  width: 100%;
}

body[data-path="bookings"] .booking-page .form-container h4 {
  margin: 0 0 10px;
  padding-top: 12px;
}

body[data-path="bookings"] .booking-page .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

body[data-path="bookings"] .booking-page .form-group {
  margin-bottom: 10px;
  min-width: 0;
}

body[data-path="bookings"] .booking-page .form-group input,
body[data-path="bookings"] .booking-page .form-group select,
body[data-path="bookings"] .booking-page .form-group textarea {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1100px) {
  body[data-path="bookings"] .booking-page .main-content {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 10px 10px 16px;
  }

  body[data-path="bookings"] .booking-page .side-panel {
    position: static;
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    max-height: none;
  }

  body[data-path="bookings"] .booking-page .calendar-header,
  body[data-path="bookings"] .booking-page .calendar-weekdays,
  body[data-path="bookings"] .booking-page .calendar-grid,
  body[data-path="bookings"] .booking-page .calendar-legend {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  body[data-path="bookings"] .booking-page .calendar-day {
    aspect-ratio: auto;
    min-height: 52px;
    padding: 4px;
  }

  body[data-path="bookings"] .booking-page .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}


/* BOOKINGS RESPONSIVE HOTFIX */
body[data-path="bookings"] {
overflow-x: hidden !important;
}

body[data-path="bookings"] .booking-page .main-content {
display: grid !important;
grid-template-columns: minmax(0, 1fr) minmax(360px, 430px) !important;
gap: 20px !important;
align-items: stretch !important;
max-width: 1320px !important;
margin: 0 auto !important;
padding: 16px !important;
height: auto !important;
overflow: visible !important;
}

body[data-path="bookings"] .booking-page .calendar-container {
width: 100% !important;
min-width: 0 !important;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
overflow: hidden;
}

body[data-path="bookings"] .booking-page .calendar-header,
body[data-path="bookings"] .booking-page .calendar-weekdays,
body[data-path="bookings"] .booking-page .calendar-grid,
body[data-path="bookings"] .booking-page .calendar-legend {
width: 100%;
max-width: 720px;
margin-left: auto;
margin-right: auto;
}

body[data-path="bookings"] .booking-page .calendar-day {
aspect-ratio: 1 / 1;
min-height: 66px;
max-height: none;
}

body[data-path="bookings"] .booking-page .side-panel {
width: 100% !important;
min-width: 0 !important;
max-width: 100% !important;
max-height: calc(100vh - 140px);
position: sticky;
top: 12px;
display: flex;
flex-direction: column;
overflow: hidden;
}

body[data-path="bookings"] .booking-page .panel-placeholder {
display: flex !important;
align-items: center !important;
justify-content: center !important;
text-align: center !important;
min-height: 360px;
padding: 24px;
}

body[data-path="bookings"] .booking-page .panel-content {
padding: 16px;
display: flex;
flex-direction: column;
min-height: 0;
overflow: hidden;
gap: 12px;
}

body[data-path="bookings"] .booking-page #booking-form {
overflow-y: auto;
min-height: 0;
padding-right: 2px;
}

body[data-path="bookings"] .booking-page .form-row {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 10px;
}

body[data-path="bookings"] .booking-page .form-group,
body[data-path="bookings"] .booking-page .form-group input,
body[data-path="bookings"] .booking-page .form-group select,
body[data-path="bookings"] .booking-page .form-group textarea {
width: 100%;
min-width: 0;
box-sizing: border-box;
}

body[data-path="bookings"] .booking-page .form-buttons {
position: sticky;
bottom: 0;
background: #fff;
padding-top: 10px;
margin-top: 12px;
z-index: 3;
}

body[data-path="bookings"] .booking-page .btn-submit {
width: 100%;
min-height: 44px;
}

@media (max-width: 1024px) {
body[data-path="bookings"] .booking-page .main-content {
display: flex !important;
flex-direction: column !important;
gap: 12px !important;
padding: 16px !important;
}

body[data-path="bookings"] .booking-page .calendar-container,
body[data-path="bookings"] .booking-page .side-panel {
width: 100% !important;
max-width: 100% !important;
min-width: 0 !important;
}

body[data-path="bookings"] .booking-page .side-panel {
position: static;
max-height: none;
}
}

@media (max-width: 768px) {
body[data-path="bookings"] .booking-page,
body[data-path="bookings"] .booking-page * {
max-width: 100% !important;
box-sizing: border-box;
}

body[data-path="bookings"] .booking-page .main-content {
padding: 16px !important;
}

body[data-path="bookings"] .booking-page .form-row {
grid-template-columns: 1fr !important;
gap: 8px;
}

body[data-path="bookings"] .booking-page .calendar-day {
aspect-ratio: auto;
min-height: 52px;
}

body[data-path="bookings"] .booking-page #booking-form,
body[data-path="bookings"] .booking-page #existing-bookings {
overflow: visible;
max-height: none;
}

body[data-path="bookings"] .booking-page .form-buttons {
position: static;
}
}

/* BOOKINGS ALIGNMENT ABSOLUTE FINAL */
body[data-path="bookings"] {
  overflow-x: hidden !important;
}

body[data-path="bookings"] .booking-page .main-content {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 430px !important;
  gap: 20px !important;
  align-items: stretch !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 16px !important;
  height: auto !important;
  overflow: visible !important;
}

body[data-path="bookings"] .booking-page .calendar-container {
  width: 100% !important;
  min-width: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

body[data-path="bookings"] .booking-page .calendar-header,
body[data-path="bookings"] .booking-page .calendar-weekdays,
body[data-path="bookings"] .booking-page .calendar-grid,
body[data-path="bookings"] .booking-page .calendar-legend {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

body[data-path="bookings"] .booking-page .calendar-day {
  aspect-ratio: 1/1;
  min-height: 64px;
  max-height: none;
}

body[data-path="bookings"] .booking-page .side-panel {
  width: 430px !important;
  min-width: 430px !important;
  max-width: 430px !important;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 136px);
  position: sticky;
  top: 12px;
  overflow: hidden;
}

body[data-path="bookings"] .booking-page #panel-placeholder {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  min-height: 340px;
  padding: 24px;
}

body[data-path="bookings"] .booking-page #panel-placeholder[style*="display: none"] {
  display: none !important;
}

body[data-path="bookings"] .booking-page #panel-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  padding: 16px;
}

body[data-path="bookings"] .booking-page #booking-form {
  min-height: 0;
  overflow: visible;
}

body[data-path="bookings"] .booking-page .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body[data-path="bookings"] .booking-page .form-group,
body[data-path="bookings"] .booking-page .form-group input,
body[data-path="bookings"] .booking-page .form-group select,
body[data-path="bookings"] .booking-page .form-group textarea {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

body[data-path="bookings"] .booking-page .form-group label {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
}

body[data-path="bookings"] .booking-page .form-buttons {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding-top: 10px;
  margin-top: 12px;
  z-index: 4;
}

body[data-path="bookings"] .booking-page .btn-submit {
  width: 100%;
  min-height: 44px;
}

@media (max-width: 1024px) {
  body[data-path="bookings"] .booking-page .main-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 16px !important;
  }

  body[data-path="bookings"] .booking-page .calendar-container,
  body[data-path="bookings"] .booking-page .side-panel {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body[data-path="bookings"] .booking-page .side-panel {
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  body[data-path="bookings"] .booking-page,
  body[data-path="bookings"] .booking-page * {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body[data-path="bookings"] .booking-page .main-content {
    padding: 16px !important;
  }

  body[data-path="bookings"] .booking-page .form-row {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  body[data-path="bookings"] .booking-page .calendar-day {
    aspect-ratio: auto;
    min-height: 52px;
  }

  body[data-path="bookings"] .booking-page .form-buttons {
    position: static;
  }
}

/* BOOKINGS SCROLL UNLOCK FINAL V2 */
body[data-path="bookings"] .booking-page .side-panel,
body[data-path="bookings"] .booking-page #panel-content,
body[data-path="bookings"] .booking-page #booking-form,
body[data-path="bookings"] .booking-page .form-container,
body[data-path="bookings"] .booking-page #existing-bookings {
position: static !important;
max-height: none !important;
height: auto !important;
overflow: visible !important;
}

body[data-path="bookings"] .booking-page .form-buttons {
position: static !important;
bottom: auto !important;
background: transparent !important;
}

/* PLACEHOLDER TRUE CENTER FINAL */
body[data-path="bookings"] .booking-page .main-content {
align-items: stretch !important;
}

body[data-path="bookings"] .booking-page .side-panel {
display: flex !important;
flex-direction: column !important;
min-height: 560px !important;
}

body[data-path="bookings"] .booking-page #panel-placeholder {
display: grid !important;
place-items: center !important;
flex: 1 1 auto !important;
width: 100% !important;
min-height: 0 !important;
padding: 24px !important;
text-align: center !important;
}

body[data-path="bookings"] .booking-page #panel-placeholder p {
margin: 0 !important;
width: 100% !important;
max-width: 280px !important;
text-align: center !important;
line-height: 1.6 !important;
}

/* DYNAMIC PANEL BEHAVIOR - DESKTOP FINAL */
@media (min-width: 1024px) {
body[data-path="bookings"] .booking-page.panel-closed .main-content {
display: grid !important;
grid-template-columns: minmax(0, 1fr) 0 !important;
gap: 0 !important;
max-width: 1320px !important;
transition: grid-template-columns 0.25s ease, gap 0.25s ease;
}

body[data-path="bookings"] .booking-page.panel-closed .calendar-container {
max-width: 920px !important;
margin-left: auto !important;
margin-right: auto !important;
}

body[data-path="bookings"] .booking-page.panel-closed .side-panel {
opacity: 0 !important;
pointer-events: none !important;
width: 0 !important;
min-width: 0 !important;
max-width: 0 !important;
overflow: hidden !important;
padding: 0 !important;
border: 0 !important;
}

body[data-path="bookings"] .booking-page.panel-open .main-content {
display: grid !important;
grid-template-columns: minmax(0, 1fr) 430px !important;
gap: 20px !important;
max-width: 1320px !important;
transition: grid-template-columns 0.25s ease, gap 0.25s ease;
}

body[data-path="bookings"] .booking-page.panel-open .side-panel {
opacity: 1 !important;
pointer-events: auto !important;
width: 430px !important;
min-width: 430px !important;
max-width: 430px !important;
}
}
