/**
 * Softtonia Booking Manager - Shared CSS Utilities (Admin & Frontend)
 */

/* Canonical visually-hidden utility keeping elements in the accessibility tree */
.visually-hidden:where(:not(:focus-within, :active)) {
	position: absolute !important;
	clip-path: inset(50%) !important;
	overflow: hidden !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	border: 0 !important;
	white-space: nowrap !important;
}

/* Ensure [hidden] attribute is never overridden by flex/grid classes (.sbm-form-group, .sbm-field, etc.) */
[hidden] {
	display: none !important;
}

.sbm-muted {
	color: #64748b;
	font-size: 0.85em;
}

.sbm-badge {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1.4;
	border-radius: 999px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

/* Booking Status Badges */
.sbm-status-confirmed,
.sbm-status-completed,
.sbm-payment-paid {
	background-color: #dcfce7;
	color: #15803d;
	border: 1px solid #86efac;
}

.sbm-status-pending,
.sbm-payment-pending,
.sbm-payment-unpaid,
.sbm-payment-authorized {
	background-color: #fef9c3;
	color: #854d0e;
	border: 1px solid #fde047;
}

.sbm-status-cancelled,
.sbm-status-rejected,
.sbm-payment-failed {
	background-color: #fee2e2;
	color: #991b1b;
	border: 1px solid #fca5a5;
}

.sbm-status-no_show,
.sbm-payment-partially_refunded,
.sbm-payment-refunded {
	background-color: #e0e7ff;
	color: #1e3a8a;
	border: 1px solid #a5b4fc;
}
