/**
 * HIB Stadion Booking - Frontend Admin & Portal Styles
 * Adheres strictly to Beitostølen Skistadion design system:
 * - 8px corner radii everywhere (except circles)
 * - Poppins typography
 * - Beitostølen brand palette: #016d8f, #004e67, #d71920
 */

:root {
	--hib-adm-primary: #016d8f;
	--hib-adm-primary-hover: #004e67;
	--hib-adm-accent: #d71920;
	--hib-adm-accent-hover: #b8141a;
	--hib-adm-bg: #f8fafc;
	--hib-adm-card-bg: #ffffff;
	--hib-adm-text: #0f172a;
	--hib-adm-text-muted: #64748b;
	--hib-adm-border: #e2e8f0;
	--hib-adm-border-hover: #cbd5e1;
	--hib-adm-radius: 8px;
	--hib-adm-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
	--hib-adm-shadow-lg: 0 16px 32px -8px rgba(15, 23, 42, 0.12), 0 6px 12px -4px rgba(15, 23, 42, 0.06);
	--hib-adm-font: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

#hib-stadion-frontend-admin-root {
	font-family: var(--hib-adm-font);
	color: var(--hib-adm-text);
	background: transparent;
	width: 100%;
	max-width: 1240px;
	margin: 20px auto;
	box-sizing: border-box;
	line-height: 1.5;
}

#hib-stadion-frontend-admin-root * {
	box-sizing: border-box;
	font-family: inherit;
}

/* ==========================================================================
   1. LOGIN SCREEN STYLES
   ========================================================================== */
.hib-fadm-login-wrapper {
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 580px;
	padding: 50px 20px;
	overflow: hidden;
}

.hib-fadm-decor-blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(75px);
	opacity: 0.28;
	pointer-events: none;
	z-index: 0;
}

.hib-fadm-blob-1 {
	width: 340px;
	height: 340px;
	background: linear-gradient(135deg, #016d8f, #38bdf8);
	top: 5%;
	left: 15%;
	animation: hibFadmFloat 8s ease-in-out infinite alternate;
}

.hib-fadm-blob-2 {
	width: 300px;
	height: 300px;
	background: linear-gradient(135deg, #d71920, #fb7185);
	bottom: 5%;
	right: 15%;
	animation: hibFadmFloat 10s ease-in-out infinite alternate-reverse;
}

@keyframes hibFadmFloat {
	0% { transform: translate(0, 0) scale(1); }
	100% { transform: translate(20px, 20px) scale(1.06); }
}

.hib-fadm-login-card {
	position: relative;
	z-index: 1;
	background: rgba(255, 255, 255, 0.96);
	backdrop-filter: blur(14px);
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: var(--hib-adm-radius);
	box-shadow: var(--hib-adm-shadow-lg);
	width: 100%;
	max-width: 440px;
	padding: 36px 32px;
	text-align: center;
}

.hib-fadm-login-brand {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}

.hib-fadm-brand-icon {
	width: 68px;
	height: 68px;
	border-radius: var(--hib-adm-radius);
	background: #f0f7f9;
	border: 1px solid #cbe3eb;
	display: flex;
	align-items: center;
	justify-content: center;
}

.hib-fadm-login-card h2 {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 6px 0;
	color: var(--hib-adm-primary);
	letter-spacing: -0.01em;
}

.hib-fadm-login-subtitle {
	font-size: 13.5px;
	color: var(--hib-adm-text-muted);
	margin: 0 0 24px 0;
	line-height: 1.45;
}

.hib-fadm-alert {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 12px 14px;
	border-radius: var(--hib-adm-radius);
	font-size: 13.5px;
	margin-bottom: 18px;
	text-align: left;
}

.hib-fadm-alert-error {
	background: #fef2f2;
	border: 1px solid #fee2e2;
	color: #991b1b;
}

.hib-fadm-alert-success {
	background: #f0fdf4;
	border: 1px solid #dcfce7;
	color: #166534;
}

.hib-fadm-login-form {
	text-align: left;
}

.hib-fadm-field-group {
	margin-bottom: 18px;
}

.hib-fadm-field-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
}

.hib-fadm-input-icon-wrap {
	position: relative;
	display: flex;
	align-items: center;
}

.hib-fadm-input-icon {
	position: absolute;
	left: 14px;
	color: #94a3b8;
	pointer-events: none;
	display: flex;
}

.hib-fadm-input-icon-wrap input {
	width: 100%;
	height: 44px;
	padding: 0 42px 0 42px;
	font-size: 14.5px;
	border: 1px solid var(--hib-adm-border);
	border-radius: var(--hib-adm-radius);
	background: #ffffff;
	color: var(--hib-adm-text);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hib-fadm-input-icon-wrap input:focus {
	outline: none;
	border-color: var(--hib-adm-primary);
	box-shadow: 0 0 0 3px rgba(1, 109, 143, 0.15);
}

.hib-fadm-password-toggle {
	position: absolute;
	right: 8px;
	background: transparent;
	border: none;
	padding: 8px;
	color: #94a3b8;
	cursor: pointer;
	border-radius: var(--hib-adm-radius);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hib-fadm-password-toggle:hover {
	color: var(--hib-adm-primary);
}

.hib-fadm-login-footer {
	margin-top: 24px;
	padding-top: 18px;
	border-top: 1px solid var(--hib-adm-border);
	font-size: 12px;
	color: var(--hib-adm-text-muted);
}

/* ==========================================================================
   2. DASHBOARD TOP BAR & TABS
   ========================================================================== */
.hib-fadm-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--hib-adm-card-bg);
	border: 1px solid var(--hib-adm-border);
	border-radius: var(--hib-adm-radius);
	padding: 16px 24px;
	margin-bottom: 18px;
	box-shadow: var(--hib-adm-shadow);
	flex-wrap: wrap;
	gap: 16px;
}

.hib-fadm-brand-wrap {
	display: flex;
	align-items: center;
	gap: 14px;
}

.hib-fadm-logo {
	width: 42px;
	height: 42px;
	border-radius: var(--hib-adm-radius);
	background: #f0f7f9;
	color: var(--hib-adm-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #cbe3eb;
}

.hib-fadm-portal-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--hib-adm-primary);
	margin: 0;
	line-height: 1.2;
}

.hib-fadm-portal-badge {
	font-size: 12px;
	color: var(--hib-adm-text-muted);
	font-weight: 500;
}

.hib-fadm-user-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.hib-fadm-user-meta {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	margin-right: 4px;
}

.hib-fadm-user-name {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--hib-adm-text);
}

.hib-fadm-role-pill {
	font-size: 11px;
	font-weight: 600;
	padding: 1px 8px;
	border-radius: var(--hib-adm-radius);
	background: #e0f2fe;
	color: #0369a1;
}

.hib-fadm-header-users-btn {
	cursor: pointer;
	text-decoration: none;
}

.hib-fadm-header-users-btn.active {
	background: var(--hib-adm-primary) !important;
	color: #ffffff !important;
	border-color: var(--hib-adm-primary) !important;
	box-shadow: 0 2px 6px -1px rgba(1, 109, 143, 0.35);
}

.hib-fadm-header-users-btn.active svg {
	stroke: #ffffff !important;
}

/* Nav Tabs */
.hib-fadm-nav-tabs {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding-bottom: 4px;
	margin-bottom: 20px;
	scrollbar-width: thin;
}

.hib-fadm-tab-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	font-size: 13.5px;
	font-weight: 600;
	background: #ffffff;
	color: #475569;
	border: 1px solid var(--hib-adm-border);
	border-radius: var(--hib-adm-radius);
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.15s ease;
}

.hib-fadm-tab-btn:hover {
	background: #f8fafc;
	color: var(--hib-adm-primary);
	border-color: #cbd5e1;
}

.hib-fadm-tab-btn.active {
	background: var(--hib-adm-primary);
	color: #ffffff;
	border-color: var(--hib-adm-primary);
	box-shadow: 0 4px 10px -2px rgba(1, 109, 143, 0.3);
}

.hib-fadm-tab-badge {
	background: var(--hib-adm-accent);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 1px 7px;
	border-radius: 9999px;
	line-height: 1.2;
}

.hib-fadm-tab-pane {
	display: none;
}

.hib-fadm-tab-pane.active {
	display: block;
	animation: hibFadeIn 0.2s ease-out;
}

@keyframes hibFadeIn {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   3. CARDS, KPIS & GRIDS
   ========================================================================== */
.hib-fadm-card {
	background: var(--hib-adm-card-bg);
	border: 1px solid var(--hib-adm-border);
	border-radius: var(--hib-adm-radius);
	box-shadow: var(--hib-adm-shadow);
	padding: 22px;
	margin-bottom: 20px;
}

.hib-fadm-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
	flex-wrap: wrap;
	gap: 10px;
}

.hib-fadm-card-header h3 {
	font-size: 16.5px;
	font-weight: 700;
	color: #1e293b;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.hib-fadm-kpi-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 22px;
}

@media (max-width: 900px) {
	.hib-fadm-kpi-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 540px) {
	.hib-fadm-kpi-grid {
		grid-template-columns: 1fr;
	}
}

.hib-fadm-kpi-card {
	background: var(--hib-adm-card-bg);
	border: 1px solid var(--hib-adm-border);
	border-radius: var(--hib-adm-radius);
	padding: 18px;
	box-shadow: var(--hib-adm-shadow);
	position: relative;
	overflow: hidden;
}

.hib-fadm-kpi-card.kpi-alert {
	border-color: #fcd34d;
	background: #fffbeb;
}

.hib-fadm-kpi-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 10px;
}

.hib-fadm-kpi-label {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--hib-adm-text-muted);
}

.hib-fadm-kpi-icon-wrap {
	width: 32px;
	height: 32px;
	border-radius: var(--hib-adm-radius);
	display: flex;
	align-items: center;
	justify-content: center;
}

.hib-fadm-kpi-num {
	font-size: 28px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.1;
	margin-bottom: 4px;
}

.hib-fadm-kpi-sub {
	font-size: 11.5px;
	color: #94a3b8;
}

.hib-fadm-grid-2col {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

@media (max-width: 860px) {
	.hib-fadm-grid-2col {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   4. SCHEDULE & RECENT LISTS
   ========================================================================== */
.hib-fadm-schedule-list,
.hib-fadm-recent-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.hib-fadm-schedule-item,
.hib-fadm-recent-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	background: #f8fafc;
	border: 1px solid var(--hib-adm-border);
	border-radius: var(--hib-adm-radius);
	gap: 12px;
}

.hib-fadm-sched-time {
	font-weight: 700;
	color: var(--hib-adm-primary);
	font-size: 13px;
	min-width: 100px;
}

.hib-fadm-sched-info {
	flex: 1;
	display: flex;
	flex-direction: column;
}

.hib-fadm-sched-details {
	font-size: 11.5px;
	color: var(--hib-adm-text-muted);
}

#hib-stadion-frontend-admin .hib-fadm-recent-main,
.hib-fadm-recent-main {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
}

#hib-stadion-frontend-admin .hib-fadm-recent-ref,
.hib-fadm-recent-ref {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: nowrap;
	line-height: 1.2;
}

#hib-stadion-frontend-admin .hib-fadm-recent-ref strong,
.hib-fadm-recent-ref strong {
	font-size: 13.5px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	white-space: nowrap !important;
	line-height: 1.2 !important;
	display: inline-block;
	letter-spacing: -0.01em;
}

#hib-stadion-frontend-admin .hib-fadm-recent-date,
.hib-fadm-recent-date {
	font-size: 11.5px !important;
	color: var(--hib-adm-text-muted) !important;
	white-space: nowrap !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
}

#hib-stadion-frontend-admin .hib-fadm-recent-name,
.hib-fadm-recent-name {
	font-size: 13px !important;
	color: #334155 !important;
	margin-top: 4px;
	line-height: 1.35 !important;
	font-weight: 500 !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#hib-stadion-frontend-admin .hib-fadm-recent-name small,
.hib-fadm-recent-name small {
	font-size: 11.5px !important;
	color: var(--hib-adm-text-muted) !important;
	font-weight: 400 !important;
}

#hib-stadion-frontend-admin .hib-fadm-recent-actions,
.hib-fadm-recent-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

/* ==========================================================================
   5. TABLES & TOOLBAR
   ========================================================================== */
.hib-fadm-table-toolbar {
	margin-bottom: 16px;
}

.hib-fadm-filter-group {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.hib-fadm-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 240px;
}

.hib-fadm-search-wrap svg {
	position: absolute;
	left: 12px;
	color: #94a3b8;
}

.hib-fadm-search-wrap input {
	width: 100%;
	height: 38px;
	padding: 0 12px 0 36px;
	border: 1px solid var(--hib-adm-border);
	border-radius: var(--hib-adm-radius);
	font-size: 13.5px;
}

.hib-fadm-search-wrap input:focus {
	outline: none;
	border-color: var(--hib-adm-primary);
}

.hib-fadm-table-responsive {
	overflow-x: auto;
	scrollbar-width: thin;
}

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

.hib-fadm-table th {
	text-align: left;
	padding: 10px 14px;
	background: #f1f5f9;
	color: #475569;
	font-weight: 600;
	border-bottom: 1px solid var(--hib-adm-border);
	white-space: nowrap;
}

.hib-fadm-table td {
	padding: 12px 14px;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}

.hib-fadm-table tr:hover td {
	background: #f8fafc;
}

.hib-fadm-ref-link {
	background: transparent;
	border: none;
	color: var(--hib-adm-primary);
	font-weight: 700;
	cursor: pointer;
	padding: 0;
	text-decoration: underline;
}

.hib-fadm-date-sub {
	display: block;
	font-size: 11px;
	color: var(--hib-adm-text-muted);
}

.hib-fadm-cust-badge {
	display: inline-block;
	font-size: 10.5px;
	padding: 1px 6px;
	background: #e2e8f0;
	color: #334155;
	border-radius: var(--hib-adm-radius);
	margin-left: 4px;
}

/* ==========================================================================
   6. BADGES & BUTTONS
   ========================================================================== */
.hib-fadm-badge {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 600;
	padding: 3px 10px;
	border-radius: var(--hib-adm-radius);
	line-height: 1.3;
	white-space: nowrap;
}

.hib-badge-confirmed {
	background: #dcfce7;
	color: #15803d;
	border: 1px solid #bbf7d0;
}

.hib-badge-pending {
	background: #fef3c7;
	color: #b45309;
	border: 1px solid #fde68a;
}

.hib-badge-danger {
	background: #fee2e2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.hib-badge-info {
	background: #e0f2fe;
	color: #0369a1;
	border: 1px solid #bae6fd;
}

.hib-badge-secondary {
	background: #f1f5f9;
	color: #64748b;
	border: 1px solid #e2e8f0;
}

.hib-fadm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 600;
	height: 38px;
	padding: 0 16px;
	border-radius: var(--hib-adm-radius);
	border: 1px solid transparent;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.15s ease;
	line-height: 1;
}

.hib-fadm-btn-primary {
	background: var(--hib-adm-primary);
	color: #ffffff;
}

.hib-fadm-btn-primary:hover {
	background: var(--hib-adm-primary-hover);
	color: #ffffff;
}

.hib-fadm-btn-secondary {
	background: #f1f5f9;
	color: #334155;
	border-color: var(--hib-adm-border);
}

.hib-fadm-btn-secondary:hover {
	background: #e2e8f0;
	color: #0f172a;
}

.hib-fadm-btn-outline {
	background: transparent;
	border-color: var(--hib-adm-border);
	color: var(--hib-adm-text);
}

.hib-fadm-btn-outline:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
}

.hib-fadm-btn-success {
	background: #16a34a;
	color: #ffffff;
}

.hib-fadm-btn-success:hover {
	background: #15803d;
}

.hib-fadm-btn-danger {
	background: #dc2626;
	color: #ffffff;
}

.hib-fadm-btn-danger:hover {
	background: #b91c1c;
}

.hib-fadm-btn-sm {
	height: 32px;
	padding: 0 12px;
	font-size: 12.5px;
}

.hib-fadm-btn-xs {
	height: 28px;
	padding: 0 8px;
	font-size: 12px;
}

.hib-fadm-btn-block {
	width: 100%;
}

.hib-fadm-action-btns {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 6px;
}

.hib-fadm-input,
.hib-fadm-select {
	height: 38px;
	padding: 0 12px;
	font-size: 13.5px;
	border: 1px solid var(--hib-adm-border);
	border-radius: var(--hib-adm-radius);
	background: #ffffff;
}

.hib-fadm-input-sm,
.hib-fadm-select-sm {
	height: 30px;
	padding: 0 8px;
	font-size: 12.5px;
	border: 1px solid var(--hib-adm-border);
	border-radius: var(--hib-adm-radius);
	background: #ffffff;
}

/* ==========================================================================
   7. STANDPLASS 30-TARGET INTERACTIVE RANGE GRID
   ========================================================================== */
.hib-fadm-standplass-controlbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 18px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--hib-adm-border);
}

.hib-fadm-date-nav {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hib-fadm-session-chips {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.hib-session-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 14px;
	background: #ffffff;
	border: 1px solid #cbd5e1;
	border-radius: var(--hib-adm-radius);
	font-size: 13px !important;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	transition: all 0.15s ease;
	line-height: 1.4;
}

.hib-session-chip:hover {
	background: #f8fafc;
	border-color: #94a3b8;
}

.hib-session-chip .hib-chip-count {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 9999px;
	font-size: 11px;
	margin-left: 8px;
	background: #e2e8f0;
	color: #475569;
	font-weight: 600;
	line-height: 1.2;
}

/* Inactive chip that has bookings */
.hib-session-chip.has-bookings {
	border-color: #7dd3fc;
	background: #f0f9ff;
	color: #0369a1;
}

.hib-session-chip.has-bookings:hover {
	background: #e0f2fe;
	border-color: #38bdf8;
}

.hib-session-chip.has-bookings .hib-chip-count {
	background: #0284c7;
	color: #ffffff;
	font-weight: 700;
}

/* ACTIVE session chip (selected slot) - whether has bookings or not */
#hib-stadion-frontend-admin .hib-session-chip.active,
#hib-stadion-frontend-admin .hib-session-chip.active.has-bookings,
.hib-session-chip.active,
.hib-session-chip.active.has-bookings {
	background: #016d8f !important;
	color: #ffffff !important;
	border-color: #016d8f !important;
	box-shadow: 0 2px 8px -1px rgba(1, 109, 143, 0.45);
}

#hib-stadion-frontend-admin .hib-session-chip.active .hib-chip-count,
#hib-stadion-frontend-admin .hib-session-chip.active.has-bookings .hib-chip-count,
.hib-session-chip.active .hib-chip-count,
.hib-session-chip.active.has-bookings .hib-chip-count {
	background: rgba(255, 255, 255, 0.25) !important;
	color: #ffffff !important;
	font-weight: 700 !important;
}

.hib-fadm-standplass-legend {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 18px;
	font-size: 12.5px;
	color: var(--hib-adm-text-muted);
	flex-wrap: wrap;
}

.hib-legend-item {
	display: flex;
	align-items: center;
	gap: 6px;
}

.hib-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	display: inline-block;
}

.hib-dot-available {
	background: #22c55e;
}

.hib-dot-reserved {
	background: #016d8f;
}

.hib-dot-blocked {
	background: #ef4444;
}

/* 30-Target Shooting Range Grid */
.hib-fadm-range-grid {
	display: grid;
	grid-template-columns: repeat(10, 1fr);
	gap: 12px;
}

@media (max-width: 1024px) {
	.hib-fadm-range-grid {
		grid-template-columns: repeat(6, 1fr);
	}
}

@media (max-width: 640px) {
	.hib-fadm-range-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.hib-target-cell {
	border-radius: var(--hib-adm-radius);
	border: 1px solid var(--hib-adm-border);
	background: #ffffff;
	padding: 10px 8px;
	display: flex;
	flex-direction: column;
	min-height: 86px;
	transition: all 0.2s ease;
	position: relative;
	cursor: default;
}

.hib-target-cell.target-available {
	border-color: #bbf7d0;
	background: #f0fdf4;
}

.hib-target-cell.target-available .hib-target-status-dot {
	background: #22c55e;
}

.hib-target-cell.target-reserved {
	border-color: #bae6fd;
	background: #f0f9ff;
	box-shadow: 0 2px 6px -1px rgba(1, 109, 143, 0.15);
	cursor: pointer;
}

.hib-target-cell.target-reserved:hover {
	transform: translateY(-2px);
	border-color: var(--hib-adm-primary);
}

.hib-target-cell.target-reserved .hib-target-status-dot {
	background: var(--hib-adm-primary);
}

.hib-target-cell.target-blocked {
	border-color: #fecaca;
	background: #fef2f2;
}

.hib-target-cell.target-blocked .hib-target-status-dot {
	background: #ef4444;
}

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

.hib-target-num {
	font-size: 13.5px;
	font-weight: 700;
	color: #0f172a;
}

.hib-target-status-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	display: inline-block;
}

.hib-target-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hib-target-status-text {
	font-size: 11px;
	color: #16a34a;
	font-weight: 600;
}

.hib-target-cell.target-reserved .hib-target-status-text {
	color: var(--hib-adm-primary);
}

.hib-target-cell.target-blocked .hib-target-status-text {
	color: #dc2626;
}

.hib-target-org-name {
	font-size: 10.5px;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.hib-target-ref-sub {
	font-size: 9.5px;
	color: var(--hib-adm-text-muted);
}

/* ==========================================================================
   8. MODALS & TOAST
   ========================================================================== */
.hib-fadm-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.6);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.2s ease;
	padding: 20px;
}

.hib-fadm-modal-backdrop.open {
	opacity: 1;
	visibility: visible;
}

.hib-fadm-modal-dialog {
	background: #ffffff;
	border-radius: var(--hib-adm-radius);
	box-shadow: var(--hib-adm-shadow-lg);
	width: 100%;
	max-width: 680px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	transform: translateY(16px);
	transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	overflow: hidden;
}

.hib-fadm-modal-backdrop.open .hib-fadm-modal-dialog {
	transform: translateY(0);
}

.hib-fadm-modal-sm {
	max-width: 480px;
}

.hib-fadm-modal-header {
	padding: 18px 24px;
	border-bottom: 1px solid var(--hib-adm-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.hib-fadm-modal-header h3 {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--hib-adm-primary);
}

.hib-fadm-modal-close {
	background: transparent;
	border: none;
	font-size: 24px;
	line-height: 1;
	color: #94a3b8;
	cursor: pointer;
	padding: 4px;
	border-radius: var(--hib-adm-radius);
}

.hib-fadm-modal-close:hover {
	color: #0f172a;
}

.hib-fadm-modal-body {
	padding: 24px;
	overflow-y: auto;
	flex: 1;
}

.hib-fadm-modal-footer {
	padding: 16px 24px;
	border-top: 1px solid var(--hib-adm-border);
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #f8fafc;
	gap: 12px;
}

.hib-fadm-modal-actions-left {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* Modal Booking Detail Sections */
.hib-modal-detail-section {
	margin-bottom: 20px;
}

.hib-modal-detail-section h4 {
	font-size: 13.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--hib-adm-primary);
	margin: 0 0 10px 0;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--hib-adm-border);
}

.hib-modal-info-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	font-size: 13px;
}

.hib-modal-info-item strong {
	display: block;
	font-size: 11px;
	color: var(--hib-adm-text-muted);
	text-transform: uppercase;
}

/* Loading spinner */
.hib-fadm-loading-spinner {
	text-align: center;
	padding: 40px 20px;
	color: var(--hib-adm-text-muted);
}

.hib-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid #e2e8f0;
	border-top-color: var(--hib-adm-primary);
	border-radius: 50%;
	animation: hibSpin 0.7s linear infinite;
	margin: 0 auto 12px auto;
}

@keyframes hibSpin {
	to { transform: rotate(360deg); }
}

/* Toast */
.hib-fadm-toast {
	position: fixed;
	bottom: 24px;
	right: 24px;
	background: #0f172a;
	color: #ffffff;
	padding: 12px 20px;
	border-radius: var(--hib-adm-radius);
	font-size: 13.5px;
	font-weight: 500;
	box-shadow: var(--hib-adm-shadow-lg);
	z-index: 100000;
	opacity: 0;
	transform: translateY(12px);
	pointer-events: none;
	transition: all 0.2s ease;
}

.hib-fadm-toast.show {
	opacity: 1;
	transform: translateY(0);
}
