.brb-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 16px;
}

.brb-legend {
	display: flex;
	gap: 16px;
	font-size: 13px;
	margin-bottom: 12px;
}

.brb-legend span::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 6px;
	vertical-align: middle;
	border-radius: 2px;
}

.brb-leg-free::before { background: #e8f5e9; border: 1px solid #4caf50; }
.brb-leg-pending::before { background: #fff8e1; border: 1px solid #ffb300; }
.brb-leg-confirmed::before { background: #ffebee; border: 1px solid #e53935; }
.brb-leg-selected::before { background: #e3f2fd; border: 2px solid #1e88e5; }

.brb-day-heading {
	margin: 18px 0 8px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.brb-hours-pill {
	font-size: 12px;
	font-weight: 500;
	background: #eef4fa;
	color: #1d4e89;
	border: 1px solid #c5daf0;
	padding: 2px 9px;
	border-radius: 12px;
}

.brb-closed-notice {
	background: #f8f9fa;
	border: 1px solid #dcdcdc;
	color: #555;
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 14px;
	font-style: italic;
}

.brb-period-divider td {
	background: #f0f4f8 !important;
	color: #334e68;
	font-size: 12px;
	font-weight: 600;
	text-align: left !important;
	padding: 5px 10px !important;
}

.brb-table-wrap {
	overflow-x: auto;
}

.brb-grid-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.brb-grid-table th,
.brb-grid-table td {
	border: 1px solid #dcdcdc;
	padding: 8px;
	text-align: center;
	min-width: 125px;
}

.brb-grid-table th {
	background: #f5f5f5;
	font-weight: 600;
}

.brb-slot {
	cursor: pointer;
	transition: background 0.15s ease;
	vertical-align: top;
}

.brb-slot.free {
	background: #e8f5e9;
}

.brb-slot.free:hover {
	background: #c8e6c9;
}

.brb-slot.pending {
	background: #fff8e1;
}

.brb-slot.confirmed {
	background: #ffebee;
}

.brb-slot.readonly,
.brb-slot.locked {
	cursor: default;
}

.brb-slot.selected {
	background: #e3f2fd !important;
	outline: 2px solid #1e88e5;
}

.brb-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 3px;
	margin-bottom: 4px;
}

.brb-badge-pending { background: #ffb300; color: #000; }
.brb-badge-confirmed { background: #e53935; color: #fff; }
.brb-badge-repeat {
	background: #e3f2fd;
	color: #1565c0;
	border: 1px solid #90caf9;
	margin-left: 3px;
}

.brb-cell-contact {
	font-size: 11px;
	color: #444;
	margin-top: 3px;
	line-height: 1.3;
	word-break: break-word;
}

.brb-info-btn {
	margin-top: 6px !important;
	font-size: 11px !important;
	line-height: 1.4 !important;
	min-height: 24px !important;
	padding: 1px 8px !important;
}

.brb-booking-form {
	margin-top: 20px;
	padding: 16px;
	background: #f9f9f9;
	border: 1px solid #dcdcdc;
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	align-items: flex-end;
}

.brb-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.brb-field input,
.brb-field select,
.brb-field textarea {
	padding: 6px 10px;
	min-width: 185px;
}

.brb-repeat-box {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: flex-end;
	background: #eef5fc;
	border: 1px solid #c5daf0;
	padding: 10px 12px;
	border-radius: 4px;
}

.brb-repeat-box .brb-field input[type="number"],
.brb-repeat-box .brb-field select {
	min-width: 120px;
}

.brb-repeat-summary {
	width: 100%;
	font-size: 12px;
	color: #1d4e89;
	font-weight: 500;
}

/* Booking Info Modal */
.brb-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.brb-modal {
	background: #fff;
	border-radius: 4px;
	width: 100%;
	max-width: 490px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
	overflow: hidden;
}

.brb-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 18px;
	background: #f5f5f5;
	border-bottom: 1px solid #dcdcdc;
}

.brb-modal-header h3 {
	margin: 0;
	font-size: 16px;
}

.brb-modal-close {
	background: none;
	border: none;
	font-size: 20px;
	cursor: pointer;
	line-height: 1;
	color: #555;
}

.brb-modal-body {
	padding: 18px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 85vh;
	overflow-y: auto;
}

.brb-modal-body .brb-field input,
.brb-modal-body .brb-field select,
.brb-modal-body .brb-field textarea {
	width: 100%;
	box-sizing: border-box;
}

.brb-modal-meta {
	background: #f9f9f9;
	border: 1px solid #e2e2e2;
	padding: 8px 12px;
	font-size: 13px;
	border-radius: 3px;
}

.brb-modal-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 8px;
	border-top: 1px solid #eee;
}

/* Monthly Calendar Overview & Day Drill-down */
.brb-month-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 14px;
}

.brb-month-title-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

.brb-month-title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.brb-month-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 13px;
	margin-bottom: 14px;
}

.brb-month-legend span::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 6px;
	vertical-align: middle;
	border-radius: 2px;
}

.brb-leg-large::before { background: #e8f5e9; border: 1px solid #43a047; }
.brb-leg-limited::before { background: #fff8e1; border: 1px solid #fb8c00; }
.brb-leg-full::before { background: #ffebee; border: 1px solid #e53935; }
.brb-leg-closed::before { background: #f3f4f6; border: 1px solid #9ca3af; }

.brb-month-grid {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	font-size: 13px;
}

.brb-month-grid th {
	background: #f5f5f5;
	border: 1px solid #dcdcdc;
	padding: 8px 6px;
	text-align: center;
	font-weight: 600;
}

.brb-month-grid td {
	border: 1px solid #dcdcdc;
	height: 96px;
	vertical-align: top;
	padding: 6px;
}

.brb-month-empty {
	background: #fafafa;
}

.brb-month-day {
	cursor: pointer;
	transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.brb-month-day:hover {
	box-shadow: inset 0 0 0 2px #1e88e5;
	z-index: 1;
}

.brb-month-day.brb-status-large {
	background: #e8f5e9;
}

.brb-month-day.brb-status-large:hover {
	background: #d8efd9;
}

.brb-month-day.brb-status-limited {
	background: #fff8e1;
}

.brb-month-day.brb-status-limited:hover {
	background: #ffefc2;
}

.brb-month-day.brb-status-full {
	background: #ffebee;
}

.brb-month-day.brb-status-full:hover {
	background: #ffd6da;
}

.brb-month-day.brb-status-closed {
	background: #f3f4f6;
	color: #6b7280;
}

.brb-month-day-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 6px;
}

.brb-month-day-num {
	font-weight: 700;
	font-size: 14px;
}

.brb-month-today-badge {
	background: #1e88e5;
	color: #fff;
	font-size: 10px;
	font-weight: 600;
	padding: 1px 5px;
	border-radius: 3px;
}

.brb-month-status-pill {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	padding: 2px 6px;
	border-radius: 3px;
	margin-bottom: 4px;
}

.brb-pill-large {
	background: #c8e6c9;
	color: #1b5e20;
	border: 1px solid #81c784;
}

.brb-pill-limited {
	background: #ffe082;
	color: #6d4c00;
	border: 1px solid #ffb300;
}

.brb-pill-full {
	background: #ffcdd2;
	color: #b71c1c;
	border: 1px solid #e57373;
}

.brb-pill-closed {
	background: #e5e7eb;
	color: #4b5563;
	border: 1px solid #d1d5db;
}

.brb-month-counts {
	font-size: 11px;
	line-height: 1.35;
	color: #374151;
}

.brb-day-detail-panel {
	margin-top: 22px;
	padding: 16px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
}

.brb-day-detail-header {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid #e2e8f0;
}

.brb-day-detail-header h4 {
	margin: 0;
	font-size: 16px;
}

.brb-login-prompt {
	margin-top: 14px;
	padding: 12px 14px;
	background: #f0f7ff;
	border-left: 4px solid #1e88e5;
	font-size: 13px;
}

@media (max-width: 700px) {
	.brb-month-grid td {
		height: 76px;
		padding: 4px;
	}
	.brb-month-counts {
		display: none;
	}
}

/* Drag-to-Select Over Multiple Rink Slots (Admin / Rink Manager) */
.brb-dragging,
.brb-dragging * {
	user-select: none !important;
	-webkit-user-select: none !important;
}

.brb-slot.drag-preview {
	outline: 2px dashed #1565c0 !important;
	background: #d2e8fc !important;
}

.brb-drag-hint {
	font-size: 12px;
	color: #334e68;
	background: #f0f4f8;
	border: 1px solid #d9e2ec;
	padding: 6px 10px;
	border-radius: 4px;
	margin-bottom: 10px;
}

.brb-error-notice {
	background: #fef2f2;
	border: 1px solid #fecaca;
	border-left: 4px solid #dc2626;
	color: #991b1b;
	padding: 10px 14px;
	border-radius: 4px;
	font-size: 13px;
}

.brb-badge-cancel-req {
	background: #fef3c7;
	color: #92400e;
	border: 1px solid #f59e0b;
	margin-left: 3px;
}

.brb-cancel-req-btn {
	margin-top: 6px !important;
	font-size: 11px !important;
	line-height: 1.4 !important;
	min-height: 24px !important;
	padding: 1px 8px !important;
}

.brb-modal-cancel-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 8px;
	border-top: 1px dashed #d1d5db;
}

.brb-form-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.brb-bulk-cancel-btn {
	background: #d63638 !important;
	border-color: #d63638 !important;
	color: #fff !important;
}

.brb-bulk-cancel-btn:hover:not(:disabled) {
	background: #b32d2e !important;
	border-color: #b32d2e !important;
	color: #fff !important;
}

.brb-bulk-cancel-btn:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.brb-scope-radio-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-top: 4px;
}

.brb-scope-radio-option {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 10px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #f9f9f9;
	cursor: pointer;
}

.brb-scope-radio-option input[type="radio"] {
	min-width: auto !important;
	margin-top: 2px;
}

/* Opening Times Shortcode */
.brb-opening-times {
	background-color: transparent;
	padding: 16px;
	line-height: 1.55;
}

.brb-opening-times-table {
	width: 60%;
	max-width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	background-color: #ffffff !important;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	margin: 0 auto;
}

.brb-opening-times-table th,
.brb-opening-times-table td {
	background-color: #ffffff !important;
	padding: 20px;
	border-bottom: 1px solid #e5e7eb;
	text-align: left;
	vertical-align: top;
}

.brb-opening-times-table th {
	width: 150px;
	font-weight: 700;
	white-space: nowrap;
}

.brb-opening-times-table tr:last-child th,
.brb-opening-times-table tr:last-child td {
	border-bottom: none;
}

@media (max-width: 768px) {
	.brb-opening-times {
		padding: 8px;
	}

	.brb-opening-times-table {
		width: 100%;
	}

	.brb-opening-times-table th,
	.brb-opening-times-table td {
		padding: 10px 12px;
	}

	.brb-opening-times-table th {
		width: auto;
	}
}
