/* ==========================================================================
   Reserva Tours · Sistema de diseño
   --------------------------------------------------------------------------
   Todos los colores viven en variables CSS. Las utilidades de Tailwind
   (CDN de navegador) se apoyan en esas variables mediante `rgb(var(--x) /
   <alpha-value>)`, de modo que el tema claro y el oscuro comparten una sola
   fuente de verdad y no existen páginas con modo oscuro parcial.

   Índice
     1. Tokens y temas
     2. Base y utilidades
     3. Estructura (shell, sidebar, topbar, contenido)
     4. Componentes (botones, campos, tarjetas, tablas, badges, alertas)
     5. Estados (vacío, carga, skeleton)
     6. Modales, dropdowns y notificaciones
     7. Filtros, paginación y selector de rango de fechas
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens y temas
   -------------------------------------------------------------------------- */

:root {
	color-scheme: light;

	/* Marca ---------------------------------------------------------------- */
	--brand-50: 242 244 255;
	--brand-100: 227 231 255;
	--brand-200: 203 210 255;
	--brand-300: 172 183 255;
	--brand-400: 126 143 255;
	--brand-500: 70 95 255;
	--brand-600: 62 84 224;
	--brand-700: 52 71 191;
	--brand-800: 43 59 158;
	--brand-900: 35 48 128;

	/* Superficies ---------------------------------------------------------- */
	--app-bg: 248 250 252;
	--surface: 255 255 255;
	--surface-2: 241 245 249;
	--surface-3: 226 232 240;
	--sidebar-bg: 15 23 42;
	--sidebar-hover: 30 41 59;
	--sidebar-active: 30 41 59;
	--sidebar-text: 203 213 225;
	--sidebar-muted: 100 116 139;

	/* Texto ---------------------------------------------------------------- */
	--ink: 15 23 42;
	--ink-2: 51 65 85;
	--ink-muted: 100 116 139;
	--ink-subtle: 148 163 184;
	--ink-inverse: 255 255 255;

	/* Bordes --------------------------------------------------------------- */
	--line: 226 232 240;
	--line-strong: 203 213 225;

	/* Estados -------------------------------------------------------------- */
	--success: 22 163 74;
	--success-soft: 220 252 231;
	--success-ink: 21 128 61;
	--warning: 245 158 11;
	--warning-soft: 254 243 199;
	--warning-ink: 146 64 14;
	--danger: 220 38 38;
	--danger-soft: 254 226 226;
	--danger-ink: 153 27 27;
	--info: 37 99 235;
	--info-soft: 219 234 254;
	--info-ink: 30 64 175;

	/* Rampa `slate` remapeada a variables para que las clases heredadas
	   (text-slate-500, bg-slate-50, …) acompañen al tema activo. */
	--slate-50: 248 250 252;
	--slate-100: 241 245 249;
	--slate-200: 226 232 240;
	--slate-300: 203 213 225;
	--slate-400: 148 163 184;
	--slate-500: 100 116 139;
	--slate-600: 71 85 105;
	--slate-700: 51 65 85;
	--slate-800: 30 41 59;
	--slate-900: 15 23 42;
	--slate-950: 2 6 23;

	/* Sombras -------------------------------------------------------------- */
	--shadow-xs: 0 1px 2px 0 rgb(15 23 42 / 0.05);
	--shadow-sm: 0 1px 3px 0 rgb(15 23 42 / 0.08), 0 1px 2px -1px rgb(15 23 42 / 0.06);
	--shadow-md: 0 4px 12px -2px rgb(15 23 42 / 0.10), 0 2px 6px -2px rgb(15 23 42 / 0.06);
	--shadow-lg: 0 12px 28px -6px rgb(15 23 42 / 0.16), 0 4px 10px -4px rgb(15 23 42 / 0.08);
	--shadow-xl: 0 24px 48px -12px rgb(15 23 42 / 0.22);

	--radius-sm: 6px;
	--radius: 8px;
	--radius-md: 10px;
	--radius-lg: 14px;
	--radius-full: 9999px;

	--sidebar-width: 17rem;
	--topbar-height: 4rem;
}

.dark {
	color-scheme: dark;

	--brand-50: 13 17 46;
	--brand-100: 22 30 82;
	--brand-200: 35 48 128;
	--brand-300: 111 130 255;
	--brand-400: 133 149 255;
	--brand-500: 155 169 255;
	--brand-600: 126 143 255;
	--brand-700: 100 121 255;
	--brand-800: 81 105 255;
	--brand-900: 70 95 255;

	--app-bg: 8 12 24;
	--surface: 15 23 42;
	--surface-2: 22 32 54;
	--surface-3: 30 41 59;
	--sidebar-bg: 3 7 18;
	--sidebar-hover: 22 32 54;
	--sidebar-active: 30 41 59;
	--sidebar-text: 203 213 225;
	--sidebar-muted: 100 116 139;

	--ink: 241 245 249;
	--ink-2: 226 232 240;
	--ink-muted: 148 163 184;
	--ink-subtle: 100 116 139;
	--ink-inverse: 15 23 42;

	--line: 30 41 59;
	--line-strong: 51 65 85;

	--success: 74 222 128;
	--success-soft: 6 46 30;
	--success-ink: 134 239 172;
	--warning: 251 191 36;
	--warning-soft: 69 46 5;
	--warning-ink: 252 211 77;
	--danger: 248 113 113;
	--danger-soft: 69 20 20;
	--danger-ink: 252 165 165;
	--info: 96 165 250;
	--info-soft: 22 44 84;
	--info-ink: 147 197 253;

	--slate-50: 8 12 24;
	--slate-100: 15 23 42;
	--slate-200: 22 32 54;
	--slate-300: 30 41 59;
	--slate-400: 71 85 105;
	--slate-500: 148 163 184;
	--slate-600: 203 213 225;
	--slate-700: 226 232 240;
	--slate-800: 241 245 249;
	--slate-900: 248 250 252;
	--slate-950: 255 255 255;

	--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.30);
	--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.40), 0 1px 2px -1px rgb(0 0 0 / 0.30);
	--shadow-md: 0 4px 12px -2px rgb(0 0 0 / 0.45), 0 2px 6px -2px rgb(0 0 0 / 0.30);
	--shadow-lg: 0 12px 28px -6px rgb(0 0 0 / 0.55), 0 4px 10px -4px rgb(0 0 0 / 0.35);
	--shadow-xl: 0 24px 48px -12px rgb(0 0 0 / 0.65);
}

/* --------------------------------------------------------------------------
   2. Base y utilidades
   -------------------------------------------------------------------------- */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background-color: rgb(var(--app-bg));
	color: rgb(var(--ink));
	font-synthesis: none;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 { color: rgb(var(--ink)); }

::selection { background: rgb(var(--brand-500) / 0.22); }

/* Anillo de foco consistente y visible en toda la aplicación. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 2px solid rgb(var(--brand-500));
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

/*滚 scrollbars discretas y coherentes con el tema. */
.scroll-thin { scrollbar-width: thin; scrollbar-color: rgb(var(--slate-300)) transparent; }
.scroll-thin::-webkit-scrollbar { height: 8px; width: 8px; }
.scroll-thin::-webkit-scrollbar-track { background: transparent; }
.scroll-thin::-webkit-scrollbar-thumb {
	background: rgb(var(--slate-300));
	border-radius: var(--radius-full);
}
.scroll-thin::-webkit-scrollbar-thumb:hover { background: rgb(var(--slate-400)); }

/* Red de seguridad: `bg-white` sigue significando "superficie", también en
   tema oscuro. Las vistas nuevas usan `bg-surface` directamente. */
.dark .bg-white { background-color: rgb(var(--surface)); }
.dark .bg-white\/80 { background-color: rgb(var(--surface) / 0.8); }
.dark .bg-white\/95 { background-color: rgb(var(--surface) / 0.95); }

/* --------------------------------------------------------------------------
   3. Estructura: shell, sidebar, topbar y contenido
   -------------------------------------------------------------------------- */

.app-shell {
	display: flex;
	min-height: 100vh;
	background-color: rgb(var(--app-bg));
}

/* --- Sidebar ------------------------------------------------------------ */

.app-sidebar {
	position: fixed;
	inset-block: 0;
	inset-inline-start: 0;
	z-index: 60;
	display: flex;
	width: var(--sidebar-width);
	flex-direction: column;
	background-color: rgb(var(--sidebar-bg));
	border-inline-end: 1px solid rgb(var(--line) / 0.8);
	transition: transform .22s cubic-bezier(.4, 0, .2, 1);
}

.app-sidebar__brand {
	display: flex;
	align-items: center;
	gap: .75rem;
	height: var(--topbar-height);
	padding-inline: 1.25rem;
	border-bottom: 1px solid rgb(255 255 255 / .06);
	flex-shrink: 0;
}

.app-sidebar__mark {
	display: grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	flex-shrink: 0;
	border-radius: var(--radius-md);
	background: linear-gradient(140deg, rgb(var(--brand-400)), rgb(var(--brand-600)));
	color: #fff;
	box-shadow: 0 4px 12px -4px rgb(var(--brand-500) / .7);
}

.app-sidebar__title {
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -.01em;
	color: #fff;
	line-height: 1.1;
}

.app-sidebar__subtitle {
	font-size: .6875rem;
	color: rgb(var(--sidebar-muted));
	line-height: 1.2;
}

.app-sidebar__nav {
	flex: 1;
	overflow-y: auto;
	padding: 1rem .75rem 1.5rem;
}

.sidebar-group + .sidebar-group { margin-top: 1.25rem; }

.sidebar-group__label {
	display: block;
	padding: 0 .75rem .5rem;
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgb(var(--sidebar-muted));
}

.sidebar-link {
	display: flex;
	align-items: center;
	gap: .75rem;
	min-height: 2.5rem;
	padding: 0 .75rem;
	margin-bottom: .125rem;
	border-radius: var(--radius);
	color: rgb(var(--sidebar-text));
	font-size: .875rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}

.sidebar-link:hover { background-color: rgb(var(--sidebar-hover)); color: #fff; }

.sidebar-link__icon {
	width: 1.125rem;
	height: 1.125rem;
	flex-shrink: 0;
	opacity: .8;
}

.sidebar-link:hover .sidebar-link__icon { opacity: 1; }

.sidebar-link--active {
	background-color: rgb(var(--brand-500));
	color: #fff;
	font-weight: 600;
	box-shadow: 0 6px 16px -8px rgb(var(--brand-500) / .9);
}

.sidebar-link--active .sidebar-link__icon { opacity: 1; }

.sidebar-link__badge {
	margin-inline-start: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.375rem;
	height: 1.375rem;
	padding-inline: .375rem;
	border-radius: var(--radius-full);
	background-color: rgb(var(--brand-500) / .18);
	color: rgb(var(--brand-300));
	font-size: .6875rem;
	font-weight: 700;
}

.sidebar-link--active .sidebar-link__badge {
	background-color: rgb(255 255 255 / .22);
	color: #fff;
}

.app-sidebar__footer {
	padding: 1rem;
	border-top: 1px solid rgb(255 255 255 / .06);
	flex-shrink: 0;
}

.app-sidebar__user {
	display: flex;
	align-items: center;
	gap: .625rem;
	padding: .625rem;
	border-radius: var(--radius);
	background-color: rgb(255 255 255 / .05);
}

.app-sidebar__avatar {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	flex-shrink: 0;
	border-radius: var(--radius-full);
	background: linear-gradient(140deg, rgb(var(--brand-400)), rgb(var(--brand-600)));
	color: #fff;
	font-size: .75rem;
	font-weight: 700;
}

.app-sidebar__user-name {
	font-size: .8125rem;
	font-weight: 600;
	color: #fff;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.app-sidebar__user-role {
	font-size: .6875rem;
	color: rgb(var(--sidebar-muted));
}

/* --- Capa superpuesta (móvil) ------------------------------------------- */

.app-overlay {
	position: fixed;
	inset: 0;
	z-index: 50;
	background-color: rgb(15 23 42 / .55);
	backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .2s ease, visibility .2s ease;
}

.app-overlay.is-visible { opacity: 1; visibility: visible; }

/* --- Topbar ------------------------------------------------------------- */

.app-topbar {
	position: sticky;
	top: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	gap: .75rem;
	height: var(--topbar-height);
	padding-inline: 1rem;
	background-color: rgb(var(--surface) / .92);
	border-bottom: 1px solid rgb(var(--line));
	backdrop-filter: blur(10px);
}

@media (min-width: 1024px) {
	.app-topbar { padding-inline: 1.5rem; }
}

.app-topbar__title {
	font-size: .9375rem;
	font-weight: 700;
	letter-spacing: -.01em;
	color: rgb(var(--ink));
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.app-topbar__subtitle {
	font-size: .75rem;
	color: rgb(var(--ink-muted));
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.icon-button {
	display: inline-grid;
	place-items: center;
	width: 2.5rem;
	height: 2.5rem;
	flex-shrink: 0;
	border: 1px solid transparent;
	border-radius: var(--radius);
	background: none;
	color: rgb(var(--ink-muted));
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.icon-button:hover {
	background-color: rgb(var(--surface-2));
	color: rgb(var(--ink));
}

.icon-button--bordered { border-color: rgb(var(--line)); background-color: rgb(var(--surface)); }
.icon-button--bordered:hover { border-color: rgb(var(--line-strong)); }

/* --- Contenido ---------------------------------------------------------- */

.app-content {
	flex: 1;
	min-width: 0;
	padding: 1.25rem 1rem 3rem;
}

@media (min-width: 640px) { .app-content { padding: 1.75rem 1.5rem 3rem; } }
@media (min-width: 1024px) { .app-content { padding: 2rem 2rem 3.5rem; } }

/* El contenido se desplaza junto al sidebar fijo: una sola fuente de verdad.
   `min-width: 0` es imprescindible para que las tablas anchas no ensanchen
   la columna de contenido. */
.app-shell__main {
	flex: 1;
	min-width: 0;
}

@media (min-width: 1024px) {
	.app-shell__main {
		margin-inline-start: var(--sidebar-width);
	}
}

@media (max-width: 1023px) {
	.app-sidebar { transform: translateX(-100%); box-shadow: var(--shadow-xl); }
	.app-sidebar.is-open { transform: translateX(0); }
}

@media (min-width: 1024px) {
	.app-sidebar { transform: translateX(0); }
	.app-overlay { display: none; }
}

/* Bloquea el scroll del fondo mientras el menú móvil está abierto. */
body.app-scroll-locked { overflow: hidden; }

/* Rejilla utilitaria para el contenido con ancho máximo local. */
.content-narrow { max-width: 56rem; }
.content-form { max-width: 48rem; }

/* --------------------------------------------------------------------------
   4. Componentes
   -------------------------------------------------------------------------- */

/* --- Botones ------------------------------------------------------------- */

.action-button {
	display: inline-flex;
	min-height: 2.625rem;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	border: 1px solid transparent;
	border-radius: var(--radius);
	padding: 0 1rem;
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1.25;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.action-button:hover:not(:disabled) { filter: none; }
.action-button:active:not(:disabled) { transform: translateY(1px); }
.action-button:disabled,
.action-button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.action-button--primary {
	background-color: rgb(var(--brand-500));
	color: #fff;
	box-shadow: var(--shadow-xs);
}
.action-button--primary:hover:not(:disabled) { background-color: rgb(var(--brand-600)); }

.action-button--secondary {
	background-color: rgb(var(--surface-2));
	color: rgb(var(--ink));
	border-color: rgb(var(--line));
}
.action-button--secondary:hover:not(:disabled) { background-color: rgb(var(--surface-3)); }

.action-button--ghost {
	background-color: rgb(var(--surface));
	color: rgb(var(--ink-2));
	border-color: rgb(var(--line));
}
.action-button--ghost:hover:not(:disabled) {
	background-color: rgb(var(--surface-2));
	border-color: rgb(var(--line-strong));
	color: rgb(var(--ink));
}

.action-button--subtle {
	background-color: transparent;
	color: rgb(var(--ink-muted));
}
.action-button--subtle:hover:not(:disabled) {
	background-color: rgb(var(--surface-2));
	color: rgb(var(--ink));
}

.action-button--danger {
	background-color: rgb(var(--danger));
	color: #fff;
}
.action-button--danger:hover:not(:disabled) { background-color: rgb(var(--danger-ink)); }

.action-button--danger-ghost {
	background-color: transparent;
	color: rgb(var(--danger));
	border-color: rgb(var(--line));
}
.action-button--danger-ghost:hover:not(:disabled) {
	background-color: rgb(var(--danger-soft));
	border-color: rgb(var(--danger) / .4);
}

.action-button--sm { min-height: 2.125rem; padding-inline: .625rem; font-size: .75rem; }
.action-button--lg { min-height: 2.875rem; padding-inline: 1.25rem; font-size: .875rem; }
.action-button--block { width: 100%; }

/* Enlace de navegación del antiguo topbar (se conserva por compatibilidad). */
.nav-link {
	display: inline-flex;
	min-height: 2.5rem;
	align-items: center;
	border-radius: var(--radius);
	padding: 0 .625rem;
	color: rgb(var(--ink-muted));
	font-size: .8125rem;
	font-weight: 600;
	transition: background-color .15s ease, color .15s ease;
	text-decoration: none;
}
.nav-link:hover, .nav-link:focus-visible { background: rgb(var(--surface-2)); color: rgb(var(--ink)); }

/* --- Formularios --------------------------------------------------------- */

.field-label {
	display: block;
	margin-bottom: .375rem;
	color: rgb(var(--ink-2));
	font-size: .75rem;
	font-weight: 600;
	letter-spacing: -.005em;
}

.field-label__required { color: rgb(var(--danger)); }

.field-control {
	display: block;
	width: 100%;
	min-width: 0;
	min-height: 2.625rem;
	border: 1px solid rgb(var(--line));
	border-radius: var(--radius);
	background-color: rgb(var(--surface));
	padding: .5rem .75rem;
	color: rgb(var(--ink));
	font: inherit;
	font-size: .875rem;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.field-control::placeholder { color: rgb(var(--ink-subtle)); }

.field-control:focus,
.field-control:focus-visible {
	border-color: rgb(var(--brand-500));
	outline: none;
	box-shadow: 0 0 0 3px rgb(var(--brand-500) / .16);
}

.field-control[aria-invalid="true"],
.field-control.is-invalid {
	border-color: rgb(var(--danger));
}
.field-control[aria-invalid="true"]:focus,
.field-control.is-invalid:focus {
	box-shadow: 0 0 0 3px rgb(var(--danger) / .16);
}

.field-control:disabled,
.field-control[readonly] {
	background-color: rgb(var(--surface-2));
	color: rgb(var(--ink-muted));
	cursor: not-allowed;
}

select.field-control {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.17l3.71-3.94a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .55rem center;
	background-size: 1.125rem;
	padding-right: 2rem;
}

textarea.field-control { line-height: 1.5; }

.field-hint {
	display: block;
	margin-top: .3125rem;
	font-size: .6875rem;
	line-height: 1.4;
	color: rgb(var(--ink-muted));
}

.field-error {
	display: flex;
	align-items: flex-start;
	gap: .25rem;
	margin-top: .3125rem;
	font-size: .6875rem;
	font-weight: 500;
	line-height: 1.4;
	color: rgb(var(--danger-ink));
}

/* Casillas y radios con el color de marca. */
input[type="checkbox"].accent-brand,
input[type="radio"].accent-brand { accent-color: rgb(var(--brand-500)); }

/* --- Tarjetas ------------------------------------------------------------ */

.card {
	background-color: rgb(var(--surface));
	border: 1px solid rgb(var(--line));
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-xs);
}

.card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	padding: 1rem 1.25rem;
	border-bottom: 1px solid rgb(var(--line));
}

.card__title { font-size: .9375rem; font-weight: 700; color: rgb(var(--ink)); }
.card__subtitle { font-size: .75rem; color: rgb(var(--ink-muted)); }
.card__body { padding: 1.25rem; }
.card__footer {
	padding: .875rem 1.25rem;
	border-top: 1px solid rgb(var(--line));
	background-color: rgb(var(--surface-2) / .6);
	border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* --- Encabezado de página ------------------------------------------------ */

.page-header {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
	.page-header {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 1.5rem;
	}
}

.page-header__eyebrow {
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgb(var(--brand-500));
}

.page-header__title {
	margin-top: .25rem;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -.02em;
	line-height: 1.2;
	color: rgb(var(--ink));
}

@media (min-width: 640px) {
	.page-header__title { font-size: 1.75rem; }
}

.page-header__description {
	margin-top: .375rem;
	max-width: 42rem;
	font-size: .8125rem;
	line-height: 1.5;
	color: rgb(var(--ink-muted));
}

.page-header__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
}

/* Migas de pan */
.breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .375rem;
	margin-bottom: .75rem;
	font-size: .75rem;
	color: rgb(var(--ink-muted));
}

.breadcrumbs a {
	color: rgb(var(--ink-muted));
	text-decoration: none;
	font-weight: 500;
}
.breadcrumbs a:hover { color: rgb(var(--brand-500)); }
.breadcrumbs__separator { color: rgb(var(--ink-subtle)); }
.breadcrumbs__current { color: rgb(var(--ink)); font-weight: 600; }

/* --- Tarjetas de indicador ---------------------------------------------- */

.kpi-card {
	display: flex;
	flex-direction: column;
	gap: .125rem;
	padding: .875rem 1rem;
	background-color: rgb(var(--surface));
	border: 1px solid rgb(var(--line));
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-xs);
	transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}

@media (min-width: 640px) {
	.kpi-card { padding: 1.125rem 1.25rem; }
}

a.kpi-card:hover {
	box-shadow: var(--shadow-md);
	border-color: rgb(var(--line-strong));
	transform: translateY(-1px);
}

.kpi-label {
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: rgb(var(--ink-muted));
}

.kpi-value {
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: -.02em;
	color: rgb(var(--ink));
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}

@media (min-width: 640px) { .kpi-value { font-size: 1.75rem; } }

.kpi-sub { font-size: .6875rem; color: rgb(var(--ink-muted)); }

@media (min-width: 640px) { .kpi-sub { font-size: .75rem; } }

.kpi-card__accent {
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 3px;
	border-start-start-radius: var(--radius-lg);
	border-end-start-radius: var(--radius-lg);
}

/* --- Tablas -------------------------------------------------------------- */

.table-shell {
	background-color: rgb(var(--surface));
	border: 1px solid rgb(var(--line));
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-xs);
	overflow: hidden;
}

.table-scroll { overflow-x: auto; }

.data-table,
.admin-table {
	width: 100%;
	border-collapse: collapse;
	text-align: left;
}

.data-table thead,
.admin-table thead {
	background-color: rgb(var(--surface-2));
}

.data-table th,
.admin-table th {
	padding: .75rem 1rem;
	border-bottom: 1px solid rgb(var(--line));
	font-size: .6875rem;
	font-weight: 700;
	letter-spacing: .05em;
	text-transform: uppercase;
	color: rgb(var(--ink-muted));
	white-space: nowrap;
}

.data-table td,
.admin-table td {
	padding: .75rem 1rem;
	border-bottom: 1px solid rgb(var(--line));
	font-size: .8125rem;
	color: rgb(var(--ink-2));
	vertical-align: middle;
}

.data-table tbody tr:last-child td,
.admin-table tbody tr:last-child td { border-bottom: none; }

.data-table tbody tr:hover,
.admin-table tbody tr:hover { background-color: rgb(var(--surface-2) / .7); }

.amount-right { text-align: right; font-variant-numeric: tabular-nums; }
.text-center { text-align: center; }

/* --- Muestras de color --------------------------------------------------- */

.appearance-swatch {
	width: 1.75rem;
	height: 1.75rem;
	border: 2px solid rgb(var(--surface));
	border-radius: var(--radius-full);
	box-shadow: 0 0 0 1px rgb(var(--line));
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease;
}

.appearance-swatch:hover {
	transform: scale(1.08);
	box-shadow: 0 0 0 2px rgb(var(--brand-500));
}

/* --- Badges -------------------------------------------------------------- */

.badge {
	display: inline-flex;
	align-items: center;
	gap: .3125rem;
	border-radius: var(--radius-full);
	padding: .1875rem .5rem;
	font-size: .6875rem;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

.badge--pending { background-color: rgb(var(--warning-soft)); color: rgb(var(--warning-ink)); }
.badge--confirmed { background-color: rgb(var(--success-soft)); color: rgb(var(--success-ink)); }
.badge--completed { background-color: rgb(var(--info-soft)); color: rgb(var(--info-ink)); }
.badge--cancelled { background-color: rgb(var(--danger-soft)); color: rgb(var(--danger-ink)); }
.badge--pending-payment { background-color: rgb(var(--warning-soft)); color: rgb(var(--warning-ink)); }
.badge--paid { background-color: rgb(var(--success-soft)); color: rgb(var(--success-ink)); }
.badge--unpaid { background-color: rgb(var(--danger-soft)); color: rgb(var(--danger-ink)); }
.badge--default { background-color: rgb(var(--surface-3)); color: rgb(var(--ink-muted)); }
.badge--neutral { background-color: rgb(var(--surface-2)); color: rgb(var(--ink-muted)); }
.badge--brand { background-color: rgb(var(--brand-500) / .12); color: rgb(var(--brand-600)); }

.badge-dot { width: .375rem; height: .375rem; border-radius: var(--radius-full); background: currentColor; }

/* --- Alertas ------------------------------------------------------------- */

.alert {
	display: flex;
	align-items: flex-start;
	gap: .625rem;
	border: 1px solid transparent;
	border-radius: var(--radius-md);
	padding: .75rem 1rem;
	font-size: .8125rem;
	line-height: 1.5;
}

.alert__icon { flex-shrink: 0; width: 1.125rem; height: 1.125rem; margin-top: .0625rem; }
.alert__title { font-weight: 700; }
.alert__body { min-width: 0; }

.alert--error { background-color: rgb(var(--danger-soft)); border-color: rgb(var(--danger) / .3); color: rgb(var(--danger-ink)); }
.alert--success { background-color: rgb(var(--success-soft)); border-color: rgb(var(--success) / .3); color: rgb(var(--success-ink)); }
.alert--info { background-color: rgb(var(--info-soft)); border-color: rgb(var(--info) / .3); color: rgb(var(--info-ink)); }
.alert--warning { background-color: rgb(var(--warning-soft)); border-color: rgb(var(--warning) / .3); color: rgb(var(--warning-ink)); }

/* --- Secciones ----------------------------------------------------------- */

.section-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-bottom: 1rem;
}

.section-title { font-size: 1.0625rem; font-weight: 700; color: rgb(var(--ink)); letter-spacing: -.01em; }
.section-sub { margin-top: .1875rem; font-size: .8125rem; color: rgb(var(--ink-muted)); }

.section-toggle {
	display: inline-grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	flex-shrink: 0;
	border: 1px solid rgb(var(--line));
	border-radius: var(--radius);
	background-color: rgb(var(--surface));
	color: rgb(var(--ink-muted));
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}

.section-toggle:hover { background-color: rgb(var(--surface-2)); color: rgb(var(--ink)); }
.section-toggle[aria-expanded="false"] svg { transform: rotate(-90deg); }
.section-toggle svg { transition: transform .2s ease; }

/* --------------------------------------------------------------------------
   5. Estados: vacío, carga y esqueleto
   -------------------------------------------------------------------------- */

.empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: .5rem;
	padding: 3rem 1.5rem;
	text-align: center;
	color: rgb(var(--ink-muted));
}

.empty-state svg { width: 2.75rem; height: 2.75rem; color: rgb(var(--ink-subtle)); margin-bottom: .25rem; }
.empty-state h3 { font-size: .9375rem; font-weight: 700; color: rgb(var(--ink)); }
.empty-state p { font-size: .8125rem; max-width: 26rem; margin: 0; }

/* Dentro de una tabla ancha el estado vacío se ancla al borde izquierdo
   para que siga siendo visible sin desplazar la tabla en horizontal. */
.data-table td > .empty-state,
.admin-table td > .empty-state {
	position: sticky;
	left: 0;
	width: min(100%, 22rem);
}

.skeleton {
	background: linear-gradient(
		90deg,
		rgb(var(--surface-2)) 25%,
		rgb(var(--surface-3) / .7) 37%,
		rgb(var(--surface-2)) 63%
	);
	background-size: 400% 100%;
	animation: skeleton-shimmer 1.4s ease infinite;
	border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
	0% { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

.loading-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: .625rem;
	padding: 2.5rem 1rem;
	font-size: .8125rem;
	color: rgb(var(--ink-muted));
}

.loading-row__spinner {
	width: 1rem;
	height: 1rem;
	border: 2px solid rgb(var(--line-strong));
	border-top-color: rgb(var(--brand-500));
	border-radius: var(--radius-full);
	animation: spin .7s linear infinite;
}

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

.surface-enter { animation: surface-enter .3s ease both; }

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

/* --------------------------------------------------------------------------
   6. Modales, dropdowns y notificaciones
   -------------------------------------------------------------------------- */

.modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 80;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
	background-color: rgb(15 23 42 / .55);
	backdrop-filter: blur(2px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .18s ease, visibility .18s ease;
}

@media (min-width: 640px) {
	.modal-overlay { align-items: center; padding: 1.5rem; }
}

.modal-overlay.is-open { opacity: 1; visibility: visible; }

.modal-dialog {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 32rem;
	max-height: 92vh;
	background-color: rgb(var(--surface));
	border: 1px solid rgb(var(--line));
	border-radius: var(--radius-lg) var(--radius-lg) 0 0;
	box-shadow: var(--shadow-xl);
	transform: translateY(12px);
	transition: transform .2s ease;
	overflow: hidden;
}

@media (min-width: 640px) {
	.modal-dialog { border-radius: var(--radius-lg); transform: translateY(0) scale(.98); }
	.modal-overlay.is-open .modal-dialog { transform: translateY(0) scale(1); }
}

.modal-dialog--sm { max-width: 26rem; }
.modal-dialog--lg { max-width: 44rem; }

.modal-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.125rem 1.25rem;
	border-bottom: 1px solid rgb(var(--line));
	flex-shrink: 0;
}

.modal-header__title { font-size: 1rem; font-weight: 700; color: rgb(var(--ink)); }
.modal-header__description { margin-top: .25rem; font-size: .8125rem; line-height: 1.5; color: rgb(var(--ink-muted)); }

.modal-body {
	padding: 1.25rem;
	overflow-y: auto;
	flex: 1;
	min-height: 0;
}

.modal-footer {
	display: flex;
	flex-direction: column-reverse;
	gap: .5rem;
	padding: 1rem 1.25rem;
	border-top: 1px solid rgb(var(--line));
	background-color: rgb(var(--surface-2) / .5);
	flex-shrink: 0;
}

@media (min-width: 480px) {
	.modal-footer { flex-direction: row; justify-content: flex-end; }
}

body.app-modal-open { overflow: hidden; }

/* --- Dropdown ------------------------------------------------------------ */

.dropdown { position: relative; }

.dropdown__menu {
	position: absolute;
	z-index: 70;
	top: calc(100% + .375rem);
	right: 0;
	min-width: 13rem;
	padding: .3125rem;
	background-color: rgb(var(--surface));
	border: 1px solid rgb(var(--line));
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	transform-origin: top right;
}

.dropdown__menu--left { right: auto; left: 0; transform-origin: top left; }
.dropdown__menu[hidden] { display: none; }

.dropdown__item {
	display: flex;
	align-items: center;
	gap: .5rem;
	width: 100%;
	padding: .5rem .625rem;
	border: none;
	border-radius: var(--radius-sm);
	background: none;
	color: rgb(var(--ink-2));
	font-size: .8125rem;
	font-weight: 500;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .12s ease, color .12s ease;
}

.dropdown__item:hover,
.dropdown__item:focus-visible { background-color: rgb(var(--surface-2)); color: rgb(var(--ink)); }
.dropdown__item--danger { color: rgb(var(--danger)); }
.dropdown__item--danger:hover { background-color: rgb(var(--danger-soft)); color: rgb(var(--danger-ink)); }
.dropdown__separator { height: 1px; margin: .3125rem .25rem; background-color: rgb(var(--line)); }
.dropdown__label { padding: .5rem .625rem .25rem; font-size: .6875rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgb(var(--ink-muted)); }

/* --- Notificaciones (toasts) --------------------------------------------- */

.toast-region {
	position: fixed;
	z-index: 90;
	right: 1rem;
	bottom: 1rem;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	width: min(24rem, calc(100vw - 2rem));
	pointer-events: none;
}

@media (min-width: 640px) {
	.toast-region { right: 1.5rem; bottom: 1.5rem; }
}

.toast {
	display: flex;
	align-items: flex-start;
	gap: .625rem;
	padding: .75rem .875rem;
	background-color: rgb(var(--surface));
	border: 1px solid rgb(var(--line));
	border-inline-start: 3px solid rgb(var(--brand-500));
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	pointer-events: auto;
	animation: toast-in .22s cubic-bezier(.4, 0, .2, 1) both;
}

.toast--success { border-inline-start-color: rgb(var(--success)); }
.toast--error { border-inline-start-color: rgb(var(--danger)); }
.toast--warning { border-inline-start-color: rgb(var(--warning)); }
.toast--info { border-inline-start-color: rgb(var(--info)); }

.toast__icon { flex-shrink: 0; width: 1.125rem; height: 1.125rem; margin-top: .0625rem; }
.toast__content { flex: 1; min-width: 0; }
.toast__title { font-size: .8125rem; font-weight: 700; color: rgb(var(--ink)); }
.toast__message { font-size: .75rem; line-height: 1.45; color: rgb(var(--ink-muted)); overflow-wrap: anywhere; }
.toast__close {
	flex-shrink: 0;
	border: none;
	background: none;
	padding: .125rem;
	color: rgb(var(--ink-subtle));
	cursor: pointer;
	border-radius: var(--radius-sm);
}
.toast__close:hover { color: rgb(var(--ink)); background-color: rgb(var(--surface-2)); }
.toast.is-leaving { animation: toast-out .18s ease forwards; }

@keyframes toast-in {
	from { opacity: 0; transform: translateY(10px) scale(.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
	to { opacity: 0; transform: translateX(12px); }
}

/* --------------------------------------------------------------------------
   7. Filtros, paginación y rango de fechas
   -------------------------------------------------------------------------- */

/* La barra de filtros usa flexbox con envoltura: los campos ocupan el ancho
   disponible y las acciones se alinean a la derecha, saltando de línea cuando
   no hay espacio. Así nunca se desborda ni se comprimen los controles. */
.filter-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: .875rem;
	padding: 1rem;
	background-color: rgb(var(--surface));
	border: 1px solid rgb(var(--line));
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow-xs);
}

.filter-bar .filter-group {
	display: flex;
	flex: 1 1 13rem;
	flex-direction: column;
	gap: .3125rem;
	min-width: 0;
	max-width: 22rem;
}

.filter-bar .filter-group--range { justify-content: flex-end; }
.filter-bar .filter-group--range .date-range-picker { width: 100%; }
.filter-bar .filter-group--span2 { flex: 1 1 24rem; max-width: none; }
.filter-bar .filter-group--inline { flex-direction: row; flex-wrap: wrap; align-items: center; }

.filter-bar .filter-actions {
	flex: 0 0 auto;
	margin-left: auto;
}

@media (max-width: 639px) {
	.filter-bar .filter-actions { flex: 1 1 100%; }
	.filter-bar .filter-actions .action-button { flex: 1; }
}

.filter-actions { display: flex; align-items: flex-end; gap: .5rem; flex-wrap: wrap; }

.filter-indicators { display: flex; flex-wrap: wrap; gap: .375rem; margin-bottom: .625rem; }
.filter-indicators:empty { display: none; }

.filter-indicator {
	display: inline-flex;
	align-items: center;
	gap: .375rem;
	background-color: rgb(var(--brand-500) / .1);
	border: 1px solid rgb(var(--brand-500) / .25);
	border-radius: var(--radius-full);
	padding: .1875rem .5rem .1875rem .625rem;
	font-size: .6875rem;
	color: rgb(var(--brand-600));
}

.dark .filter-indicator { color: rgb(var(--brand-300)); }

.filter-indicator .filter-remove {
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	font-size: .875rem;
	line-height: 1;
	padding: 0 .125rem;
	border-radius: var(--radius-sm);
}
.filter-indicator .filter-remove:hover { color: rgb(var(--danger)); }

.results-count { font-size: .75rem; color: rgb(var(--ink-muted)); margin-bottom: .625rem; }
.results-count .count-value { font-weight: 700; color: rgb(var(--ink)); font-variant-numeric: tabular-nums; }

.pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid rgb(var(--line));
}

.pagination-info { font-size: .75rem; color: rgb(var(--ink-muted)); font-variant-numeric: tabular-nums; }
.pagination-controls { display: flex; align-items: center; gap: .375rem; flex-wrap: wrap; }
.pagination-page-info { font-size: .75rem; color: rgb(var(--ink-muted)); padding-inline: .25rem; white-space: nowrap; }

.pagination-btn {
	background-color: rgb(var(--surface));
	border: 1px solid rgb(var(--line));
	border-radius: var(--radius);
	padding: .375rem .625rem;
	font-size: .75rem;
	color: rgb(var(--ink-2));
	cursor: pointer;
	min-width: 2.125rem;
	text-align: center;
	transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}

.pagination-btn:hover:not(:disabled) { background-color: rgb(var(--surface-2)); border-color: rgb(var(--brand-500)); color: rgb(var(--brand-600)); }
.pagination-btn:disabled { opacity: .4; cursor: not-allowed; }
.pagination-btn.active { background-color: rgb(var(--brand-500)); border-color: rgb(var(--brand-500)); color: #fff; }

.pagination-page-select {
	background-color: rgb(var(--surface));
	border: 1px solid rgb(var(--line));
	border-radius: var(--radius);
	padding: .375rem .5rem;
	font-size: .75rem;
	color: rgb(var(--ink-2));
	cursor: pointer;
	min-width: 4.25rem;
}

/* --- Selector de rango de fechas ----------------------------------------- */

.date-range-picker {
	position: relative;
	display: flex;
	align-items: center;
	gap: .5rem;
	border: 1px solid rgb(var(--line));
	border-radius: var(--radius);
	background-color: rgb(var(--surface));
	padding: .5rem .75rem;
	min-height: 2.625rem;
	font-size: .8125rem;
	color: rgb(var(--ink));
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.date-range-picker:hover { border-color: rgb(var(--brand-500)); }
.date-range-picker:focus-within { border-color: rgb(var(--brand-500)); box-shadow: 0 0 0 3px rgb(var(--brand-500) / .16); outline: none; }
.date-range-picker.has-selection { border-color: rgb(var(--brand-500)); }
.date-range-picker.has-selection .date-range-label { color: rgb(var(--brand-600)); font-weight: 600; }

.date-range-icon { width: 1rem; height: 1rem; color: rgb(var(--ink-muted)); flex-shrink: 0; }
.date-range-label { font-size: .8125rem; color: rgb(var(--ink-muted)); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.date-range-label.has-selection { color: rgb(var(--ink)); font-weight: 600; }
.date-range-separator { color: rgb(var(--ink-subtle)); font-size: .6875rem; margin-inline: .25rem; }

.date-range-popover {
	position: absolute;
	z-index: 60;
	top: calc(100% + .5rem);
	left: 0;
	width: max-content;
	min-width: 0;
	max-width: min(24rem, calc(100vw - 2rem));
	background-color: rgb(var(--surface));
	border: 1px solid rgb(var(--line));
	border-radius: var(--radius-md);
	box-shadow: var(--shadow-lg);
	padding: .75rem;
	display: none;
}

/* En pantallas pequeñas el panel se ajusta al ancho del campo para no
   provocar scroll horizontal en la página. */
@media (max-width: 639px) {
	.date-range-popover {
		left: 0;
		right: 0;
		width: auto;
		max-width: none;
	}
	.date-range-calendar { grid-template-columns: 1fr; }
}

.date-range-popover.open { display: block; }
.date-range-calendar { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.calendar-month { padding: .375rem; }
.calendar-month-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .375rem; }
.calendar-month-title { font-size: .75rem; font-weight: 700; color: rgb(var(--ink)); }
.calendar-nav-btn { background: none; border: none; cursor: pointer; padding: .25rem; border-radius: var(--radius-sm); color: rgb(var(--ink-muted)); font-size: 1rem; line-height: 1; }
.calendar-nav-btn:hover { background-color: rgb(var(--surface-2)); color: rgb(var(--ink)); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.calendar-weekday { font-size: .625rem; font-weight: 700; text-transform: uppercase; color: rgb(var(--ink-subtle)); text-align: center; padding: .25rem .125rem; }
.calendar-day { background: none; border: none; border-radius: var(--radius-sm); padding: .375rem .125rem; font-size: .6875rem; color: rgb(var(--ink-2)); cursor: pointer; text-align: center; line-height: 1; }
.calendar-day:hover { background-color: rgb(var(--surface-2)); }
.calendar-day.today { font-weight: 700; color: rgb(var(--brand-600)); }
.calendar-day.selected { background-color: rgb(var(--brand-500)); color: #fff; }
.calendar-day.in-range { background-color: rgb(var(--brand-500) / .12); }
.calendar-day.in-range.start { border-start-start-radius: var(--radius-sm); border-end-start-radius: var(--radius-sm); }
.calendar-day.in-range.end { border-start-end-radius: var(--radius-sm); border-end-end-radius: var(--radius-sm); }
.calendar-day.other-month { color: rgb(var(--ink-subtle)); }
.calendar-day.disabled { color: rgb(var(--line-strong)); cursor: not-allowed; }

.date-range-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid rgb(var(--line)); flex-wrap: wrap; }
.date-range-presets { display: flex; flex-wrap: wrap; gap: .25rem; }
.date-range-preset { background: none; border: 1px solid rgb(var(--line)); border-radius: var(--radius-sm); padding: .25rem .5rem; font-size: .6875rem; color: rgb(var(--ink-2)); cursor: pointer; }
.date-range-preset:hover { background-color: rgb(var(--surface-2)); border-color: rgb(var(--brand-500)); color: rgb(var(--brand-600)); }
.date-range-preset.active { background-color: rgb(var(--brand-500) / .12); border-color: rgb(var(--brand-500)); color: rgb(var(--brand-600)); font-weight: 600; }
.date-range-actions { display: flex; gap: .375rem; }

.date-range-btn-clear,
.date-range-btn-apply { border: none; border-radius: var(--radius-sm); padding: .375rem .75rem; font-size: .75rem; font-weight: 600; cursor: pointer; }
.date-range-btn-clear { background-color: rgb(var(--surface-2)); color: rgb(var(--ink-2)); }
.date-range-btn-clear:hover { background-color: rgb(var(--surface-3)); }
.date-range-btn-apply { background-color: rgb(var(--brand-500)); color: #fff; }
.date-range-btn-apply:hover { background-color: rgb(var(--brand-600)); }
.date-range-inputs { display: none; }
.date-range-inputs .field-control { min-height: auto; padding: .25rem .5rem; font-size: .75rem; }

/* --------------------------------------------------------------------------
   Preferencias de movimiento
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}

/* --------------------------------------------------------------------------
   Impresión: el contenido debe leerse sin navegación ni cromo
   -------------------------------------------------------------------------- */

@media print {
	.app-sidebar,
	.app-topbar,
	.app-overlay,
	.toast-region,
	.app-footer { display: none !important; }
	.app-shell__main { margin-inline-start: 0 !important; }
	.app-content { padding: 0 !important; }
}
