/* Design Tokens */
:root {
	--tw-primary: #667eea;
	--tw-primary-hover: #5568d3;
	--tw-success: #10b981;
	--tw-danger: #ef4444;
	--tw-surface: #ffffff;
	--tw-border: #e5e7eb;
	--tw-text: #1f2937;
	--tw-text-secondary: #6b7280;
}

/* Page Header (compact) */
.page-container .page-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--tw-border);
	gap: 12px;
}

.page-container .page-header__meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.page-container .page-header__breadcrumb {
	font-size: 14px;
	color: var(--tw-text-secondary);
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.page-container .page-header__title {
	font-size: 20px;
	font-weight: 600;
	color: var(--tw-text);
	line-height: 1.2;
	margin: 0;
}

.page-container .page-header__actions {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

/* Tab Navigation and Content */
.tab-pane {
	display: none;
}

.tab-pane.active {
	display: block;
}

/* Namespaced Button Utilities */
.page-container .tw-btn {
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 500;
	cursor: pointer;
	border: none;
	transition: all 0.2s ease;
}

.page-container .tw-btn-primary {
	background: var(--tw-primary);
	color: #ffffff;
}

.page-container .tw-btn-primary:hover:not(:disabled) {
	background: var(--tw-primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.page-container .tw-btn-ghost {
	background: #ffffff;
	color: var(--tw-primary);
	border: 1px solid var(--tw-border);
}

.page-container .tw-btn-ghost:hover:not(:disabled) {
	background: #f3f4f6;
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-container .tw-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Popup styles */
#popupform {
	padding:20px;
	position:absolute;
	z-index:99999;
	background:#ffffff;
	width:300px;
	height:auto;
	text-align:left;
	left:50%;
	top:300px;
	margin:0 0 0 -154px;
	border:4px solid #333333;
	-moz-border-radius:8px;
	-webkit-border-radius:8px;
	border-radius:8px;
}
#popupform div {
	width: 200px;
	position: absolute;
	left: 50%;
	margin-left: -100px;
	margin-top: 20px;
}
#popupform p {
	text-align:center;
}
.highlight-success { background-color: #d4edda !important; transition: background-color 0.3s ease; }

/* Modern Checkbox Styles */
.modern-checkbox {
	position: relative;
	display: inline-block;
	width: 20px;
	height: 20px;
	margin: 0;
}

.modern-checkbox input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
	height: 0;
	width: 0;
}

.checkbox-custom {
	position: absolute;
	top: 0;
	left: 0;
	height: 20px;
	width: 20px;
	background-color: #fff;
	border: 2px solid #ced4da;
	border-radius: 4px;
	transition: all 0.2s ease;
	cursor: pointer;
}
.modern-checkbox:hover .checkbox-custom {
	border-color: #007bff;
}

.modern-checkbox input:checked ~ .checkbox-custom {
	background-color: #007bff;
	border-color: #007bff;
}

.checkbox-custom:after {
	content: "";
	position: absolute;
	display: none;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.modern-checkbox input:checked ~ .checkbox-custom:after {
	display: block;
}

.modern-checkbox input:indeterminate ~ .checkbox-custom {
	background-color: #007bff;
	border-color: #007bff;
}

.modern-checkbox input:indeterminate ~ .checkbox-custom:after {
	display: block;
	left: 3px;
	top: 7px;
	width: 10px;
	height: 0;
	border: solid white;
	border-width: 0 0 2px 0;
	transform: rotate(0deg);
}

.modern-checkbox input:disabled ~ .checkbox-custom {
	background-color: #e9ecef;
	border-color: #dee2e6;
	cursor: not-allowed;
	opacity: 0.6;
}

.checkbox-cell {
	text-align: center;
	vertical-align: middle;
}

/* Modern Table Styles */
table {
	border-collapse: separate;
	border-spacing: 0;
	width: 100%;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
#review_list, #review_list2 {
	box-shadow: unset;
	border-radius: unset;
}
thead th {
	background: linear-gradient(135deg, #48A648 0%, #2d7a2d 100%);
	color: #fff;
	font-weight: 600;
	padding: 18px 16px;
	text-align: center;
	border-bottom: 2px solid rgba(255, 255, 255, 0.2);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
}

tbody tr {
	transition: background-color 0.15s ease;
	border-bottom: 1px solid #e5e7eb;
}
#review_list tbody tr,
#review_list2 tbody tr {
	border-bottom: 0px;
}
tbody tr:nth-child(even) {
	background: #f9fafb;
}

tbody tr:hover {
	background: #d1fae5;
}

tbody td {
	padding: 16px;
	color: #374151;
	font-size: 14px;
	vertical-align: middle;
	text-align: center;
}

tbody tr:last-child {
	border-bottom: none;
}

a.showProfileLink {
	color: #007bff;
	text-decoration: none;
	font-weight: 500;
	transition: color 0.2s;
}

a.showProfileLink:hover {
	color: #0056b3;
	text-decoration: underline;
}

table .icon_img {
	opacity: 0.7;
	transition: opacity 0.2s, transform 0.2s;
	cursor: pointer;
}

table .icon_img:hover {
	opacity: 1;
	transform: scale(1.1);
}

/* Search and controls */
#globalSearch {
	margin-left: 1em;
	padding: 10px 14px;
	width: 320px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	font-size: 14px;
	transition: border-color 0.2s, box-shadow 0.2s;
}

#globalSearch:focus {
	outline: none;
	border-color: #007bff;
	box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

#clearSearch {
	margin-left: 0.5em;
	padding: 10px 16px;
	background: #6c757d;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s;
}

#clearSearch:hover {
	background: #5a6268;
}

#pageSizeSelector {
	margin-left: 0.5em;
	padding: 8px 12px;
	border: 1px solid #ced4da;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	transition: border-color 0.2s;
}

#pageSizeSelector:focus {
	outline: none;
	border-color: #007bff;
}

/* Page layout */

.page-container {
	max-width: none;
	width: 100%;
	margin: 0;
	padding: 0 20px;
	overflow: visible;
}

/* Sidebar margins are now handled at #content.content-wrapper level in header.php */
/* No need to add margin-left here - it would cause double margins */

/* Mobile and tablet: full width */
@media (max-width: 991px) {
	.page-container {
		margin-left: 0;
	}
}

/* Button styles */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	border: 1px solid transparent;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.1s, box-shadow 0.2s;
	text-decoration: none;
}
.btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(72, 166, 72, 0.25);
}
.btn-primary {
	background: #48A648;
	color: #fff;
	border-color: #48A648;
}
.btn-primary:hover {
	background: #3d8f3d;
	border-color: #3d8f3d;
	transform: translateY(-1px);
}
.btn-outline {
	background: #fff;
	color: #48A648;
	border-color: #48A648;
}
.btn-outline:hover {
	background: #eaf6ea;
	transform: translateY(-1px);
}
.btn svg { width: 16px; height: 16px; }

.btn-primary-small {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 6px 12px;
	background-color: #3b82f6;
	color: white;
	border: none;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.btn-primary-small:hover {
	background-color: #2563eb;
}

.btn-icon-small {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	background-color: #f3f4f6;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	cursor: pointer;
	transition: all 0.15s ease;
}

.btn-icon-small:hover {
	background-color: #e5e7eb;
	border-color: #9ca3af;
}

.crossedout {
	text-decoration: line-through;
	opacity: 0.6;
}

/* Action menu dropdown */
.action-menu {
	position: relative;
	display: inline-block;
}
.action-menu-btn {
	background: #48A648;
	color: #ffffff;
	border: 1px solid #48A648;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: background 0.2s, transform 0.1s;
}
.action-menu-btn:hover {
	background: #3d8f3d;
	transform: translateY(-1px);
}
.action-menu-btn svg {
	width: 16px;
	height: 16px;
	transition: transform 0.2s;
}
.action-menu.open .action-menu-btn svg {
	transform: rotate(180deg);
}
.action-dropdown {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	min-width: 200px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-8px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
	z-index: 100;
}
.action-menu.open .action-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.action-dropdown a,
.action-dropdown button {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	padding: 10px 16px;
	border: none;
	background: none;
	color: #2c3e50;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	transition: background 0.15s;
	text-align: left;
}
.action-dropdown a:first-child,
.action-dropdown button:first-child {
	border-radius: 8px 8px 0 0;
}
.action-dropdown a:last-child,
.action-dropdown button:last-child {
	border-radius: 0 0 8px 8px;
}
.action-dropdown a:hover,
.action-dropdown button:hover {
	background: #eaf6ea;
}
.action-dropdown svg {
	width: 16px;
	height: 16px;
	color: #48A648;
}

.action-dropdown .section-title {
	padding: 8px 16px;
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	color: #6b7280;
	background-color: #f9fafb;
	border-top: 1px solid #e5e7eb;
	cursor: default;
}

.action-dropdown .section-title:first-child {
	border-top: none;
}

.action-dropdown .danger-action {
	color: #dc2626;
}

.action-dropdown .danger-action:hover {
	background-color: #fee2e2;
}

/* Search and pagination controls */
.page-header {
	padding: 0 0 12px 0;
	margin: 0 0 12px 0;
}

.page-header h1 {
	margin: 0;
	font-size: 32px;
	font-weight: 600;
	color: #1f2937;
}

.search-controls {
	padding: 12px 0 16px 0;
	display: flex;
	gap: 10px;
	align-items: center;
	border-bottom: none;
}

.controls-wrapper {
	background: white;
	padding: 16px 24px;
	border-radius: 10px 10px 0 0;
	border: 1px solid #e5e7eb;
	border-bottom: none;
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

.search-wrapper {
	position: relative;
	flex: 0 0 auto;
	max-width: none;
}

.search-wrapper input[type="text"] {
	width: 100%;
	padding: 10px 40px 10px 12px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	font-size: 14px;
	color: #1f2937;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-wrapper input[type="text"]:focus {
	outline: none;
	border-color: #667eea;
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-wrapper button[type="button"] {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: #f3f4f6;
	border: none;
	padding: 4px 10px;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	color: #6b7280;
	display: none;
	opacity: 1;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.search-wrapper button[type="button"]:hover {
	background: #e5e7eb;
}

.search-wrapper button[type="button"].disabled {
	opacity: 0.3;
	cursor: default;
	pointer-events: none;
}

.search-results {
	color: #6b7280;
	font-size: 13px;
	display: none;
}

.search-controls .action-menu {
	margin-left: auto;
}

.pagination-controls {
	background: white;
	padding: 12px 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #e2e8f0;
}

.pagination-controls.bottom {
	border-top: 1px solid #e2e8f0;
	border-bottom: none;
	border-radius: 0 0 12px 12px;
}
.selectionWrapper {
	min-height: 50px;
}
/* Selection counter & banner */
.selection-counter {
	margin: 8px 0 4px 0;
	font-size: 13px;
	color: #374151;
}

.selection-banner {
	padding: 10px 12px;
	background: #eef2ff;
	border: 1px solid #c7d2fe;
	border-radius: 6px;
	color: #1f2937;
	display: flex;
	gap: 8px;
	align-items: center;
	flex-wrap: wrap;
}

.selection-banner__select-all {
	border: none;
	background: none;
	color: #4f46e5;
	font-weight: 600;
	cursor: pointer;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Selection Header styling and click handling */
#header-selection,
#booked-header-selection,
#connected-header-selection {
	background-color: #2e7d32;
	color: #fff;
}

#header-selection th,
#booked-header-selection th,
#connected-header-selection th {
	background-color: #2e7d32;
	color: #fff;
	vertical-align: middle;
	padding: 12px 16px;
	cursor: default;
}
#header-selection th:hover,
#booked-header-selection th:hover,
#connected-header-selection th:hover {
	background-color: #2e7d32;
}

#header-selection a,
#header-selection input,
#header-selection label,
#header-selection button,
#header-selection select,
#booked-header-selection a,
#booked-header-selection input,
#booked-header-selection label,
#booked-header-selection button,
#booked-header-selection select,
#connected-header-selection a,
#connected-header-selection input,
#connected-header-selection label,
#connected-header-selection button,
#connected-header-selection select {
	pointer-events: auto;
}

#header-selection .sort-indicator,
#booked-header-selection .sort-indicator,
#connected-header-selection .sort-indicator {
	display: none;
}

.selection-left { text-align: left; }
.selection-right { text-align: right; }
.selection-actions { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.selection-checkbox { margin-left: 15px; }

.pagination-info {
	color: #6c757d;
	font-size: 14px;
}

.page-size-control {
	display: flex;
	align-items: center;
	gap: 8px;
}

.page-size-control label {
	font-size: 14px;
	color: #6c757d;
}

.page-size-control select,
#pageSizeSelector,
#pageSizeSelector2 {
	padding: 6px 10px;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	background: white;
}

.pagination-buttons {
	display: flex;
	gap: 5px;
}

.pagination-btn-group {
	display: flex;
	gap: 5px;
	align-items: center;
	flex-wrap: wrap;
}

.pagination-btn {
	padding: 8px 12px;
	border: 1px solid #e2e8f0;
	background: white;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s ease;
	color: #2c3e50;
}

.pagination-btn:hover:not(:disabled) {
	background: #48A648;
	color: white;
	border-color: #48A648;
	transform: translateY(-2px);
}

.pagination-btn.active {
	background: #48A648;
	color: white;
	border-color: #48A648;
	font-weight: 600;
}

.pagination-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.pagination-ellipsis {
	padding: 8px 4px;
	color: #6c757d;
}

.page-btn {
	padding: 8px 12px;
	border: 1px solid #e2e8f0;
	background: white;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s ease;
	color: #2c3e50;
}

.page-btn:hover:not(:disabled) {
	background: #48A648;
	color: white;
	border-color: #48A648;
}

.page-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.table-wrapper {
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow-x: auto;
	overflow-y: visible; /* allow dropdowns to extend outside table */
	box-shadow: 0 8px 20px rgba(0,0,0,0.06);
	scrollbar-gutter: stable; /* reserve space for scrollbar to prevent layout shift */
}

/* Prevent responsive wrapper from clipping dropdowns vertically */
.table-wrapper .table-responsive {
	overflow: visible;
}

.table-fixed {
	width: 100%;
}

.row-actions {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	table-layout: auto;
}

table thead {
	position: sticky;
	top: 0;
	background: linear-gradient(135deg, #48A648 0%, #2d7a2d 100%);
	z-index: 2;
}
#review_list thead, #review_list2 thead {
	position: sticky;
	top: 0;
	background: none;
	z-index: 2;
}
#review_list thead {
	background: #858585ab;
}
#review_list2 thead tr {
	border-top: #6c757d 1px;
}
table thead th {
	background: transparent;
	color: white;
	font-weight: 600;
	text-align: center;
	padding: 12px 16px;
	border: none;
	border-bottom: 2px solid rgba(255, 255, 255, 0.2);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	white-space: nowrap;
	cursor: pointer;
}
#review_list thead th,
#review_list2 thead th {
	background: transparent;
	color: white;
	font-weight: 600;
	text-align: center;
	padding: 6px 10px;
	border: none;
	border-bottom: 2px solid rgba(255, 255, 255, 0.2);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	white-space: nowrap;
	cursor: pointer;
}
/* Column width specifications */

table td:nth-child(10) {
	width: 50px;
	min-width: 50px;
	max-width: 50px;
}

/* Fairs list column widths */

#fairs_list th:nth-child(11),
#fairs_list td:nth-child(11) {
	text-align: center;
}

table tbody td {
	padding: 12px;
	border-bottom: 1px solid #e5e7eb;
	color: #374151;
	word-break: break-word;
	overflow-wrap: break-word;
}
#review_list tbody td,
#review_list2 tbody td {
	border-bottom: 0px;
}
table tbody tr:nth-child(even) {
	background: #f9fafb;
}
#review_list tbody tr:nth-child(even):not(#review_list tbody tr:nth-child(even):hover),
#review_list2 tbody tr:nth-child(even):not(#review_list2 tbody tr:nth-child(even):hover) {
  background: #ffffff;
	border-bottom: 0px;
}
table tbody tr:hover {
	background: #f0f9ff;
}

table tbody tr:last-child td {
	border-bottom: none;
}

.checkbox-cell {
	text-align: center;
	padding: 8px !important;
}

.table-wrapper {
	background: white;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow-x: auto;
	overflow-y: visible;
	box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* Responsive table adjustments */
@media (max-width: 1600px) {
	table thead th,
	table tbody td {
		padding: 12px 10px;
		font-size: 13px;
	}
}

@media (max-width: 1400px) {
	table thead th,
	table tbody td {
		padding: 10px 8px;
		font-size: 12px;
	}
	
	.page-container {
		padding: 0 10px;
	}
}

@media (max-width: 1200px) {
	/* Hide less critical columns on smaller screens */
	#exhibitors_list th:nth-child(2),
	#exhibitors_list td:nth-child(2),
	#exhibitors_list th:nth-child(4),
	#exhibitors_list td:nth-child(4),
	#exhibitors_list th:nth-child(6),
	#exhibitors_list td:nth-child(6),
	#administrators_list th:nth-child(2),
	#administrators_list td:nth-child(2),
	#administrators_list th:nth-child(4),
	#administrators_list td:nth-child(4),
	#administrators_list th:nth-child(6),
	#administrators_list td:nth-child(6),
	#users_list th:nth-child(2),
	#users_list td:nth-child(2),
	#users_list th:nth-child(4),
	#users_list td:nth-child(4),
	#users_list th:nth-child(6),
	#users_list td:nth-child(6),
	#arrangers_list th:nth-child(2),
	#arrangers_list td:nth-child(2),
	#arrangers_list th:nth-child(4),
	#arrangers_list td:nth-child(4),
	#arrangers_list th:nth-child(6),
	#arrangers_list td:nth-child(6) {
		display: none;
	}
}

@media (max-width: 900px) {
	/* Hide additional columns on even smaller screens */
	#exhibitors_list th:nth-child(5),
	#exhibitors_list td:nth-child(5),
	#exhibitors_list th:nth-child(8),
	#exhibitors_list td:nth-child(8),
	#administrators_list th:nth-child(5),
	#administrators_list td:nth-child(5),
	#administrators_list th:nth-child(8),
	#administrators_list td:nth-child(8),
	#users_list th:nth-child(5),
	#users_list td:nth-child(5),
	#users_list th:nth-child(8),
	#users_list td:nth-child(8),
	#arrangers_list th:nth-child(5),
	#arrangers_list td:nth-child(5),
	#arrangers_list th:nth-child(8),
	#arrangers_list td:nth-child(8) {
		display: none;
	}
}

@media (max-width: 768px) {
	body {
		padding: 10px;
	}
	
	.page-container {
		padding: 0;
	}
	
	.search-controls {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	
	.search-wrapper {
		max-width: 100%;
	}
	
	.pagination-controls {
		flex-direction: column;
		gap: 10px;
		align-items: stretch;
	}
	
	.pagination-buttons {
		justify-content: center;
	}
}

/* Toast Notifications */
.toast-notification {
	position: fixed;
	background: var(--tw-success);
	color: white;
	padding: 16px 24px;
	border-radius: 8px;
	box-shadow: 0 10px 25px rgba(0,0,0,0.2);
	z-index: 10000;
	display: none;
	animation: slideIn 0.3s ease-out;
	font-weight: 500;
	max-width: 400px;
}

.toast-notification.show {
	display: block;
}

/* Toast positions */
.toast-top-right {
	top: 20px;
	right: 20px;
}

.toast-top-left {
	top: 20px;
	left: 20px;
}

.toast-bottom-right {
	bottom: 20px;
	right: 20px;
}

.toast-bottom-left {
	bottom: 20px;
	left: 20px;
}

/* Toast variants */
.toast-success {
	background: #10b981;
}

.toast-error {
	background: #ef4444;
}

.toast-warning {
	background: #f59e0b;
}

.toast-info {
	background: #3b82f6;
}

@keyframes slideIn {
	from {
		transform: translateX(400px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

/* Status Badges */
.status-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 12px;
	font-size: 0.85em;
	font-weight: 600;
	text-transform: uppercase;
}

.status-pending,
.status-blue {
	background-color: #3b82f6;
	color: white;
}

.status-approved,
.status-success,
.status-green {
	background-color: #10b981;
	color: white;
}

.status-locked,
.status-error,
.status-danger,
.status-red {
	background-color: #ef4444;
	color: white;
}

.status-warning,
.status-yellow {
	background-color: #f59e0b;
	color: white;
}

.status-info,
.status-cyan {
	background-color: #06b6d4;
	color: white;
}

.status-inactive,
.status-gray {
	background-color: #6b7280;
	color: white;
}

/* Modern Checkbox */
.modern-checkbox {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
	user-select: none;
}

.modern-checkbox input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.modern-checkbox .checkbox-custom {
	position: relative;
	width: 18px;
	height: 18px;
	border: 2px solid #d1d5db;
	border-radius: 4px;
	background: white;
	transition: all 0.2s ease;
}

.modern-checkbox input[type="checkbox"]:checked + .checkbox-custom {
	background: #667eea;
	border-color: #667eea;
}

.modern-checkbox input[type="checkbox"]:indeterminate + .checkbox-custom {
	background: #667eea;
	border-color: #667eea;
}

.modern-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 4px;
	height: 8px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.modern-checkbox input[type="checkbox"]:indeterminate + .checkbox-custom::after {
	content: '';
	position: absolute;
	left: 3px;
	top: 7px;
	width: 8px;
	height: 2px;
	background: white;
	transform: none;
	border: none;
}

.modern-checkbox input[type="checkbox"]:focus + .checkbox-custom {
	outline: 2px solid #667eea;
	outline-offset: 2px;
}

.modern-checkbox input[type="checkbox"]:disabled + .checkbox-custom {
	background: #f3f4f6;
	border-color: #d1d5db;
	cursor: not-allowed;
}

/* Spinner Overlay for Bulk Actions */
.spinner-overlay {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.7);
	z-index: 1200;
}

.spinner-overlay.active {
	display: flex;
}

.spinner-dialog {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 10px 30px rgba(0,0,0,0.12);
	padding: 16px 18px;
	border-radius: 10px;
	color: #111;
	font-size: 14px;
}

.spinner {
	width: 48px;
	height: 48px;
	border: 4px solid #d1d5db;
	border-top-color: #111;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	flex-shrink: 0;
}

.spinner-status {
	font-weight: 600;
}

.spinner-current {
	font-size: 13px;
	color: #374151;
	margin-top: 4px;
}

.spinner-recent {
	list-style: none;
	padding: 0;
	margin: 8px 0 0 0;
	max-height: 140px;
	overflow: auto;
	font-size: 12px;
	color: #4b5563;
}

.spinner-recent li {
	padding: 2px 0;
}

.spinner-recent li.success {
	color: #047857;
}

.spinner-recent li.error {
	color: #b91c1c;
}

.spinner-recent li.warning {
	color: #b45309;
}

/* Loading Table Spinner */
.loading-table-spinner {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	background: #fff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 10px 30px rgba(0,0,0,0.12);
	padding: 24px 32px;
	border-radius: 10px;
	z-index: 1100;
}

.loading-table-spinner .spinner {
	width: 48px;
	height: 48px;
	border: 4px solid #d1d5db;
	border-top-color: #667eea;
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

.loading-table-spinner .spinner-status {
	color: #374151;
	font-size: 14px;
	font-weight: 500;
}

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

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

/* Action Menu Enhancements */
.action-menu {
	position: relative;
}

.action-dropdown {
	right: 0;
	max-height: 60vh;
	overflow: auto;
}

.action-menu.open .action-dropdown {
	display: block;
}

.action-dropdown a.is-disabled {
	pointer-events: none;
	opacity: 0.6;
}

/* Spot Badge for Fair Views */
.spot-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 8px;
	font-size: 0.9em;
	font-weight: 500;
	background-color: #f3f4f6;
	justify-content: center;
}

.spot-badge img {
	width: 16px;
	height: 16px;
}

.spot-badge.total-badge {
	background-color: #e5e7eb;
	color: #374151;
}

/* Date Cell Styling */
.date-cell {
	font-size: 0.9em;
	white-space: nowrap;
}

/* Sort Indicators */
.sort-indicator {
	display: inline-block;
	margin-left: 4px;
	font-size: 0.85em;
	font-weight: bold;
	vertical-align: middle;
	color: inherit;
	transition: opacity 0.2s ease;
}

.sort-indicator.sort-asc::before {
	content: '';
}

.sort-indicator.sort-desc::before {
	content: '';
}

thead th.sort-active {
	font-weight: 600;
	color: #667eea;
}

#exhibitors_list thead th.sort-active,
#booked_list thead tr:not(#booked-header-selection) th.sort-active,
#connected_list thead tr:not(#connected-header-selection) th.sort-active,
#administrators_list thead th.sort-active,
#users_list thead th.sort-active,
#arrangers_list thead th.sort-active,
#fairs_list thead tr:not(#header-selection) th.sort-active,
#comments_list thead th.sort-active,
#sms_list thead th.sort-active,
#sms_recipients thead th.sort-active,
#book_category_scrollbox thead th.sort-active,
#book_option_scrollbox thead th.sort-active,
#book_article_scrollbox thead th.sort-active {
	color: #000000 !important;
	font-weight: 700 !important;
	opacity: 85%;
}

thead th.sort-active:hover {
	background-color: #48a648;
}

thead th:hover {
	background-color: #48a648;
	transition: background-color 0.15s ease;
}

/* Ensure sort indicator doesn't break on long column names */
thead th {
	position: relative;
	white-space: nowrap;
}

@media (max-width: 768px) {
	.sort-indicator {
		margin-left: 2px;
		font-size: 0.8em;
	}
}
