/*
 * Reproductor de tutoriales animados (ver .claude/skills/tutorialdescripcion/SKILL.md).
 *
 * Un tutorial es un HTML con la maqueta del dispositivo (.tut-mock), los pasos
 * (article.step con data-play) y el Recuerda (aside.remember). player.js monta el
 * reproductor encima; sin JS se leen los pasos como lista.
 */

:root {
	--bg: #f5f7fa;
	--surface: #fff;
	--text: #1e293b;
	--muted: #64748b;
	--line: #e5e7eb;
	--line-2: #cbd5e1;
	--soft: #f1f5f9;
	--brand: #006590;
	--brand-700: #004e70;
	--brand-50: #e0ebf3;
	--ok: #198754;
	--ok-50: #e8f5ee;
	--ink: #0b0f14;

	/* App (GuardiscopioApp/lib/colors/color_schemes.dart) */
	--app-primary: #006590;
	--app-primary-container: #c8e6ff;
	--app-on-primary-container: #001e2f;

	/* Colores de bloqueo por defecto de un grupo (groups/signals.py) */
	--blk-verde: #5bd25b;
	--blk-negro: #464040;
	--blk-gris: #b5b1b1;
	--blk-rojo: #d9564a;
	--blk-amarillo: #f2cd5c;

	/* Colores de puesto de ejemplo (paleta del logo) */
	--pos-1: #0093a3;
	--pos-2: #772965;
	--pos-3: #f95548;
}

html,
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
	box-sizing: border-box;
}

[hidden] {
	display: none !important;
}

/* ------------------------------------------------------------------ */
/* Sin JS: los pasos como lista legible                                */
/* ------------------------------------------------------------------ */

.page {
	margin: 0 auto;
	max-width: 760px;
	padding: 1.25rem 0 2rem;
}

.step {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	margin: 0 0 0.75rem;
	padding: 0.9rem 1.1rem;
}

.step h2 {
	color: var(--brand);
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	margin: 0 0 0.35rem;
	text-transform: uppercase;
}

.step p {
	margin: 0;
}

.remember {
	background: #fff7ed;
	border: 1px solid #fdba74;
	border-radius: 12px;
	color: #7c2d12;
	padding: 0.9rem 1.1rem;
}

.remember strong {
	display: block;
	margin-bottom: 0.25rem;
}

.remember p {
	margin: 0;
}

/* Maqueta oculta hasta que el reproductor la coloca */
.tut-mock {
	display: none;
}

/* Paso 0: esquema de la idea (también lo usan las stories/hilos) */
.flow {
	align-items: stretch;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
}

.flow-box {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	display: grid;
	gap: 2px;
	min-width: 130px;
	padding: 0.6rem 0.8rem;
	text-align: center;
}

.flow-box strong {
	display: block;
}

.flow-box .dot {
	border-radius: 50%;
	display: inline-block;
	height: 14px;
	margin: 0 auto 4px;
	width: 14px;
}

.flow-arrow {
	align-self: center;
	color: var(--muted);
	font-size: 1.2rem;
}

/* ------------------------------------------------------------------ */
/* Reproductor                                                         */
/* ------------------------------------------------------------------ */

body.tut-js .tut-mock {
	display: block;
}

.tut-player {
	margin: 0 auto;
	max-width: 980px;
	padding: 12px 12px 0;
}

.tut-stage {
	border-radius: 18px;
	overflow: hidden;
	position: relative;
}

.tut-device {
	left: 0;
	position: absolute;
	top: 0;
	transform-origin: 0 0;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tut-instant,
.tut-instant * {
	animation-duration: 0s !important;
	transition: none !important;
}

/* Escena del Paso 0 encima del dispositivo */
.tut-scene {
	align-items: center;
	background: rgba(245, 247, 250, 0.9);
	backdrop-filter: blur(3px);
	display: flex;
	inset: 0;
	justify-content: center;
	opacity: 0;
	padding: 16px;
	pointer-events: none;
	position: absolute;
	transition: opacity 0.4s;
	z-index: 30;
}

.tut-scene.is-on {
	opacity: 1;
}

.tut-scene .wire {
	max-width: 640px;
	transform: translateY(8px);
	transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tut-scene.is-on .wire {
	transform: none;
}

/* Pie: número de paso, texto y controles */
.tut-caption {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 14px;
	margin-top: 12px;
	padding: 12px 16px 14px;
	position: relative;
}

.tut-progress {
	background: var(--line);
	border-radius: 2px;
	height: 3px;
	left: 14px;
	overflow: hidden;
	position: absolute;
	right: 14px;
	top: -1px;
}

.tut-progress i {
	background: var(--brand);
	display: block;
	height: 100%;
	transition: width 0.4s;
	width: 0;
}

.tut-cap-head {
	align-items: center;
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

.tut-stepno {
	color: var(--brand);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tut-controls {
	display: flex;
	gap: 6px;
}

.tut-controls button {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--text);
	cursor: pointer;
	font: inherit;
	font-size: 14px;
	min-width: 36px;
	padding: 5px 10px;
}

.tut-controls button:hover:not(:disabled) {
	border-color: var(--brand);
	color: var(--brand);
}

.tut-controls button:disabled {
	cursor: default;
	opacity: 0.4;
}

.tut-cap-text {
	font-size: 16px;
	margin: 6px 0 0;
	min-height: 3em;
	transition: opacity 0.2s;
}

.tut-cap-text.is-remember {
	color: #7c2d12;
}

/* Lista de pasos como índice clicable */
body.tut-js .page {
	padding-top: 12px;
}

body.tut-js .step {
	align-items: baseline;
	cursor: pointer;
	display: flex;
	gap: 10px;
	margin-bottom: 6px;
	padding: 0.6rem 0.9rem;
	transition: border-color 0.2s, background 0.2s;
}

body.tut-js .step h2 {
	flex: none;
	margin: 0;
	min-width: 4.6em;
}

body.tut-js .step .wire {
	display: none;
}

body.tut-js .step:hover {
	border-color: var(--line-2);
}

body.tut-js .step.is-current {
	background: var(--brand-50);
	border-color: var(--brand);
}

/* ------------------------------------------------------------------ */
/* Dedo                                                                */
/* ------------------------------------------------------------------ */

.tut-finger {
	background: rgba(15, 23, 42, 0.28);
	border: 2px solid rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	height: 34px;
	left: 0;
	margin: -17px 0 0 -17px;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	top: 0;
	transition: left 0.55s cubic-bezier(0.3, 0.7, 0.2, 1), top 0.55s cubic-bezier(0.3, 0.7, 0.2, 1),
		opacity 0.25s, transform 0.12s;
	width: 34px;
	z-index: 40;
}

.tut-finger.is-on {
	opacity: 1;
}

.tut-finger.is-press {
	transform: scale(0.8);
}

.tut-mock[data-device="browser"] .tut-finger {
	border-radius: 50% 50% 50% 4px;
	height: 26px;
	margin: -4px 0 0 -4px;
	width: 26px;
}

.tut-ripple {
	animation: tut-ripple 0.55s ease-out forwards;
	border: 2px solid var(--brand);
	border-radius: 50%;
	height: 34px;
	margin: -17px 0 0 -17px;
	pointer-events: none;
	position: absolute;
	width: 34px;
	z-index: 39;
}

@keyframes tut-ripple {
	from {
		opacity: 0.9;
		transform: scale(0.6);
	}

	to {
		opacity: 0;
		transform: scale(2.2);
	}
}

/* Aro que se llena durante "hold id [ms]" (mantener pulsado) */
.tut-hold-ring {
	height: 40px;
	margin: -20px 0 0 -20px;
	pointer-events: none;
	position: absolute;
	width: 40px;
	z-index: 41;
}

.tut-hold-ring svg {
	height: 100%;
	transform: rotate(-90deg);
	width: 100%;
}

.tut-hold-ring circle {
	animation: tut-hold-fill linear forwards;
	fill: none;
	stroke: var(--brand);
	stroke-dasharray: 107;
	stroke-dashoffset: 107;
	stroke-linecap: round;
	stroke-width: 3;
}

@keyframes tut-hold-fill {
	to {
		stroke-dashoffset: 0;
	}
}

/* Elemento que se está arrastrando durante "drag id destino" */
.tut-drag-lift {
	box-shadow: 0 12px 26px -10px rgba(15, 23, 42, 0.4);
	position: relative;
	transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.2s;
	z-index: 45;
}

/* Resaltado de lo que importa */
.is-marked {
	border-radius: 10px;
	box-shadow: 0 0 0 3px var(--surface), 0 0 0 6px var(--blk-rojo);
	transition: box-shadow 0.3s;
}

/* Al exportar (PDF/GIF, still() en player.js) html2canvas pinta mal esa sombra doble:
   el mismo aro, como borde de un ::after. */
.tut-exporting .is-marked {
	box-shadow: none;
	position: relative;
}

.tut-exporting .is-marked::after {
	border: 3px solid var(--blk-rojo);
	border-radius: 13px;
	bottom: -6px;
	content: "";
	left: -6px;
	pointer-events: none;
	position: absolute;
	right: -6px;
	top: -6px;
}

/* ------------------------------------------------------------------ */
/* Marcos de dispositivo                                               */
/* ------------------------------------------------------------------ */

.tut-mock[data-device="phone"] {
	background: var(--ink);
	border-radius: 46px;
	box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.45);
	height: 650px;
	padding: 11px;
	position: relative;
	width: 320px;
}

.tut-mock[data-device="phone"] .dev-screen {
	background: var(--bg);
	border-radius: 36px;
	inset: 11px;
	overflow: hidden;
	position: absolute;
}

.dev-status {
	align-items: center;
	background: var(--surface);
	display: flex;
	font-size: 12px;
	font-weight: 600;
	height: 32px;
	justify-content: space-between;
	padding: 0 24px;
	position: relative;
	z-index: 5;
}

.dev-status::after {
	background: var(--ink);
	border-radius: 12px;
	content: "";
	height: 20px;
	left: 50%;
	margin-left: -42px;
	position: absolute;
	top: 7px;
	width: 84px;
}

.tut-mock[data-device="browser"] {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.35);
	height: 600px;
	overflow: hidden;
	position: relative;
	width: 960px;
}

.dev-chrome {
	align-items: center;
	background: #eef1f5;
	border-bottom: 1px solid var(--line);
	display: flex;
	gap: 7px;
	height: 38px;
	padding: 0 14px;
}

.dev-chrome i {
	background: #d4d9e0;
	border-radius: 50%;
	display: block;
	height: 11px;
	width: 11px;
}

.dev-url {
	background: var(--surface);
	border-radius: 8px;
	color: var(--muted);
	font-size: 12px;
	margin-left: 14px;
	padding: 4px 14px;
	width: 380px;
}

.tut-mock[data-device="browser"] .dev-screen {
	bottom: 0;
	left: 0;
	overflow: hidden;
	position: absolute;
	right: 0;
	top: 38px;
}

/* ------------------------------------------------------------------ */
/* Vistas y capas                                                      */
/* ------------------------------------------------------------------ */

.view {
	background: var(--bg);
	display: flex;
	flex-direction: column;
	left: 0;
	position: absolute;
	right: 0;
	transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.3s;
}

.tut-mock[data-device="phone"] .view {
	bottom: 62px;
	top: 32px;
}

.tut-mock[data-device="browser"] .view {
	bottom: 0;
	top: 56px;
}

/* Pantalla de la app sin barra inferior (Perfil, inicio de sesión, páginas web
   dentro de la app): tapa la .m-tabbar */
.tut-mock[data-device="phone"] .view.m-full {
	bottom: 0;
	z-index: 11;
}

/* Página de la web que no es de Guardiscopio (p. ej. el correo): tapa la .w-nav */
.tut-mock[data-device="browser"] .view.w-full {
	top: 0;
	z-index: 11;
}

.view.is-before {
	opacity: 0;
	transform: translateX(-30%);
}

.view.is-after {
	opacity: 0;
	transform: translateX(30%);
}

.m-scrim {
	background: rgba(15, 23, 42, 0.35);
	inset: 0;
	opacity: 0;
	pointer-events: none;
	position: absolute;
	transition: opacity 0.3s;
	z-index: 20;
}

.m-scrim.is-open {
	opacity: 1;
}

.m-sheet {
	background: var(--surface);
	border-radius: 24px 24px 0 0;
	bottom: 0;
	display: grid;
	gap: 10px;
	left: 0;
	padding: 8px 16px 22px;
	position: absolute;
	right: 0;
	transform: translateY(105%);
	transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
	z-index: 21;
}

.m-sheet.is-open {
	transform: none;
}

.m-grip {
	background: #c4c9d0;
	border-radius: 2px;
	height: 4px;
	justify-self: center;
	margin: 6px 0 4px;
	width: 34px;
}

.m-dialog {
	background: var(--surface);
	border-radius: 8px;
	box-shadow: 0 24px 48px -12px rgba(15, 23, 42, 0.4);
	left: 50%;
	opacity: 0;
	padding: 18px 22px 22px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -46%) scale(0.97);
	transition: opacity 0.25s, transform 0.3s;
	z-index: 21;
}

.m-dialog.is-open {
	opacity: 1;
	transform: translate(-50%, -50%);
}

.m-toast {
	background: #1f2937;
	border-radius: 10px;
	bottom: 78px;
	color: #fff;
	font-size: 13px;
	left: 50%;
	opacity: 0;
	padding: 10px 16px;
	position: absolute;
	transform: translate(-50%, 10px);
	transition: opacity 0.25s, transform 0.25s;
	white-space: nowrap;
	z-index: 25;
}

.m-toast.is-ok {
	background: var(--ok);
}

.m-toast.is-open {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ------------------------------------------------------------------ */
/* Piezas de maqueta                                                   */
/* ------------------------------------------------------------------ */

.i {
	fill: none;
	flex: none;
	height: 20px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 2;
	width: 20px;
}

.m-appbar {
	align-items: center;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	display: flex;
	flex: none;
	font-size: 17px;
	font-weight: 700;
	gap: 8px;
	height: 52px;
	padding: 0 16px;
}

.m-appbar .m-spacer {
	flex: 1;
}

.m-content {
	display: grid;
	flex: 1;
	gap: 10px;
	align-content: start;
	overflow: hidden;
	padding: 12px;
}

.m-muted {
	color: var(--muted);
	font-size: 12px;
}

.m-label {
	color: var(--muted);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.m-card {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 12px;
	padding: 10px 12px;
}

/* Barra inferior de la app */
.m-tabbar {
	background: var(--surface);
	border-top: 1px solid var(--line);
	bottom: 0;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	height: 62px;
	left: 0;
	padding: 0 10px;
	position: absolute;
	right: 0;
	z-index: 10;
}

.m-tabbar span {
	align-content: center;
	color: #6b7280;
	display: grid;
	font-size: 10px;
	gap: 3px;
	justify-items: center;
}

.m-tabbar span.is-on {
	color: #000;
	font-weight: 600;
}

/* Botones */
.m-btn {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 14px;
	font-weight: 600;
	gap: 8px;
	justify-content: center;
	padding: 9px 16px;
}

.m-btn--tonal {
	background: var(--app-primary-container);
	color: var(--app-on-primary-container);
}

.m-btn--outline {
	border: 1px solid var(--line-2);
	color: var(--app-primary);
}

.m-btn--primary {
	background: var(--brand);
	color: #fff;
}

.m-btn--block {
	width: 100%;
}

.m-btn small {
	color: var(--muted);
	display: block;
	font-size: 11px;
	font-style: italic;
	font-weight: 400;
}

.m-circle {
	border-radius: 50%;
	display: inline-block;
	flex: none;
	height: 46px;
	width: 46px;
}

/* Calendario mensual */
.m-month {
	display: grid;
	gap: 3px;
	grid-template-columns: repeat(7, 1fr);
}

.m-month .m-dow {
	color: var(--muted);
	font-size: 11px;
	text-align: center;
}

.m-day {
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 7px;
	font-size: 11px;
	height: 58px;
	padding: 3px 4px;
	position: relative;
}

.m-day.is-out {
	background: transparent;
	border-color: transparent;
	color: #b0b8c4;
}

/* Día marcado como elegido dentro de un selector de fechas (p. ej. solicitar-vacaciones). */
.m-day.is-on {
	background: var(--app-primary-container);
	border-color: var(--app-primary);
}

.m-day b {
	font-weight: 600;
}

.m-ev {
	border-radius: 4px;
	color: #fff;
	display: block;
	font-size: 9px;
	font-weight: 700;
	height: 14px;
	line-height: 14px;
	margin-top: 3px;
	overflow: hidden;
	padding: 0 4px;
	white-space: nowrap;
}

.m-ev.is-new {
	animation: m-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes m-pop {
	from {
		opacity: 0;
		transform: scale(0.4);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Barra de navegación de la web (blog/templates/blog/navbar.html) */
.w-nav {
	align-items: center;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	display: flex;
	gap: 6px;
	height: 56px;
	padding: 0 20px;
}

.w-brand {
	align-items: center;
	display: flex;
	font-weight: 800;
	gap: 8px;
	margin-right: 18px;
}

.w-logo {
	align-items: center;
	background: #000;
	border-radius: 8px;
	color: #fff;
	display: grid;
	font-size: 11px;
	font-weight: 800;
	height: 28px;
	justify-items: center;
	width: 28px;
}

.w-link {
	align-items: center;
	border-radius: 8px;
	color: #475569;
	display: flex;
	font-size: 14px;
	gap: 6px;
	padding: 7px 10px;
}

.w-link.is-on {
	background: var(--brand-50);
	color: var(--brand);
	font-weight: 600;
}

.w-avatar {
	align-items: center;
	background: var(--pos-1);
	border-radius: 50%;
	color: #fff;
	display: grid;
	font-size: 13px;
	font-weight: 700;
	height: 32px;
	justify-items: center;
	margin-left: auto;
	width: 32px;
}

/* Menú desplegable de la foto en la barra de la web (open/close) */
.w-menu {
	background: var(--surface);
	border-radius: 10px;
	box-shadow: 0 12px 32px -8px rgba(15, 23, 42, 0.3);
	display: grid;
	min-width: 210px;
	opacity: 0;
	padding: 6px 0;
	pointer-events: none;
	position: absolute;
	right: 14px;
	top: 52px;
	transform: translateY(-6px);
	transition: opacity 0.2s, transform 0.25s;
	z-index: 21;
}

.w-menu.is-open {
	opacity: 1;
	transform: none;
}

.w-menu-item {
	align-items: center;
	display: flex;
	font-size: 14px;
	gap: 10px;
	padding: 9px 16px;
}

.w-menu-item .i {
	opacity: 0.5;
}

.w-menu-item.is-danger {
	color: #dc3545;
}

.w-menu-item.is-danger .i {
	opacity: 1;
}

.w-menu hr {
	border: 0;
	border-top: 1px solid var(--line);
	margin: 4px 0;
}

/* Formularios de páginas de servidor (crispy forms) */
.w-field {
	display: grid;
	gap: 6px;
}

.w-field label {
	font-size: 14px;
	font-weight: 600;
}

.w-input {
	background: var(--surface);
	border: 1px solid var(--line-2);
	border-radius: 6px;
	color: var(--text);
	font-size: 14px;
	min-height: 36px;
	padding: 8px 12px;
}

.w-btn.w-btn--outline-info {
	border-color: #17a2b8;
	color: #17a2b8;
}

.w-alert.w-alert--info {
	background: #e6f4fb;
	border-color: #b6e0f3;
	color: #055160;
}

/* Calendario personal de la web (frontend/components/myCalendarNew) */
.w-cal-layout {
	display: grid;
	flex: 1;
	gap: 16px;
	grid-template-columns: 190px 1fr;
	padding: 16px;
}

.w-panel {
	background: #f0f0f0;
	border-radius: 6px;
	display: grid;
	align-content: start;
	gap: 8px;
	padding: 10px 8px;
}

.w-panel-head {
	align-items: center;
	display: flex;
	font-size: 19px;
	gap: 6px;
	justify-content: center;
	padding: 2px 0 4px;
}

.w-panel-head .i {
	color: #0288d1;
}

.w-period {
	background: var(--surface);
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
	display: grid;
	gap: 6px;
	padding: 10px 12px;
	position: relative;
	transition: background 0.3s, color 0.3s;
}

.w-period strong {
	font-size: 14px;
}

.w-chip {
	background: #e7e9ec;
	border-radius: 16px;
	color: var(--text);
	font-size: 13px;
	justify-self: start;
	padding: 4px 12px;
}

.w-period .w-dots,
.w-period .w-x {
	display: none;
}

.w-period.is-selected {
	background: var(--brand);
	color: #fff;
}

.w-period.is-selected .w-dots {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.w-period.is-selected .w-x {
	display: block;
	position: absolute;
	right: 8px;
	top: 8px;
}

.w-dot {
	border-radius: 50%;
	color: #fff;
	display: grid;
	font-size: 12px;
	font-weight: 600;
	height: 26px;
	justify-items: center;
	align-content: center;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
	width: 26px;
}

.w-calcard {
	background: var(--surface);
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
	display: flex;
	flex-direction: column;
	padding: 12px 14px;
}

.w-toolbar {
	align-items: center;
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}

.w-toolbar h3 {
	font-size: 20px;
	margin: 0;
}

.w-toolbar .m-btn {
	padding: 5px 12px;
}

.w-month {
	border-left: 1px solid var(--line);
	border-top: 1px solid var(--line);
	display: grid;
	grid-template-columns: repeat(7, 1fr);
}

.w-month > span {
	border-bottom: 1px solid var(--line);
	border-right: 1px solid var(--line);
	font-size: 12px;
	height: 76px;
	padding: 4px 6px;
	position: relative;
	text-align: right;
}

.w-month > span.w-dow {
	color: var(--muted);
	font-weight: 600;
	height: auto;
	padding: 6px;
	text-align: center;
}

.w-month > span.is-out {
	color: #b0b8c4;
}

.w-month .m-ev {
	font-size: 11px;
	height: 18px;
	line-height: 18px;
	text-align: left;
}

/* Páginas de servidor de la web (Bootstrap + Volt): aviso, botones y tabla */
.w-alert {
	background: #fff8e1;
	border: 1px solid #ffe7a3;
	border-radius: 8px;
	color: #664d03;
	font-size: 14px;
	padding: 12px 16px;
}

.w-btn {
	align-items: center;
	border: 1px solid transparent;
	border-radius: 6px;
	display: inline-flex;
	font-size: 14px;
	font-weight: 600;
	gap: 6px;
	justify-content: center;
	padding: 7px 14px;
	white-space: nowrap;
}

.w-btn--ok {
	background: var(--ok);
	color: #fff;
}

/* btn-danger / btn-warning de Bootstrap (optimizer/templates/optimizer/calculate.html:
   Borrar TODO, Borrar pre-establecidos). */
.w-btn--danger {
	background: #dc3545;
	color: #fff;
}

.w-btn--warn {
	background: #ffc107;
	color: #1f2937;
}

/* btn-secondary de blog/static/blog/main.css */
.w-btn--grey {
	background: #b5b1b1;
	border-color: #464040;
	color: #1f2937;
	font-size: 13px;
	padding: 5px 12px;
}

/* Chip de vista seleccionada (Totales/Pendientes/Asignados de ViewStatusChips.js y
   similares): botón normal que pasa a resaltado al pulsarlo. */
.w-btn.is-on {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

.w-table {
	border-collapse: collapse;
	font-size: 14px;
	width: 100%;
}

.w-table th {
	border-bottom: 1px solid var(--line-2);
	color: var(--muted);
	font-size: 12px;
	font-weight: 600;
	padding: 8px 10px;
	text-align: left;
}

.w-table td {
	border-bottom: 1px solid var(--line);
	padding: 8px 10px;
}

/* Celda de tabla marcada como seleccionada (p. ej. arrastrar días para una solicitud). */
.w-table td.is-on {
	background: var(--brand-50);
	color: var(--brand-700);
	font-weight: 600;
}

/* Selector de fechas de los formularios de la web (bootstrap-datepicker): .w-menu.w-dp, open/close */
.w-menu.w-dp {
	gap: 4px;
	min-width: 0;
	padding: 8px 10px;
}

.w-dp-title {
	font-size: 13px;
	padding: 2px 0 4px;
	text-align: center;
}

.w-dp-grid {
	display: grid;
	font-size: 12px;
	gap: 2px;
	grid-template-columns: repeat(7, 26px);
	text-align: center;
}

.w-dp-grid > span {
	border-radius: 4px;
	line-height: 24px;
}

.w-dp-grid > .w-dp-dow {
	color: var(--muted);
	font-weight: 600;
}

.w-dp-grid > .is-on {
	background: var(--brand);
	color: #fff;
}

/* Lista arrastrable de Preferencias del grupo (orden = prioridad). El orden visual lo
   controlan las clases .w-prio-pos-N (una por tarjeta); reordenar es quitar/poner esas
   clases entre tarjetas. */
.w-prio-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.w-prio-item {
	align-items: center;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: 10px;
	display: flex;
	gap: 10px;
	padding: 10px 12px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.w-prio-item.is-dragging {
	box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
	transform: scale(1.02);
}

.w-prio-item .w-prio-grip {
	color: var(--muted);
}

.w-prio-pos-1 {
	order: 1;
}

.w-prio-pos-2 {
	order: 2;
}

.w-prio-pos-3 {
	order: 3;
}

/* Casilla para activar/desactivar una preferencia dentro de .w-prio-item
   (groups/templates/groups/group_preferences.html, checkbox activate_{{ pref.id }}). */
.w-check {
	align-items: center;
	border: 2px solid var(--line-2);
	border-radius: 4px;
	color: transparent;
	display: inline-flex;
	flex: none;
	height: 18px;
	justify-content: center;
	width: 18px;
}

.w-check .i {
	height: 12px;
	width: 12px;
}

.w-check.is-on {
	background: var(--brand);
	border-color: var(--brand);
	color: #fff;
}

/* Círculo seleccionable de día o de tipo de bloqueo en el formulario de bloqueos
   recurrentes (frontend/components/recurrentConstraint/recurrents.js, OptionCreator). */
.w-pick {
	align-items: center;
	background: #fff;
	border: 2px solid var(--line-2);
	border-radius: 50%;
	color: var(--text);
	display: inline-flex;
	font-size: 12px;
	font-weight: 600;
	height: 30px;
	justify-content: center;
	width: 30px;
}

.w-pick.is-on {
	border-color: var(--brand);
	box-shadow: 0 0 0 2px var(--brand);
}

/* Chip de filtro seleccionable (PositionCategoryChips.js: Todos / tipo de puesto).
   Mismo .w-chip que ya se usa como etiqueta de color, con un estado activo. */
.w-chip.is-on {
	background: var(--brand);
	color: #fff;
}

/* Pestañas de groups/templates/groups/menu/group_statistics_new.html (Estadísticas del grupo). */
.w-tabs {
	border-bottom: 1px solid var(--line-2);
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.w-tab {
	border-bottom: 2px solid transparent;
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	padding: 8px 12px;
}

.w-tab.is-on {
	border-color: var(--brand);
	color: var(--brand);
}

/* Fila de pestañas larga (p. ej. las 8 de Estadísticas de la organización): en una sola
   línea, como en la web real, en vez de partirse en dos. */
.w-tabs--tight {
	flex-wrap: nowrap;
	gap: 0;
}

.w-tabs--tight .w-tab {
	font-size: 12px;
	padding: 8px 7px;
	white-space: nowrap;
}

/* Tablero kanban (organizations/templates/organizations/payroll_kanban.html,
   columnas de organizations/views_payroll.py STATUS_COLUMN_META): columnas con
   tarjetas pulsables, p. ej. informes de nóminas por estado. */
.w-kanban {
	display: flex;
	gap: 10px;
}

.w-kanban-col {
	background: var(--soft);
	border-radius: 8px;
	flex: 1;
	min-width: 0;
	padding: 8px;
}

.w-kanban-col h4 {
	color: var(--muted);
	font-size: 11px;
	letter-spacing: 0.03em;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.w-kanban-card {
	background: #fff;
	border: 1px solid var(--line-2);
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
	cursor: pointer;
	padding: 8px 10px;
}

.w-kanban-card + .w-kanban-card {
	margin-top: 8px;
}

.w-kanban-card strong {
	display: block;
	font-size: 13px;
}

.w-kanban-card small {
	color: var(--muted);
	font-size: 11px;
}

/* ------------------------------------------------------------------ */
/* Pantallas estrechas                                                 */
/* ------------------------------------------------------------------ */

@media (max-width: 520px) {
	.tut-player {
		padding: 8px 8px 0;
	}

	.tut-cap-text {
		font-size: 15px;
		min-height: 4.4em;
	}

	.tut-controls button {
		min-width: 32px;
		padding: 4px 8px;
	}

	.page {
		padding-left: 8px;
		padding-right: 8px;
	}

	body.tut-js .step {
		display: block;
	}

	body.tut-js .step h2 {
		margin-bottom: 2px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tut-device,
	.view,
	.m-sheet,
	.m-dialog,
	.tut-finger,
	.tut-drag-lift {
		transition: none;
	}

	.tut-hold-ring circle {
		animation: none;
	}
}
