/**
 * BoothOS Admin — design system
 * Modern SaaS dashboard (light + dark)
 */
:root {
	--admin-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--admin-bg: #0c0e14;
	--admin-bg-secondary: #141720;
	--admin-bg-tertiary: #1c2030;
	--admin-bg-elevated: #222738;
	--admin-border: rgba(255, 255, 255, 0.08);
	--admin-border-strong: rgba(255, 255, 255, 0.14);
	--admin-text: #eef0f4;
	--admin-text-muted: #9499a8;
	--admin-accent: #6366f1;
	--admin-accent-hover: #818cf8;
	--admin-accent-soft: rgba(99, 102, 241, 0.14);
	--admin-success: #22c55e;
	--admin-success-soft: rgba(34, 197, 94, 0.14);
	--admin-danger: #ef4444;
	--admin-danger-soft: rgba(239, 68, 68, 0.14);
	--admin-warning: #f59e0b;
	--admin-warning-soft: rgba(245, 158, 11, 0.14);
	--admin-info: #38bdf8;
	--admin-info-soft: rgba(56, 189, 248, 0.14);
	--admin-card-radius: 14px;
	--admin-btn-radius: 10px;
	--admin-header-height: 3.75rem;
	--admin-sidebar-width: 268px;
	--admin-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.24);
	--admin-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.28);
	--admin-shadow-md: 0 8px 24px rgba(0, 0, 0, 0.32);
	--admin-focus-ring: 0 0 0 3px rgba(99, 102, 241, 0.28);
	--admin-sidebar-link: #b8bcc8;
	--admin-sidebar-link-hover: var(--admin-text);
	--admin-sidebar-link-active: #c7d2fe;
	--admin-sidebar-active-bg: rgba(99, 102, 241, 0.22);
}

/* Base */
body {
	background: var(--admin-bg) !important;
	color: var(--admin-text) !important;
	min-height: 100vh;
	font-family: var(--admin-font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	letter-spacing: -0.011em;
}
body.d-flex.min-vh-100 { background: var(--admin-bg) !important; }
body.admin-theme {
	font-family: var(--admin-font);
}

/* Navbar */
.admin-theme .navbar,
.navbar.navbar-dark.bg-dark {
	background: var(--admin-bg-secondary) !important;
	border-bottom: 1px solid var(--admin-border);
}
.admin-theme .navbar-brand,
.navbar-dark .navbar-brand {
	color: var(--admin-text) !important;
	font-weight: 600;
}
.admin-theme .navbar .nav-link,
.navbar-dark .nav-link {
	color: var(--admin-text-muted) !important;
}
.admin-theme .navbar .nav-link:hover,
.navbar-dark .nav-link:hover {
	color: var(--admin-text) !important;
}
.admin-theme .navbar .dropdown-menu,
.navbar-dark .dropdown-menu {
	background: var(--admin-bg-secondary);
	border: 1px solid var(--admin-border);
	border-radius: var(--admin-card-radius);
}
.admin-theme .navbar .dropdown-item,
.navbar-dark .dropdown-item {
	color: var(--admin-text);
}
.admin-theme .navbar .dropdown-item:hover,
.navbar-dark .dropdown-item:hover {
	background: var(--admin-bg-tertiary);
	color: var(--admin-text);
}
.admin-theme .navbar .dropdown-divider,
.navbar-dark .dropdown-divider {
	border-color: var(--admin-border);
}
.admin-theme .navbar .badge.bg-warning,
.navbar-dark .badge.bg-warning {
	background: var(--admin-warning) !important;
	color: #0d1117 !important;
}

/* Main content */
.admin-theme main,
main.container {
	color: var(--admin-text);
}
.admin-theme h1, .admin-theme .h1,
.admin-theme h2, .admin-theme .h2,
.admin-theme h3, .admin-theme .h3,
.admin-theme h4, .admin-theme .h4,
.admin-theme h5, .admin-theme .h5,
.admin-theme h6, .admin-theme .h6 {
	color: var(--admin-text);
}

/* Cards */
.admin-theme .card,
.card {
	background: var(--admin-bg-secondary);
	border: 1px solid var(--admin-border);
	border-radius: var(--admin-card-radius);
	color: var(--admin-text);
	box-shadow: var(--admin-shadow-xs);
	overflow: hidden;
}
.admin-theme .card-header,
.card-header {
	background: var(--admin-bg-tertiary);
	border-bottom: 1px solid var(--admin-border);
	color: var(--admin-text);
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 0.9rem 1.25rem;
	letter-spacing: -0.015em;
}
.admin-theme .card-body,
.card-body {
	color: var(--admin-text);
}
.admin-theme .text-muted,
.admin-theme main .text-muted,
.admin-theme .card .card-text,
.admin-theme .card .text-muted,
.card .text-muted {
	color: var(--admin-text-muted) !important;
}

/* External provider collapse toggles (events → proveedores) */
.provider-collapse-toggle {
	color: var(--admin-text) !important;
	line-height: 1;
	box-shadow: none !important;
}
.provider-collapse-toggle .provider-collapse-icon {
	display: inline-block;
	transition: transform 0.15s ease;
	font-size: 1.125rem;
	color: var(--admin-text);
}
.provider-collapse-toggle[aria-expanded="false"] .provider-collapse-icon {
	transform: rotate(-90deg);
}
.provider-collapse-toggle:hover,
.provider-collapse-toggle:focus,
.provider-collapse-toggle:focus-visible {
	color: var(--admin-accent) !important;
	text-decoration: none;
}
.provider-collapse-toggle:hover .provider-collapse-icon,
.provider-collapse-toggle:focus .provider-collapse-icon,
.provider-collapse-toggle:focus-visible .provider-collapse-icon {
	color: var(--admin-accent);
}

/* External provider cards — evitar halo claro en esquinas redondeadas */
.provider-card {
	overflow: hidden;
	border: 1px solid var(--admin-border) !important;
	background-color: var(--admin-bg-secondary);
	box-shadow: none;
	isolation: isolate;
}
.provider-card > .card-header {
	background-color: var(--admin-bg-tertiary);
	border-bottom: 1px solid var(--admin-border);
}
.provider-card > .collapse > .card-body,
.provider-card > .card-body {
	background-color: var(--admin-bg-secondary);
}

.provider-brand-logo {
	display: block;
	height: 28px;
	width: auto;
	max-width: 132px;
	object-fit: contain;
	padding: 0.35rem 0.65rem;
	border-radius: 8px;
	background: #ffffff;
}

.provider-pick-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 0.85rem;
}

.provider-pick-card {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	padding: 0;
	border: 1px solid var(--admin-border);
	border-radius: 12px;
	background: var(--admin-bg-tertiary);
	color: var(--admin-text);
	text-align: left;
	cursor: pointer;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
	overflow: hidden;
}

.provider-pick-card:hover,
.provider-pick-card:focus-visible {
	border-color: var(--admin-accent);
	box-shadow: var(--admin-focus-ring);
	transform: translateY(-1px);
	outline: none;
}

.provider-pick-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 72px;
	padding: 1rem 1.1rem;
	background: #ffffff;
	border-bottom: 1px solid var(--admin-border);
}

.provider-pick-card__logo img {
	display: block;
	width: 100%;
	max-width: 160px;
	height: 40px;
	object-fit: contain;
}

.provider-pick-card__body {
	padding: 0.85rem 1rem 1rem;
}

.provider-pick-card__name {
	display: block;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--admin-text);
	margin-bottom: 0.2rem;
}

.provider-pick-card__hint {
	display: block;
	font-size: 0.78rem;
	line-height: 1.35;
	color: var(--admin-text-muted);
}

.admin-theme-light .provider-pick-card__logo {
	background: #ffffff;
}

#modalAddProvider .modal-body {
	padding-top: 0.25rem;
}

/* Nav tabs (e.g. event edit, venues) */
.admin-theme .nav-tabs {
	border-bottom: 1px solid var(--admin-border);
	gap: 0.15rem;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	scrollbar-width: thin;
}
.admin-theme .card .nav-tabs {
	background: color-mix(in srgb, var(--admin-bg-tertiary) 50%, var(--admin-bg-secondary));
	padding: 0.5rem 0.75rem 0;
}
.admin-theme .nav-tabs .nav-link {
	color: var(--admin-text-muted);
	background: transparent;
	border: 1px solid transparent;
	border-bottom: none;
	border-radius: 10px 10px 0 0;
	margin-bottom: -1px;
	padding: 0.55rem 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	white-space: nowrap;
}
.admin-theme .nav-tabs .nav-link:hover,
.admin-theme .nav-tabs .nav-link:focus {
	color: var(--admin-text);
	border-color: var(--admin-border);
	border-bottom-color: transparent;
	background: color-mix(in srgb, var(--admin-bg-secondary) 75%, transparent);
}
.admin-theme .nav-tabs .nav-link.active,
.admin-theme .nav-tabs .nav-item.show .nav-link {
	color: var(--admin-text);
	background-color: var(--admin-bg-secondary);
	border-color: var(--admin-border);
	border-bottom-color: var(--admin-bg-secondary);
	font-weight: 600;
}

/* List groups (e.g. layouts areas/zones) */
.admin-theme .list-group {
	--bs-list-group-color: var(--admin-text);
	--bs-list-group-bg: transparent;
	--bs-list-group-border-color: var(--admin-border);
	--bs-list-group-action-color: var(--admin-text);
	--bs-list-group-action-hover-color: var(--admin-text);
	--bs-list-group-action-hover-bg: var(--admin-bg-tertiary);
	--bs-list-group-action-active-color: var(--admin-text);
	--bs-list-group-action-active-bg: var(--admin-bg-tertiary);
	--bs-list-group-active-color: var(--admin-text);
	--bs-list-group-active-bg: var(--admin-bg-tertiary);
	--bs-list-group-active-border-color: var(--admin-border);
}
.admin-theme .list-group-item {
	color: var(--admin-text);
	background-color: transparent;
	border-color: var(--admin-border);
}
.admin-theme .list-group-item.bg-transparent {
	color: var(--admin-text);
}
.admin-theme .list-group-flush > .list-group-item {
	border-color: var(--admin-border);
}
.admin-theme .list-group-item-action:hover,
.admin-theme .list-group-item-action:focus {
	color: var(--admin-text);
	background-color: var(--admin-bg-tertiary);
}
.admin-theme .list-group-item.active {
	color: var(--admin-text);
	background-color: var(--admin-bg-tertiary);
	border-color: var(--admin-border);
}

/* Tables */
.admin-theme .table,
.admin-theme .table thead,
.admin-theme .table tbody,
.admin-theme .table tbody tr,
.admin-theme .table td,
.admin-theme .table th,
.table {
	color: var(--admin-text);
	border-color: var(--admin-border);
}
.admin-theme .table,
.admin-theme .table thead,
.admin-theme .table tbody,
.admin-theme .table tbody tr,
.admin-theme .table td,
.admin-theme .table th {
	background: var(--admin-bg) !important;
}
.admin-theme .table thead th,
.admin-theme .table-light th,
.admin-theme .table thead th,
.table thead th,
.table-light th {
	background: var(--admin-bg) !important;
	border-color: var(--admin-border);
	color: var(--admin-text);
	font-weight: 600;
}
.admin-theme .table td,
.admin-theme .table th,
.table td,
.table th {
	border-color: var(--admin-border);
	vertical-align: middle;
}
.booth-table-thumb {
	display: block;
	width: 44px;
	height: 44px;
	object-fit: cover;
	margin: 0 auto;
}
.admin-theme .table-hover tbody tr:hover,
.table-hover tbody tr:hover {
	background: var(--admin-bg) !important;
}
/* DataTables: same as page background */
.admin-theme .dataTables_wrapper .table,
.admin-theme .dataTables_wrapper table.dataTable,
.admin-theme table.dataTable thead th,
.admin-theme table.dataTable tbody td,
.admin-theme table.dataTable tbody th {
	background: var(--admin-bg) !important;
	color: var(--admin-text) !important;
	border-color: var(--admin-border) !important;
}
.admin-theme table.dataTable thead th {
	background: var(--admin-bg) !important;
}
.admin-theme table.dataTable tbody tr:hover {
	background: var(--admin-bg) !important;
}
.admin-theme table.dataTable.stripe tbody tr.odd,
.admin-theme table.dataTable.display tbody tr.odd,
.admin-theme table.dataTable.stripe tbody tr.even,
.admin-theme table.dataTable.display tbody tr.even {
	background: var(--admin-bg) !important;
}
.admin-theme table.dataTable tbody tr,
.admin-theme table.dataTable tbody tr:nth-of-type(odd),
.admin-theme table.dataTable tbody tr:nth-of-type(even) {
	background: var(--admin-bg) !important;
}
.admin-theme .table > caption {
	color: var(--admin-text);
}

/* Forms */
.admin-theme .form-control,
.form-control {
	background: var(--admin-bg);
	border: 1px solid var(--admin-border-strong);
	color: var(--admin-text);
	border-radius: var(--admin-btn-radius);
	padding: 0.5rem 0.85rem;
}
.admin-theme .form-control[readonly],
.form-control[readonly] {
	background: var(--admin-bg-tertiary);
	color: var(--admin-text);
	opacity: 1;
}
.admin-theme .form-control[readonly]:focus,
.form-control[readonly]:focus {
	background: var(--admin-bg-tertiary);
	color: var(--admin-text);
}
/* Select: background-color + arrow so the dropdown arrow stays visible */
.admin-theme .form-select,
.form-select {
	background-color: var(--admin-bg);
	border: 1px solid var(--admin-border-strong);
	color: var(--admin-text);
	border-radius: var(--admin-btn-radius);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%239499a8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 16px 12px;
	padding-right: 2.25rem;
}
.admin-theme .form-control:focus,
.form-control:focus,
.form-select:focus {
	background: var(--admin-bg);
	border-color: var(--admin-accent);
	color: var(--admin-text);
	box-shadow: var(--admin-focus-ring);
}
.admin-theme .form-select:focus {
	background-color: var(--admin-bg);
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238b949e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	background-size: 16px 12px;
}
.admin-theme .form-control::placeholder,
.form-control::placeholder {
	color: var(--admin-text-muted);
}
.admin-theme .form-label,
.form-label {
	color: var(--admin-text);
}
.admin-theme .form-check-label,
.form-check-label {
	color: var(--admin-text);
}
.admin-theme .form-text,
.admin-theme small.text-muted,
small.text-muted {
	color: var(--admin-text-muted) !important;
}
.admin-theme .input-group-text,
.input-group-text {
	background: var(--admin-bg-tertiary);
	border-color: var(--admin-border);
	color: var(--admin-text-muted);
}

/* Buttons */
.admin-theme .btn,
.btn {
	border-radius: var(--admin-btn-radius);
	font-weight: 500;
	font-family: var(--admin-font);
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}
.admin-theme .btn:active,
.btn:active {
	transform: translateY(1px);
}
.admin-theme .btn-primary,
.btn-primary {
	background: var(--admin-accent);
	border-color: var(--admin-accent);
	color: #fff;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.admin-theme .btn-primary:hover,
.btn-primary:hover {
	background: var(--admin-accent-hover);
	border-color: var(--admin-accent-hover);
	color: #fff;
	box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}
.admin-theme .btn-outline-primary,
.btn-outline-primary {
	border-color: var(--admin-accent);
	color: var(--admin-accent);
}
.admin-theme .btn-outline-primary:hover,
.btn-outline-primary:hover {
	background: rgba(88, 166, 255, 0.15);
	border-color: var(--admin-accent);
	color: var(--admin-accent-hover);
}
.admin-theme .btn-outline-secondary,
.btn-outline-secondary {
	border-color: var(--admin-border);
	color: var(--admin-text-muted);
}
.admin-theme .btn-outline-secondary:hover,
.btn-outline-secondary:hover {
	background: var(--admin-bg-tertiary);
	border-color: var(--admin-border);
	color: var(--admin-text);
}
.admin-theme .btn-outline-success,
.btn-outline-success {
	border-color: var(--admin-success);
	color: var(--admin-success);
}
.admin-theme .btn-outline-success:hover,
.btn-outline-success:hover {
	background: rgba(63, 185, 80, 0.15);
	border-color: var(--admin-success);
	color: #7ee787;
}
.btn-check:checked + .btn-outline-success,
.btn-check:checked + .btn-outline-success:hover,
.btn-check:checked + .btn-outline-success:focus,
.btn-check:checked + .btn-outline-success:focus-visible,
.btn-check:checked + .btn-outline-success:active {
	background-color: var(--admin-success);
	border-color: var(--admin-success);
	color: #fff;
}
.btn-check:checked + .btn-outline-primary,
.btn-check:checked + .btn-outline-primary:hover,
.btn-check:checked + .btn-outline-primary:focus,
.btn-check:checked + .btn-outline-primary:focus-visible,
.btn-check:checked + .btn-outline-primary:active {
	background-color: var(--admin-accent);
	border-color: var(--admin-accent);
	color: #fff;
}
.btn-check:checked + .btn-outline-warning,
.btn-check:checked + .btn-outline-warning:hover,
.btn-check:checked + .btn-outline-warning:focus,
.btn-check:checked + .btn-outline-warning:focus-visible,
.btn-check:checked + .btn-outline-warning:active {
	background-color: var(--admin-warning);
	border-color: var(--admin-warning);
	color: #fff;
}
.btn-check:checked + .btn-outline-secondary,
.btn-check:checked + .btn-outline-secondary:hover,
.btn-check:checked + .btn-outline-secondary:focus,
.btn-check:checked + .btn-outline-secondary:focus-visible,
.btn-check:checked + .btn-outline-secondary:active {
	background-color: color-mix(in srgb, var(--admin-text-muted) 22%, var(--admin-bg-secondary));
	border-color: var(--admin-border);
	color: var(--admin-text);
}
.admin-theme .btn-outline-orange,
.btn-outline-orange {
	border-color: #e67e22;
	color: #e67e22;
}
.admin-theme .btn-outline-orange:hover,
.btn-outline-orange:hover {
	background: rgba(230, 126, 34, 0.15);
	border-color: #e67e22;
	color: #f39c12;
}
.admin-theme .btn-orange,
.btn-orange {
	background: #e67e22;
	border-color: #e67e22;
	color: #fff;
}
.admin-theme .btn-orange:hover,
.btn-orange:hover {
	background: #d35400;
	border-color: #d35400;
	color: #fff;
}
.admin-theme .btn-orange:disabled,
.btn-orange:disabled {
	background: #a04012;
	border-color: #a04012;
	opacity: 0.65;
}
.admin-theme .btn-purple,
.btn-purple {
	background: #805ad5;
	border-color: #805ad5;
	color: #fff;
}
.admin-theme .btn-purple:hover,
.btn-purple:hover {
	background: #6b46c1;
	border-color: #6b46c1;
	color: #fff;
}
.admin-theme .btn-purple:disabled,
.btn-purple:disabled {
	background: #553c9a;
	border-color: #553c9a;
	opacity: 0.65;
}
.incluido-impact {
	border-radius: 0.5rem;
	padding: 0.875rem 1rem;
}
.incluido-impact--orange {
	background: rgba(230, 126, 34, 0.14);
	border-left: 4px solid #e67e22;
	color: #f5cba7;
}
.incluido-impact--purple {
	background: rgba(128, 90, 213, 0.14);
	border-left: 4px solid #805ad5;
	color: #d6bcfa;
}
.admin-theme-light .incluido-impact--orange {
	background: rgba(230, 126, 34, 0.12);
	color: #9a3412;
}
.admin-theme-light .incluido-impact--purple {
	background: rgba(128, 90, 213, 0.12);
	color: #553c9a;
}
.admin-theme .btn-outline-danger,
.btn-outline-danger {
	border-color: var(--admin-danger);
	color: var(--admin-danger);
}
.admin-theme .btn-outline-danger:hover,
.btn-outline-danger:hover {
	background: rgba(248, 81, 73, 0.15);
	border-color: var(--admin-danger);
	color: #ff7b72;
}
.btn-check:checked + .btn-outline-danger,
.btn-check:checked + .btn-outline-danger:hover,
.btn-check:checked + .btn-outline-danger:focus,
.btn-check:checked + .btn-outline-danger:focus-visible,
.btn-check:checked + .btn-outline-danger:active {
	background-color: var(--admin-danger);
	border-color: var(--admin-danger);
	color: #fff;
}
.admin-theme .btn-outline-dark,
.btn-outline-dark {
	border-color: var(--admin-border);
	color: var(--admin-text-muted);
}
.admin-theme .btn-outline-dark:hover,
.btn-outline-dark:hover {
	background: var(--admin-bg-tertiary);
	color: var(--admin-text);
}
.admin-theme .btn-success,
.btn-success {
	background: var(--admin-success);
	border-color: var(--admin-success);
}
.admin-theme .btn-danger,
.btn-danger {
	background: var(--admin-danger);
	border-color: var(--admin-danger);
}

/* Alerts */
.admin-theme .alert-success,
.alert-success {
	background: rgba(63, 185, 80, 0.15);
	border-color: var(--admin-success);
	color: #7ee787;
}
.admin-theme .alert-danger,
.alert-danger {
	background: rgba(248, 81, 73, 0.15);
	border-color: var(--admin-danger);
	color: #ff7b72;
}
.admin-theme .alert-warning,
.alert-warning {
	background: rgba(210, 153, 34, 0.15);
	border-color: var(--admin-warning);
	color: #e3b341;
}
.admin-theme .alert-info,
.alert-info {
	background: rgba(88, 166, 255, 0.15);
	border-color: var(--admin-accent);
	color: var(--admin-accent-hover);
}

/* Links */
.admin-theme a:not(.btn),
a {
	color: var(--admin-accent);
}
.admin-theme a:not(.btn):hover,
a:hover {
	color: var(--admin-accent-hover);
}

/* Footer */
.admin-theme footer,
footer.mt-auto {
	background: var(--admin-bg-secondary);
	border-top: 1px solid var(--admin-border);
	color: var(--admin-text-muted) !important;
}
.admin-theme footer .footer-text,
footer .footer-text {
	margin-left: 1rem;
}
.admin-theme footer .footer-fever-logo-wrap,
footer .footer-fever-logo-wrap {
	margin-right: 1rem;
}
.admin-theme footer .footer-fever-logo,
footer .footer-fever-logo {
	height: 28px;
	width: auto;
	object-fit: contain;
	vertical-align: middle;
}
/* Dark theme: show fever.png (light logo) */
.admin-theme footer .footer-fever-logo-dark,
footer .footer-fever-logo-dark {
	display: inline-block;
}
.admin-theme footer .footer-fever-logo-light,
footer .footer-fever-logo-light {
	display: none;
}
/* Light theme: show fever_oscuro.png */
.admin-theme.admin-theme-light footer .footer-fever-logo-dark,
.admin-theme-light footer .footer-fever-logo-dark {
	display: none;
}
.admin-theme.admin-theme-light footer .footer-fever-logo-light,
.admin-theme-light footer .footer-fever-logo-light {
	display: inline-block;
}

/* DataTables overrides – same background as page */
.admin-theme .dataTables_wrapper,
.admin-theme .dataTables_wrapper .row,
.admin-theme .dataTables_wrapper .dataTables_length,
.admin-theme .dataTables_wrapper .dataTables_filter,
.admin-theme .dataTables_wrapper .dataTables_info,
.admin-theme .dataTables_wrapper .dataTables_paginate,
.admin-theme .dataTables_scroll,
.admin-theme .dataTables_scrollBody,
.admin-theme .dataTables_scrollHead,
.dataTables_wrapper {
	background: var(--admin-bg) !important;
	color: var(--admin-text);
}
.admin-theme .dataTables_length label,
.admin-theme .dataTables_filter label,
.dataTables_length label,
.dataTables_filter label {
	color: var(--admin-text) !important;
}
.admin-theme .dataTables_filter input,
.dataTables_filter input {
	background: var(--admin-bg) !important;
	border-color: var(--admin-border);
	color: var(--admin-text);
}
/* DataTables selects (Show X entries + Country/City filters): keep arrow visible with !important */
.admin-theme .dataTables_wrapper select,
.admin-theme .dataTables_wrapper .form-select,
.admin-theme .dataTables_length select {
	background-color: var(--admin-bg) !important;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238b949e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
	background-repeat: no-repeat !important;
	background-position: right 0.5rem center !important;
	background-size: 14px 10px !important;
	padding-right: 1.75rem !important;
	border-color: var(--admin-border);
	color: var(--admin-text);
}
.admin-theme .dataTables_wrapper select:focus,
.admin-theme .dataTables_wrapper .form-select:focus {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238b949e' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
}
.admin-theme .dataTables_info,
.dataTables_info {
	color: var(--admin-text-muted) !important;
}
.admin-theme .page-link,
.dataTables_wrapper .page-link {
	background: var(--admin-bg) !important;
	border-color: var(--admin-border);
	color: var(--admin-accent);
}
.admin-theme .page-link:hover,
.dataTables_wrapper .page-link:hover {
	background: var(--admin-bg) !important;
	border-color: var(--admin-border);
	color: var(--admin-accent-hover);
}
.admin-theme .page-item.active .page-link,
.dataTables_wrapper .page-item.active .page-link {
	background: var(--admin-accent) !important;
	border-color: var(--admin-accent);
	color: #fff;
}
.admin-theme .page-item.disabled .page-link,
.dataTables_wrapper .page-item.disabled .page-link {
	background: var(--admin-bg) !important;
	border-color: var(--admin-border);
	color: var(--admin-text-muted);
}

/* Modal */
.admin-theme .modal-content,
.modal-content {
	background: var(--admin-bg-secondary);
	border: 1px solid var(--admin-border);
	border-radius: var(--admin-card-radius);
	color: var(--admin-text);
}
.admin-theme .modal-header,
.modal-header {
	border-bottom-color: var(--admin-border);
}
.admin-theme .modal-footer,
.modal-footer {
	border-top-color: var(--admin-border);
}
.admin-theme .btn-close,
.modal .btn-close {
	filter: invert(1);
	opacity: 0.7;
}

/* Summernote / WYSIWYG in dark */
.admin-theme .note-editor,
.note-editor {
	background: var(--admin-bg) !important;
	border-color: var(--admin-border) !important;
}
.admin-theme .note-toolbar,
.note-toolbar {
	background: var(--admin-bg-tertiary) !important;
	border-color: var(--admin-border) !important;
}
.admin-theme .note-editing-area,
.note-editing-area {
	background: var(--admin-bg) !important;
	color: var(--admin-text) !important;
}

/* ========== Light theme overrides ========== */
.admin-theme.admin-theme-light {
	--admin-bg: #f4f6fb;
	--admin-bg-secondary: #ffffff;
	--admin-bg-tertiary: #eef1f7;
	--admin-bg-elevated: #ffffff;
	--admin-border: #e4e8f0;
	--admin-border-strong: #d0d7e3;
	--admin-text: #0f172a;
	--admin-text-muted: #64748b;
	--admin-accent: #4f46e5;
	--admin-accent-hover: #4338ca;
	--admin-accent-soft: rgba(79, 70, 229, 0.1);
	--admin-success: #16a34a;
	--admin-success-soft: rgba(22, 163, 74, 0.1);
	--admin-danger: #dc2626;
	--admin-danger-soft: rgba(220, 38, 38, 0.1);
	--admin-warning: #d97706;
	--admin-warning-soft: rgba(217, 119, 6, 0.1);
	--admin-info: #0284c7;
	--admin-info-soft: rgba(2, 132, 199, 0.1);
	--admin-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
	--admin-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
	--admin-shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
	--admin-focus-ring: 0 0 0 3px rgba(79, 70, 229, 0.18);
	--admin-sidebar-link: var(--admin-accent);
	--admin-sidebar-link-hover: var(--admin-accent-hover);
	--admin-sidebar-link-active: var(--admin-accent-hover);
	--admin-sidebar-active-bg: var(--admin-accent-soft);
}
.admin-theme.admin-theme-light .card {
	box-shadow: var(--admin-shadow-sm);
	border-color: var(--admin-border);
}
.admin-theme.admin-theme-light .admin-sidebar {
	box-shadow: 1px 0 0 var(--admin-border), 4px 0 24px rgba(15, 23, 42, 0.04);
}
.admin-theme.admin-theme-light .admin-topbar {
	background: color-mix(in srgb, var(--admin-bg-secondary) 92%, transparent);
}
.admin-theme.admin-theme-light .btn-primary:hover {
	box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
}
.admin-theme.admin-theme-light .navbar,
.admin-theme.admin-theme-light .navbar.navbar-dark.bg-dark {
	background: var(--admin-bg-secondary) !important;
	border-bottom-color: var(--admin-border);
}
.admin-theme.admin-theme-light .navbar-brand,
.admin-theme.admin-theme-light .navbar .nav-link {
	color: var(--admin-text) !important;
}
.admin-theme.admin-theme-light .navbar .nav-link:hover {
	color: var(--admin-accent) !important;
}
.admin-theme.admin-theme-light .navbar .dropdown-menu {
	background: var(--admin-bg-secondary);
	border-color: var(--admin-border);
}
.admin-theme.admin-theme-light .navbar .dropdown-item {
	color: var(--admin-text);
}
.admin-theme.admin-theme-light .navbar .dropdown-item:hover {
	background: var(--admin-bg-tertiary);
	color: var(--admin-text);
}
.admin-theme.admin-theme-light .navbar .dropdown-divider {
	border-color: var(--admin-border);
}
.admin-theme.admin-theme-light .navbar .badge.bg-warning {
	background: var(--admin-warning) !important;
	color: #fff !important;
}
.admin-theme.admin-theme-light .btn-close,
.admin-theme.admin-theme-light .modal .btn-close {
	filter: none;
	opacity: 0.5;
}
.admin-theme.admin-theme-light footer.mt-auto {
	background: var(--admin-bg-secondary);
	border-top-color: var(--admin-border);
	color: var(--admin-text-muted) !important;
}
.admin-theme.admin-theme-light .form-select,
.admin-theme.admin-theme-light .form-select:focus {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23656d76' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
}
.admin-theme.admin-theme-light .dataTables_wrapper select,
.admin-theme.admin-theme-light .dataTables_wrapper .form-select {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23656d76' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
}
.admin-theme.admin-theme-light .dataTables_wrapper select:focus,
.admin-theme.admin-theme-light .dataTables_wrapper .form-select:focus {
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23656d76' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") !important;
}

/* Cities list: votings count badge (larger click target) */
a.voting-count-badge {
	color: #fff !important;
	min-width: 2.5rem;
	min-height: 2rem;
	padding: 0.4em 0.85em !important;
	font-size: 0.95rem;
	line-height: 1.2;
	transition: transform 0.12s ease, filter 0.12s ease;
}
a.voting-count-badge:hover {
	color: #fff !important;
	transform: scale(1.06);
	filter: brightness(1.1);
}
a.voting-count-badge.bg-secondary:hover {
	filter: brightness(1.15);
}

/* Template edit: city picker (avoid Bootstrap bg-light/bg-white on dark theme) */
.admin-theme .tpl-ciudades-scroll {
	background: var(--admin-bg-tertiary);
	border: 1px solid var(--admin-border);
}
.admin-theme .tpl-pais-group {
	background: var(--admin-bg-secondary);
	border-color: var(--admin-border) !important;
	color: var(--admin-text);
}
.admin-theme .tpl-pais-group .border-bottom {
	border-color: var(--admin-border) !important;
}
.admin-theme .tpl-pais-group .form-check-label {
	color: var(--admin-text);
}

/* Votings: list + edit thumbnails (and QR boxes) use Bootstrap .border (light default) */
body.admin-theme:not(.admin-theme-light) .voting-list-thumb,
body.admin-theme:not(.admin-theme-light) .voting-edit-plan-thumb-wrap,
body.admin-theme:not(.admin-theme-light) #editLinksQr,
body.admin-theme:not(.admin-theme-light) #linksModalQr {
	border-color: var(--admin-border) !important;
}

/*
 * SweetAlert2: body sets color with !important, so the default light popup
 * inherits light text on white in dark admin. Scope Swal to admin palette.
 */
body.admin-theme:not(.admin-theme-light) .swal2-popup {
	--swal2-background: var(--admin-bg-secondary);
	--swal2-color: var(--admin-text);
	--swal2-footer-color: var(--admin-text-muted);
	--swal2-input-background: var(--admin-bg-tertiary);
	--swal2-input-color: var(--admin-text);
	--swal2-textarea-background: var(--admin-bg-tertiary);
	--swal2-textarea-color: var(--admin-text);
	background: var(--admin-bg-secondary);
	color: var(--admin-text);
	border: 1px solid var(--admin-border);
}
body.admin-theme:not(.admin-theme-light) .swal2-title,
body.admin-theme:not(.admin-theme-light) .swal2-html-container,
body.admin-theme:not(.admin-theme-light) .swal2-content {
	color: var(--admin-text) !important;
}
body.admin-theme:not(.admin-theme-light) .swal2-close {
	color: var(--admin-text-muted);
}
body.admin-theme:not(.admin-theme-light) .swal2-close:hover {
	color: var(--admin-text);
}
body.admin-theme:not(.admin-theme-light) .swal2-timer-progress-bar {
	background: var(--admin-accent);
}
body.admin-theme.admin-theme-light .swal2-popup {
	--swal2-background: #ffffff;
	--swal2-color: var(--admin-text);
	background: #fff;
	color: var(--admin-text);
}
body.admin-theme.admin-theme-light .swal2-title,
body.admin-theme.admin-theme-light .swal2-html-container,
body.admin-theme.admin-theme-light .swal2-content {
	color: var(--admin-text) !important;
}

/* Live votes modal: prominent totals */
.admin-live-votes-totals__value {
	font-variant-numeric: tabular-nums;
	color: var(--admin-text);
}
body.admin-theme:not(.admin-theme-light) .admin-live-votes-totals__value {
	color: var(--admin-accent);
}

/* Votings (and wide admin pages): wider layout on very large viewports */
@media (min-width: 1800px) {
	.container.container-votings-wide {
		max-width: 1720px;
	}
}

.dashboard-no-metrics-alert {
	padding: 1.5rem 1.75rem;
	border-width: 1px;
}
.dashboard-no-metrics-alert .alert-heading {
	font-size: 1.35rem;
	font-weight: 600;
}

/* Venue logo — fondo blanco; no invertir (el asset ya lleva recuadro claro) */
.booth-venue-img {
	display: block;
	object-fit: contain;
}
.booth-venue-img-wrap {
	display: flex;
	align-items: flex-start;
	justify-content: center;
	min-width: 88px;
}
.booth-venue-img-wrap--list {
	align-items: center;
	justify-content: flex-start;
	min-width: 0;
}
.booth-venue-img--list {
	width: 52px;
	height: 52px;
	object-fit: contain;
	margin: 0;
	border-radius: 8px;
	background: #fff;
	padding: 2px;
}
.admin-col-venue {
	width: 100px;
	min-width: 100px;
	max-width: 100px;
	text-align: left;
	vertical-align: middle;
}
.booth-venue-img-wrap--inline {
	display: inline-flex;
	align-items: center;
	min-width: 0;
	vertical-align: middle;
}
.booth-venue-img--inline {
	max-height: 28px;
	max-width: 120px;
	width: auto;
	height: 28px;
	object-fit: contain;
	margin: 0;
	padding: 2px 6px;
	border-radius: 8px;
	background: #fff;
}
.booth-venue-img--edit {
	max-width: 140px;
	max-height: 120px;
}

/* ── Admin shell: sidebar + topbar ── */
body.admin-shell {
	min-height: 100vh;
}
.admin-app {
	display: flex;
	min-height: 100vh;
	width: 100%;
}
.admin-sidebar {
	width: var(--admin-sidebar-width);
	flex-shrink: 0;
	background: var(--admin-bg-secondary);
	border-right: 1px solid var(--admin-border);
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	height: 100vh;
	z-index: 1040;
	transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 2px 0 16px rgba(0, 0, 0, 0.06);
}
.admin-sidebar-brand {
	position: relative;
	padding: 0 2.25rem 0 1.15rem;
	min-height: var(--admin-header-height);
	display: flex;
	align-items: center;
	border-bottom: 1px solid var(--admin-border);
	flex-shrink: 0;
	box-sizing: border-box;
	background: color-mix(in srgb, var(--admin-bg-tertiary) 40%, var(--admin-bg-secondary));
}
.admin-sidebar-brand-link {
	display: flex;
	align-items: center;
	min-width: 0;
	text-decoration: none;
	line-height: 0;
}
.admin-sidebar-collapse-btn {
	position: absolute;
	right: 0.4rem;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
	padding: 0.2rem 0.3rem;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: var(--admin-text-muted);
	font-size: 0.8rem;
	line-height: 1;
	opacity: 0.7;
	cursor: pointer;
	transition: opacity 0.15s, color 0.15s, background 0.15s;
}
.admin-sidebar-collapse-btn:hover {
	opacity: 1;
	color: var(--admin-text);
	background: var(--admin-bg-tertiary);
}
.admin-sidebar-nav {
	flex: 1;
	padding: 0.85rem 0.65rem;
	overflow-y: auto;
}
.admin-sidebar-nav .admin-sidebar-link,
.admin-sidebar-nav .admin-sidebar-group-toggle {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.7rem;
	width: 100%;
	padding: 0.62rem 0.85rem;
	border: none;
	border-radius: 10px;
	background: transparent;
	color: var(--admin-sidebar-link);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 500;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	-webkit-appearance: none;
	appearance: none;
}
.admin-theme .admin-sidebar-nav a.admin-sidebar-link {
	color: var(--admin-sidebar-link);
	text-decoration: none;
}
.admin-sidebar-nav .admin-sidebar-link:hover,
.admin-sidebar-nav .admin-sidebar-group-toggle:hover {
	background: var(--admin-bg-tertiary);
	color: var(--admin-sidebar-link-hover);
}
.admin-sidebar-nav .admin-sidebar-link.is-active,
.admin-sidebar-nav .admin-sidebar-group-toggle.is-active {
	background: var(--admin-sidebar-active-bg);
	color: var(--admin-sidebar-link-active);
	font-weight: 600;
}
.admin-sidebar-nav .admin-sidebar-link.is-active::before,
.admin-sidebar-nav .admin-sidebar-group-toggle.is-active::before {
	content: '';
	position: absolute;
	left: 0;
	top: 22%;
	bottom: 22%;
	width: 3px;
	border-radius: 0 3px 3px 0;
	background: var(--admin-accent);
}
.admin-sidebar-icon {
	font-size: 1.1rem;
	width: 1.25rem;
	text-align: center;
	flex-shrink: 0;
}
.admin-sidebar-label {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.admin-sidebar-chevron {
	font-size: 0.75rem;
	opacity: 0.85;
	transition: transform 0.2s;
}
.admin-sidebar-group-toggle.is-open .admin-sidebar-chevron,
.admin-sidebar-group.is-open .admin-sidebar-chevron {
	transform: rotate(180deg);
}
.admin-sidebar-sub {
	display: none;
	padding-left: 0.35rem;
	margin-top: 0.15rem;
}
.admin-sidebar-sub.is-open {
	display: block;
}
.admin-sidebar-sub .admin-sidebar-link {
	padding-left: 2.35rem;
	font-size: 0.8125rem;
}
.admin-sidebar-divider {
	height: 1px;
	background: var(--admin-border-strong);
	margin: 0.75rem 0.85rem;
}
.admin-sidebar-link--external {
	margin-top: 0.35rem;
	background: color-mix(in srgb, var(--admin-accent) 8%, var(--admin-bg-tertiary));
	border: 1px dashed color-mix(in srgb, var(--admin-accent) 38%, var(--admin-border-strong));
	color: var(--admin-sidebar-link);
}
.admin-sidebar-link--external:hover {
	background: color-mix(in srgb, var(--admin-accent) 14%, var(--admin-bg-tertiary));
	color: var(--admin-sidebar-link-hover);
	border-style: solid;
}
.admin-sidebar-external {
	font-size: 0.8rem;
	opacity: 0.85;
}
.admin-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
.admin-topbar {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0 1.25rem;
	min-height: var(--admin-header-height);
	box-sizing: border-box;
	border-bottom: 1px solid var(--admin-border);
	background: color-mix(in srgb, var(--admin-bg-secondary) 88%, transparent);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	position: sticky;
	top: 0;
	z-index: 1030;
	flex-shrink: 0;
}
.admin-topbar-spacer { flex: 1; }
.admin-topbar-actions {
	gap: 0.35rem;
}
.admin-topbar-actions .nav-item {
	list-style: none;
}
.admin-topbar-actions .nav-link,
.admin-topbar-btn {
	color: var(--admin-text-muted) !important;
	padding: 0 !important;
	border: none;
	background: transparent;
	line-height: 1;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.15s, color 0.15s;
}
.admin-topbar-actions .nav-link:hover,
.admin-topbar-btn:hover {
	color: var(--admin-text) !important;
	background: var(--admin-bg-tertiary);
}
.admin-topbar-user {
	color: var(--admin-text);
	text-decoration: none;
	font-size: 0.8125rem;
	font-weight: 500;
	padding: 0.35rem 0.65rem;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	transition: background 0.15s;
}
.admin-topbar-user:hover {
	background: var(--admin-bg-tertiary);
	color: var(--admin-text);
}
.admin-topbar-user .badge {
	font-size: 0.65rem;
	font-weight: 600;
	padding: 0.3em 0.55em;
	border-radius: 999px;
	letter-spacing: 0.02em;
}
.admin-topbar-menu {
	color: var(--admin-text);
	font-size: 1.35rem;
	padding: 0.25rem 0.5rem;
	border-radius: 10px;
}
.admin-topbar-menu:hover {
	background: var(--admin-bg-tertiary);
}
.admin-footer {
	border-color: var(--admin-border) !important;
	background: transparent;
	color: var(--admin-text-muted);
	font-size: 0.8125rem;
}
.admin-sidebar-backdrop {
	display: none;
}
body.admin-sidebar-collapsed .admin-sidebar {
	width: 72px;
}
body.admin-sidebar-collapsed .admin-sidebar-label,
body.admin-sidebar-collapsed .admin-sidebar-chevron,
body.admin-sidebar-collapsed .admin-sidebar-external {
	display: none;
}
body.admin-sidebar-collapsed .admin-sidebar-sub {
	display: none;
}
body.admin-sidebar-collapsed .admin-sidebar-sub.is-open {
	display: block !important;
	margin-top: 0.1rem;
	padding-left: 0;
}
body.admin-sidebar-collapsed .admin-sidebar-sub.is-open .admin-sidebar-link {
	justify-content: center;
	padding: 0.5rem;
	font-size: 0.9rem;
}
body.admin-sidebar-collapsed .admin-sidebar-link,
body.admin-sidebar-collapsed .admin-sidebar-group-toggle {
	justify-content: center;
	padding-left: 0.5rem;
	padding-right: 0.5rem;
}
body.admin-sidebar-collapsed .admin-sidebar-brand {
	padding: 0.35rem 0.35rem 0.25rem;
	flex-direction: column;
	justify-content: flex-start;
	align-items: center;
	gap: 0.2rem;
}
body.admin-sidebar-collapsed .admin-sidebar-brand-link {
	justify-content: center;
}
body.admin-sidebar-collapsed .admin-sidebar-collapse-btn {
	position: static;
	transform: none;
	align-self: center;
}
body.admin-sidebar-collapsed .admin-sidebar-divider {
	margin-left: 0.35rem;
	margin-right: 0.35rem;
}
.dashboard-kpi {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	border: 1px solid var(--admin-border);
	border-radius: var(--admin-card-radius);
	padding: 1.15rem 1.25rem;
	height: 100%;
	background: var(--admin-bg-secondary);
	box-shadow: var(--admin-shadow-xs);
	transition: box-shadow 0.18s ease, transform 0.18s ease;
	overflow: hidden;
	position: relative;
}
.dashboard-kpi::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	background: var(--admin-accent);
	opacity: 0.85;
}
.dashboard-kpi--revenue::before { background: var(--admin-success); }
.dashboard-kpi--reservations::before { background: var(--admin-accent); }
.dashboard-kpi--events::before { background: var(--admin-info); }
.dashboard-kpi--tables::before { background: var(--admin-warning); }
.dashboard-kpi:hover {
	box-shadow: var(--admin-shadow-sm);
	transform: translateY(-1px);
}
.dashboard-kpi-icon {
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	flex-shrink: 0;
}
.dashboard-kpi--revenue .dashboard-kpi-icon {
	background: var(--admin-success-soft);
	color: var(--admin-success);
}
.dashboard-kpi--reservations .dashboard-kpi-icon {
	background: var(--admin-accent-soft);
	color: var(--admin-accent);
}
.dashboard-kpi--events .dashboard-kpi-icon {
	background: var(--admin-info-soft);
	color: var(--admin-info);
}
.dashboard-kpi--tables .dashboard-kpi-icon {
	background: var(--admin-warning-soft);
	color: var(--admin-warning);
}
.dashboard-kpi-body {
	min-width: 0;
	flex: 1;
}
.dashboard-kpi .kpi-label {
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
	color: var(--admin-text-muted);
}
.dashboard-kpi .kpi-value {
	font-size: clamp(1.25rem, 2.2vw, 1.75rem);
	font-weight: 700;
	line-height: 1.15;
	margin-top: 0.35rem;
	letter-spacing: -0.03em;
	color: var(--admin-text);
}
.dashboard-kpi .kpi-sub {
	font-size: 0.8125rem;
	color: var(--admin-text-muted);
	margin-top: 0.3rem;
}
.dashboard-chart-wrap {
	position: relative;
	min-height: 280px;
	height: 300px;
	padding: 0.25rem 0.5rem 0.75rem;
}
.dashboard-chart-wrap--donut {
	min-height: 260px;
	height: 260px;
	max-width: 320px;
	margin: 0 auto;
}
.dashboard-chart-wrap--bar {
	min-height: 240px;
	height: 260px;
}
.dashboard-chart-period-form .form-select {
	width: auto;
	min-width: 7.5rem;
}
.dashboard-event-item {
	padding-top: 0.85rem;
	padding-bottom: 0.85rem;
}
.dashboard-event-row {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	min-width: 0;
}
.dashboard-event-body {
	min-width: 0;
	flex: 1;
}
.dashboard-event-date {
	display: inline-flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: center;
	width: 3rem;
	min-width: 3rem;
	border-radius: 10px;
	border: 1px solid var(--admin-border);
	background: var(--admin-bg-secondary);
	overflow: hidden;
	flex-shrink: 0;
	line-height: 1;
	text-align: center;
	box-shadow: var(--admin-shadow-xs);
}
.dashboard-event-date__month {
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	color: var(--admin-accent);
	background: var(--admin-accent-soft);
	padding: 0.22rem 0.15rem 0.18rem;
}
.dashboard-event-date__day {
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--admin-text);
	padding: 0.2rem 0 0.28rem;
}
.dashboard-res-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.45rem;
	margin-top: 0.2rem;
	font-size: 0.75rem;
	line-height: 1.3;
}
.dashboard-res-meta-sep {
	opacity: 0.45;
}
@media (max-width: 991.98px) {
	.admin-sidebar-collapse-btn {
		display: none;
	}
	.admin-sidebar-brand {
		padding: 0 1rem;
		flex-direction: row;
	}
	body.admin-sidebar-collapsed .admin-sidebar {
		width: 260px;
	}
	.admin-sidebar {
		position: fixed;
		left: 0;
		transform: translateX(-100%);
		transition: transform 0.2s ease;
	}
	body.admin-sidebar-mobile-open .admin-sidebar {
		transform: translateX(0);
	}
	.admin-sidebar-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.45);
		z-index: 1035;
	}
}

.admin-topbar-actions .booth-lang-dropdown {
	width: auto;
	height: 2.25rem;
	padding: 0 0.5rem !important;
	border-radius: 10px;
}
.admin-topbar-actions .booth-lang-dropdown:hover {
	background: var(--admin-bg-tertiary);
}
.admin-theme main > .d-flex.justify-content-between.align-items-center {
	margin-bottom: 1.5rem;
}
	display: block;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .15);
}

.booth-lang-dropdown::after {
	margin-left: .35rem;
	vertical-align: middle;
}

.booth-lang-menu {
	min-width: 10rem;
}

.booth-lang-menu .dropdown-item {
	color: var(--admin-text);
	transition: background-color 0.12s ease, color 0.12s ease;
}

.admin-theme:not(.admin-theme-light) .booth-lang-menu .dropdown-item:hover,
.admin-theme:not(.admin-theme-light) .booth-lang-menu .dropdown-item:focus,
.admin-theme:not(.admin-theme-light) .booth-lang-menu .dropdown-item:focus-visible {
	background-color: var(--admin-bg-tertiary) !important;
	color: var(--admin-text) !important;
}

.admin-theme:not(.admin-theme-light) .booth-lang-menu .dropdown-item.active {
	background-color: var(--admin-accent) !important;
	color: #ffffff !important;
}

.admin-theme:not(.admin-theme-light) .booth-lang-menu .dropdown-item.active:hover,
.admin-theme:not(.admin-theme-light) .booth-lang-menu .dropdown-item.active:focus {
	background-color: var(--admin-accent-hover) !important;
	color: #ffffff !important;
}

.admin-theme.admin-theme-light .booth-lang-menu .dropdown-item:hover,
.admin-theme.admin-theme-light .booth-lang-menu .dropdown-item:focus,
.admin-theme.admin-theme-light .booth-lang-menu .dropdown-item:focus-visible {
	background-color: var(--admin-bg-tertiary) !important;
	color: var(--admin-text) !important;
}

.admin-theme.admin-theme-light .booth-lang-menu .dropdown-item.active {
	background-color: var(--admin-accent) !important;
	color: #ffffff !important;
}

.admin-theme.admin-theme-light .booth-lang-menu .dropdown-item.active:hover,
.admin-theme.admin-theme-light .booth-lang-menu .dropdown-item.active:focus {
	background-color: var(--admin-accent-hover) !important;
	color: #ffffff !important;
}

.booth-lang-menu .dropdown-item img {
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.admin-theme.admin-theme-light .booth-lang-menu .dropdown-item img {
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}

.login-lang-switch {
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 1030;
}

.login-lang-switch .dropdown-menu {
	min-width: 10rem;
}

.login-lang-switch .dropdown-item {
	color: var(--admin-text);
	transition: background-color 0.12s ease, color 0.12s ease;
}

.admin-theme:not(.admin-theme-light) .login-lang-switch .dropdown-item:hover,
.admin-theme:not(.admin-theme-light) .login-lang-switch .dropdown-item:focus,
.admin-theme:not(.admin-theme-light) .login-lang-switch .dropdown-item:focus-visible {
	background-color: var(--admin-bg-tertiary) !important;
	color: var(--admin-text) !important;
}

.admin-theme.admin-theme-light .login-lang-switch .dropdown-item:hover,
.admin-theme.admin-theme-light .login-lang-switch .dropdown-item:focus,
.admin-theme.admin-theme-light .login-lang-switch .dropdown-item:focus-visible {
	background-color: var(--admin-bg-tertiary) !important;
	color: var(--admin-text) !important;
}

.login-lang-switch .dropdown-item img {
	border-radius: 2px;
}

/* Tom Select (searchable city picker on events) */
.admin-theme .ts-wrapper.form-select,
.admin-theme .ts-wrapper.single .ts-control {
	background-color: var(--admin-bg-secondary);
	border-color: var(--admin-border);
	color: var(--admin-text);
}
.admin-theme .ts-wrapper.single .ts-control input {
	color: var(--admin-text);
}
.admin-theme .ts-dropdown {
	background: var(--admin-bg-secondary);
	border-color: var(--admin-border);
	color: var(--admin-text);
}
.admin-theme .ts-dropdown .option,
.admin-theme .ts-dropdown .no-results {
	color: var(--admin-text);
}
.admin-theme .ts-dropdown .active {
	background: var(--admin-accent);
	color: #fff;
}
.admin-theme.admin-theme-light .ts-wrapper.single .ts-control,
.admin-theme.admin-theme-light .ts-dropdown {
	background: #fff;
	color: #212529;
}

/* ── Price config table inputs ── */
.admin-price-input-money {
	width: 7.5rem;
	min-width: 7.5rem;
}
.admin-price-input-int {
	width: 5rem;
	min-width: 5rem;
}

.admin-deposit-select.form-select-sm {
	min-height: calc(1.5em + 0.5rem + 2px);
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
}
.admin-deposit-value-group .form-control-sm {
	min-height: calc(1.5em + 0.5rem + 2px);
}
.admin-deposit-value-group .input-group-text {
	min-width: 2.25rem;
	justify-content: center;
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
}
.admin-deposit-zone-controls .admin-deposit-select {
	min-width: 7.5rem;
	width: auto;
}
.admin-deposit-zone-controls .admin-deposit-value-group {
	width: 6.5rem;
	flex-shrink: 0;
}
.admin-deposit-zone-controls .admin-zone-deposit-value-wrap.d-none,
.admin-deposit-zone-controls .admin-zone-deposit-value-wrap[hidden] {
	display: none !important;
}
.admin-deposit-zone-cell {
	min-width: 10rem;
}

/* ── Page layout & typography ── */
.admin-theme main.container,
.admin-theme main.container-fluid {
	padding-left: clamp(1rem, 3vw, 2rem);
	padding-right: clamp(1rem, 3vw, 2rem);
}
.admin-theme main > h1,
.admin-theme main > .d-flex h1,
.admin-theme main > h1.h3 {
	font-weight: 700;
	letter-spacing: -0.03em;
	font-size: clamp(1.35rem, 2vw, 1.625rem);
}
.admin-theme main > .text-muted,
.admin-theme main > p.text-muted {
	font-size: 0.9375rem;
	line-height: 1.5;
}

/* ── Status badges ── */
.admin-theme .badge {
	font-weight: 600;
	padding: 0.35em 0.7em;
	border-radius: 999px;
	font-size: 0.6875rem;
	letter-spacing: 0.03em;
	text-transform: lowercase;
	border: 1px solid transparent;
}
.admin-theme .badge.bg-success {
	background: var(--admin-success-soft) !important;
	color: var(--admin-success) !important;
	border-color: color-mix(in srgb, var(--admin-success) 25%, transparent);
}
.admin-theme .badge.bg-primary {
	background: var(--admin-accent-soft) !important;
	color: var(--admin-accent) !important;
	border-color: color-mix(in srgb, var(--admin-accent) 25%, transparent);
}
.admin-theme .badge.bg-warning {
	background: var(--admin-warning-soft) !important;
	color: var(--admin-warning) !important;
	border-color: color-mix(in srgb, var(--admin-warning) 25%, transparent);
}
.admin-theme .badge.bg-danger {
	background: var(--admin-danger-soft) !important;
	color: var(--admin-danger) !important;
	border-color: color-mix(in srgb, var(--admin-danger) 25%, transparent);
}
.admin-theme .badge.bg-info {
	background: var(--admin-info-soft) !important;
	color: var(--admin-info) !important;
	border-color: color-mix(in srgb, var(--admin-info) 25%, transparent);
}
.admin-theme .badge.bg-secondary,
.admin-theme .badge.bg-dark {
	background: color-mix(in srgb, var(--admin-text-muted) 14%, transparent) !important;
	color: var(--admin-text-muted) !important;
	border-color: var(--admin-border);
}
.admin-theme .badge.bg-warning.text-dark {
	color: var(--admin-warning) !important;
}

/* ── Data tables in cards ── */
.admin-theme .card .table,
.admin-theme .card .table thead,
.admin-theme .card .table tbody,
.admin-theme .card .table tbody tr,
.admin-theme .card .table td,
.admin-theme .card .table th {
	background: transparent !important;
}
.admin-theme .card .table thead th {
	background: var(--admin-bg-tertiary) !important;
	font-size: 0.6875rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-weight: 600;
	color: var(--admin-text-muted);
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--admin-border);
}
.admin-theme .card .table tbody td {
	padding: 0.85rem 1rem;
	border-color: var(--admin-border);
	font-size: 0.875rem;
}
.admin-theme .card .table-hover tbody tr {
	transition: background 0.12s ease;
}
.admin-theme .card .table-hover tbody tr:hover,
.admin-theme .card .table-hover tbody tr:hover td {
	background: var(--admin-bg-tertiary) !important;
}
.admin-theme .card .table tbody tr:last-child td {
	border-bottom: none;
}

/* ── Dropdowns ── */
.admin-theme .dropdown-menu {
	border: 1px solid var(--admin-border);
	border-radius: 12px;
	box-shadow: var(--admin-shadow-md);
	padding: 0.35rem;
	background: var(--admin-bg-secondary);
}
.admin-theme .dropdown-item {
	border-radius: 8px;
	padding: 0.45rem 0.75rem;
	font-size: 0.875rem;
}

/* ── Alerts ── */
.admin-theme .alert {
	border-radius: 12px;
	border-width: 1px;
	font-size: 0.875rem;
}

/* ── Login ── */
body.admin-theme:not(.admin-shell) .card {
	box-shadow: var(--admin-shadow-md);
	max-width: 420px;
	margin: 0 auto;
}
body.admin-theme:not(.admin-shell) .card-body {
	padding: 2rem !important;
}

/* Scrollbars — modo oscuro */
.admin-theme:not(.admin-theme-light) {
	scrollbar-color: #484f58 var(--admin-bg);
	scrollbar-width: thin;
}
.admin-theme:not(.admin-theme-light) ::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}
.admin-theme:not(.admin-theme-light) ::-webkit-scrollbar-track {
	background: var(--admin-bg-secondary);
	border-radius: 6px;
}
.admin-theme:not(.admin-theme-light) ::-webkit-scrollbar-thumb {
	background: #484f58;
	border-radius: 6px;
	border: 2px solid var(--admin-bg-secondary);
}
.admin-theme:not(.admin-theme-light) ::-webkit-scrollbar-thumb:hover {
	background: #6e7681;
}
.admin-theme:not(.admin-theme-light) ::-webkit-scrollbar-corner {
	background: var(--admin-bg-secondary);
}
.admin-theme:not(.admin-theme-light) .table-responsive,
.admin-theme:not(.admin-theme-light) .card .table-responsive,
.admin-theme:not(.admin-theme-light) .dataTables_wrapper .dataTables_scrollBody {
	scrollbar-color: #6e7681 var(--admin-bg-tertiary);
}
.admin-theme:not(.admin-theme-light) .table-responsive::-webkit-scrollbar-track,
.admin-theme:not(.admin-theme-light) .card .table-responsive::-webkit-scrollbar-track,
.admin-theme:not(.admin-theme-light) .dataTables_wrapper .dataTables_scrollBody::-webkit-scrollbar-track {
	background: var(--admin-bg-tertiary);
}
.admin-theme:not(.admin-theme-light) .table-responsive::-webkit-scrollbar-thumb,
.admin-theme:not(.admin-theme-light) .card .table-responsive::-webkit-scrollbar-thumb,
.admin-theme:not(.admin-theme-light) .dataTables_wrapper .dataTables_scrollBody::-webkit-scrollbar-thumb {
	border-color: var(--admin-bg-tertiary);
}

/* Users list — tipo puerta y tooltips de ámbito */
.badge-user-puerta {
	background-color: #7c3aed;
	color: #fff;
}
.users-scope-num {
	cursor: help;
	text-decoration: underline dotted;
	text-underline-offset: 2px;
}
