/*
 * Componentes de la nueva interfaz.
 *
 * Estas reglas son opt-in: no modifican #program-body ni #program-body-finder
 * antiguos. Una pantalla debe añadir expresamente las clases nexus-modern-*
 * para adoptar esta apariencia.
 */

/* Tema editable de la nueva interfaz. Solo se activa en páginas con
 * class="nexus-modern-page". */
body.nexus-modern-page {
	font-family: 'Inter', Arial, sans-serif;
	--nexus-modern-nav-color: #00bcd4;
	--nexus-modern-primary-color: #08acc8;
	--nexus-modern-primary-hover: #078ca7;
	--nexus-modern-accent-color: #079fbe;
	--nexus-modern-icon-color: #079fbe;
	--nexus-modern-border-color: #d6e2e9;
	--nexus-modern-text-color: #142b43;
	--nexus-modern-label-color: #687887;
	/* Correspondencia con planificación, en versión suave para la cuadrícula. */
	--nexus-modern-calendar-vacaciones: rgba(233, 153, 153, .34);
	--nexus-modern-calendar-festivo: rgba(255, 0, 200, .16);
	--nexus-modern-calendar-permiso: rgba(40, 167, 69, .16);
	--nexus-modern-calendar-baja: rgba(255, 223, 0, .28);
	--nexus-modern-calendar-intensiva: rgba(169, 169, 255, .34);
	--nexus-modern-surface-color: #ffffff;
	--nexus-modern-subtle-surface-color: #f4f8fa;
	--nexus-modern-positive-color: #18a957;
	--nexus-modern-positive-soft-color: #dff6e7;
	--nexus-modern-warning-color: #f59e0b;
	--nexus-modern-warning-soft-color: #fee6cf;
	--nexus-modern-danger-color: #c92631;
	--nexus-modern-danger-soft-color: #fde7e9;
}

body.nexus-modern-page :is(button, input, select, textarea, optgroup) {
	font-family: 'Inter', Arial, sans-serif;
}

body.nexus-modern-page #program-body.nexus-modern-program-body,
body.nexus-modern-page #program-body-finder.nexus-modern-finder {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

body.nexus-modern-page > .section {
	box-sizing: border-box;
	padding-right: 25px;
	padding-left: 25px;
}

body.nexus-modern-page #program-body.nexus-modern-program-body {
	padding: 0 !important;
}

body.nexus-modern-page #program-body.nexus-modern-program-body .program-body-inner-no-pagination {
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder {
	padding: 10px 0 !important;
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .finder {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	height: 60px;
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .finder .filter {
	padding-right: 14px;
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .finder.nexus-modern-surface > form > .nexus-modern-worker-filter {
	margin-left: 0 !important;
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .finder .label {
	height: 19px;
	position: relative;
	top: -3px;
	color: var(--nexus-modern-label-color) !important;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 20px;
	text-transform: none;
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .finder .select-style,
body.nexus-modern-page #program-body-finder.nexus-modern-finder .finder .input-container {
	box-sizing: border-box;
	height: 32px;
	border: 1px solid var(--nexus-modern-border-color);
	border-radius: 4px;
	background: #ffffff;
	box-shadow: 0 1px 2px rgba(20, 43, 67, .04);
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .finder .select-style {
	line-height: 32px;
	text-align: right;
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .finder .select-style > span {
	position: absolute;
	right: 13px;
	top: 50%;
	z-index: 1;
	padding: 0;
	color: var(--nexus-modern-text-color);
	font-size: 12px;
	line-height: 1;
	pointer-events: none;
	transform: translateY(-50%);
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .finder .select-style select {
	height: 30px;
	padding: 0 32px 0 10px;
	color: var(--nexus-modern-text-color);
	font-size: 13px;
	font-weight: 500;
	line-height: 30px;
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .finder .styled-input {
	height: 30px;
	line-height: 30px;
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .finder .input-container input {
	box-sizing: border-box;
	height: 28px;
	padding: 0 10px;
	margin: 0;
	color: #142b43;
	font-size: 13px;
	font-weight: 500;
	line-height: 28px;
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .nexus-modern-date-stepper {
	display: flex;
	align-items: stretch;
	height: 32px;
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .nexus-modern-date-stepper > button {
	box-sizing: border-box;
	width: 32px;
	min-width: 32px;
	max-width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid var(--nexus-modern-border-color);
	background: #ffffff;
	color: var(--nexus-modern-text-color);
	font-family: 'Inter', Arial, sans-serif;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .nexus-modern-date-stepper > button:first-child {
	border-radius: 4px 0 0 4px;
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .nexus-modern-date-stepper > button:last-child {
	border-radius: 0 4px 4px 0;
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .nexus-modern-date-stepper > button:hover,
body.nexus-modern-page #program-body-finder.nexus-modern-finder .nexus-modern-date-stepper > button:focus {
	background: #f0fbfd;
	border-color: var(--nexus-modern-accent-color);
	color: var(--nexus-modern-primary-hover);
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .nexus-modern-date-stepper .input-container {
	display: flex;
	align-items: center;
	flex: 1;
	min-width: 0;
	border-right: 0;
	border-left: 0;
	border-radius: 0;
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .nexus-modern-date-stepper .styled-input {
	display: flex;
	align-items: center;
	justify-content: center;
	float: none;
	height: 30px;
	line-height: normal;
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .nexus-modern-date-stepper .input-container input {
	display: block;
	float: none !important;
	height: 30px;
	line-height: normal;
	vertical-align: middle;
}

body.nexus-modern-page .nexus-modern-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	position: static;
	top: auto;
	z-index: auto;
	min-height: 53px;
	padding: 0;
	background: transparent;
	font-family: 'Inter', Arial, sans-serif;
}

body.nexus-modern-page .nexus-modern-toolbar-title {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
	color: var(--nexus-modern-text-color);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.15;
}

body.nexus-modern-page .nexus-modern-toolbar-title > .fa,
body.nexus-modern-page .nexus-modern-toolbar-title > .fas,
body.nexus-modern-page .nexus-modern-toolbar-title > .far {
	color: var(--nexus-modern-icon-color);
	font-size: 24px;
}

body.nexus-modern-page .nexus-modern-toolbar-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}

body.nexus-modern-page .nexus-modern-toolbar-action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: center;
	box-sizing: border-box;
	min-width: 38px;
	height: 37px !important;
	min-height: 37px !important;
	max-height: 37px !important;
	margin: 0;
	padding: 0 12px;
	font-family: 'Inter', Arial, sans-serif;
	border: 1px solid var(--nexus-modern-border-color);
	border-radius: 9px;
	background: #ffffff;
	box-shadow: none;
	color: var(--nexus-modern-icon-color);
	font-size: 18px;
	line-height: 1 !important;
	text-decoration: none;
	transition: background .15s ease, border-color .15s ease, transform .15s ease;
}

body.nexus-modern-page .nexus-modern-toolbar-action:hover,
body.nexus-modern-page .nexus-modern-toolbar-action:focus {
	border-color: var(--nexus-modern-accent-color);
	background: #f0fbfd;
	color: var(--nexus-modern-primary-hover);
	text-decoration: none;
}

body.nexus-modern-page .nexus-modern-toolbar-action:active {
	transform: translateY(1px);
}

body.nexus-modern-page .nexus-modern-toolbar-action-primary {
	border-color: var(--nexus-modern-primary-color);
	background: var(--nexus-modern-primary-color);
	color: #ffffff;
}

body.nexus-modern-page .nexus-modern-toolbar-action-primary:hover,
body.nexus-modern-page .nexus-modern-toolbar-action-primary:focus {
	border-color: var(--nexus-modern-primary-hover);
	background: var(--nexus-modern-primary-hover);
	color: #ffffff;
}

body.nexus-modern-page .nexus-modern-toolbar-action-label {
	margin-left: 9px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1 !important;
}

body.nexus-modern-page .nexus-modern-toolbar-menu {
	width: 37px;
	min-width: 37px;
	max-width: 37px;
	padding: 0;
}

/* Navegación compacta únicamente para las pantallas que adoptan la nueva UI. */
body.nexus-modern-page #navigation-box {
	height: 50px;
	position: fixed;
	top: 0;
	right: 0;
	left: 0;
	z-index: 9999;
	border-bottom: 0;
	box-shadow: none !important;
	background-color: var(--nexus-modern-nav-color) !important;
}

body.nexus-modern-page .nav > li > .nav-logo {
	height: 30px;
	width: 30px;
	margin-top: 10px;
	margin-left: 7px;
	margin-right: 7px;
}

body.nexus-modern-page .nav {
	padding-left: 12px;
}

body.nexus-modern-page .nav > li > .nav-logo img {
	height: 20px;
}

body.nexus-modern-page .nav li a {
	line-height: 50px;
	font-size: 11px;
	font-weight: 500;
	color: #ffffff;
}

body.nexus-modern-page .nav li a.basic {
	padding-right: 12px;
	padding-left: 12px;
}

body.nexus-modern-page .nav li ul li,
body.nexus-modern-page .nav li ul li a,
body.nexus-modern-page .nav li ul li a:hover {
	height: 40px;
}

body.nexus-modern-page .nav li ul li {
	background: #123f5c;
}

body.nexus-modern-page .nav li > ul {
	overflow: hidden;
	border-radius: 0 0 4px 4px;
}

body.nexus-modern-page .nav li ul li a {
	line-height: 40px;
	padding-right: 12px;
	padding-left: 12px;
	color: #ffffff;
	font-size: 11px;
	font-weight: 500;
}

body.nexus-modern-page .nav li ul li a:hover {
	background: var(--nexus-modern-primary-color);
	color: #ffffff;
}

body.nexus-modern-page header #menu,
body.nexus-modern-page header #menu-alerts {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 50px;
	height: 50px;
	line-height: 50px;
	padding: 0;
}

body.nexus-modern-page .span-menu {
	width: 22px;
	height: 22px;
	top: 0;
	transform: scale(.90);
	transform-origin: center center;
}

body.nexus-modern-page .span-menu-bar {
	width: 22px;
	height: 2px;
	transform-origin: center center;
}

body.nexus-modern-page .span-menu-top { top: 3px; }
body.nexus-modern-page .span-menu-middle { top: 10px; }
body.nexus-modern-page .span-menu-bottom { top: 17px; }
body.nexus-modern-page .span-menu-top.transforma-x-top { top: 10px; transform: rotate(45deg); }
body.nexus-modern-page .span-menu-middle.transforma-x-middle { top: 10px; }
body.nexus-modern-page .span-menu-bottom.transforma-x-bottom { top: 10px; transform: rotate(-45deg); }

body.nexus-modern-page .span-menu-alerts {
	font-size: 17px;
	transform: scale(.90);
	transform-origin: center center;
}

/* Panel lateral moderno. El contenido lo sigue proporcionando navigation_menu. */
body.nexus-modern-page #hamburger-menu {
	box-sizing: border-box;
	display: flex;
	width: min(280px, 86vw);
	height: calc(100vh - 50px);
	min-height: 0;
	top: 50px;
	right: -280px;
	transform: none;
	border-left: 1px solid rgba(255, 255, 255, .08);
	border-radius: 0;
	background: #203943;
	box-shadow: -14px 0 30px rgba(13, 29, 36, .24);
	overflow: hidden;
}

body.nexus-modern-page #hamburger-menu.a {
	right: 0;
	transform: none;
}

body.nexus-modern-page #hamburger-menu::before {
	position: absolute;
	top: 16px;
	right: 18px;
	z-index: 2;
	color: #b6c7cc;
	content: '×';
	font-size: 26px;
	font-weight: 300;
	line-height: 1;
	pointer-events: none;
}

body.nexus-modern-page #hamburger-menu #head {
	box-sizing: border-box;
	flex: 0 0 auto;
	padding: 21px 16px 17px;
	border-bottom: 1px solid rgba(255, 255, 255, .14);
	background: #203943;
}

body.nexus-modern-page #hamburger-menu #head > .d-flex:first-child {
	align-items: center;
	gap: 10px;
}

body.nexus-modern-page #hamburger-menu #head > .d-flex:first-child > .fleft:first-child > span {
	width: 42px !important;
	height: 42px !important;
	border-radius: 7px !important;
	background: #ffffff !important;
	color: var(--nexus-modern-primary-color) !important;
	font-size: 18px !important;
}

body.nexus-modern-page .nexus-user-profile-photo {
	display: block;
	box-sizing: border-box;
	width: 42px !important;
	height: 42px !important;
	border: 2px solid rgba(255,255,255,.85);
	border-radius: 9px !important;
	object-fit: cover;
	box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

body.nexus-modern-page #hamburger-menu #head > .d-flex:first-child > .fleft:last-child {
	height: auto !important;
	margin-left: 0 !important;
	color: #ffffff !important;
	font-size: 16px !important;
	font-weight: 700;
	line-height: 1.15 !important;
}

body.nexus-modern-page #hamburger-menu #head > .d-flex:first-child > .fleft:last-child::before {
	display: block;
	margin-bottom: 4px;
	color: #9eb5bc;
	content: 'USUARIO';
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .16em;
}

body.nexus-modern-page #hamburger-menu #head > .margin-top-15:nth-child(2) {
	height: auto !important;
	margin-top: 14px !important;
	color: #9eb5bc !important;
	font-size: 10px;
	font-weight: 600;
	letter-spacing: .16em;
	text-transform: uppercase;
}

body.nexus-modern-page #hamburger-menu #head #cambio_almacen {
	box-sizing: border-box;
	width: 100%;
	margin-top: 4px;
	padding: 0 !important;
	background: transparent !important;
	color: #ffffff !important;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
}

body.nexus-modern-page #hamburger-menu #head #cambio_almacen select {
	box-sizing: border-box;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: #ffffff !important;
	font-size: 16px;
	font-weight: 700;
}

body.nexus-modern-page #hamburger-menu #content {
	box-sizing: border-box;
	flex: 1 1 auto;
	min-height: 0;
	padding: 12px 16px 70px;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: rgba(154, 216, 226, .35) transparent;
}

body.nexus-modern-page #hamburger-menu #content ul {
	gap: 2px;
}

body.nexus-modern-page #hamburger-menu #content li {
	display: flex;
	align-items: center;
	min-height: 40px;
	border-radius: 5px;
	color: #ffffff;
	font-size: 14px;
}

body.nexus-modern-page #hamburger-menu #content li:hover,
body.nexus-modern-page #hamburger-menu #content li:first-child {
	background: #355b68;
}

body.nexus-modern-page #hamburger-menu #content li > div:first-child {
	display: flex;
	align-items: center;
	justify-content: center;
	float: none !important;
	flex: 0 0 36px;
	width: 36px !important;
}

body.nexus-modern-page #hamburger-menu #content li > div:first-child .fa {
	color: #6bd3df !important;
	font-size: 17px !important;
}

body.nexus-modern-page #hamburger-menu #content li > div:last-child {
	display: flex;
	align-items: center;
	float: none !important;
	margin-left: 0 !important;
}

body.nexus-modern-page #hamburger-menu #content a {
	height: auto;
	display: flex;
	align-items: center;
	padding: 9px 0;
	color: #ffffff;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.25;
}

body.nexus-modern-page #hamburger-menu #head > .margin-top-15:nth-child(3) {
	position: absolute;
	right: 16px;
	bottom: 12px;
	left: 16px;
	height: 34px !important;
	margin: 0 !important;
	padding-top: 11px;
	border-top: 1px solid rgba(255, 255, 255, .14);
}

body.nexus-modern-page #hamburger-menu #head > .margin-top-15:nth-child(3) a {
	padding: 0 !important;
	background: transparent !important;
	color: #ffffff !important;
	font-size: 13px !important;
	font-weight: 600;
}

body.nexus-modern-page #hamburger-menu #head > .margin-top-15:nth-child(3) a .fa {
	margin-right: 10px;
	color: #ff8d65;
}

/* El panel hamburguesa conserva por ahora el diseño heredado. */
body.nexus-modern-page #hamburger-menu {
	width: 300px;
	height: 1px;
	min-height: calc(100% - 50px);
	top: 50px;
	right: -300px;
	transform: translate(20%, 0);
	border: 0;
	border-radius: 0;
	background: #444444;
	box-shadow: none;
	overflow: visible;
}
body.nexus-modern-page #hamburger-menu.a { right: -300px; transform: translate(-300px, 0); }
body.nexus-modern-page #hamburger-menu::before { content: none; }
body.nexus-modern-page #hamburger-menu #head { padding: 20px; border: 0; background: transparent; }
body.nexus-modern-page #hamburger-menu #head > .d-flex:first-child { gap: 0; }
body.nexus-modern-page #hamburger-menu #head > .d-flex:first-child > .fleft:first-child > span { width: 35px !important; height: 35px !important; border-radius: 4px !important; color: #dddddd !important; font-size: inherit !important; }
body.nexus-modern-page #hamburger-menu #head > .d-flex:first-child > .fleft:last-child { height: 35px !important; margin-left: 10px !important; color: #dddddd !important; font-size: 18px !important; font-weight: normal; line-height: 35px !important; }
body.nexus-modern-page #hamburger-menu #head > .d-flex:first-child > .fleft:last-child::before { content: none; }
body.nexus-modern-page #hamburger-menu #head > .margin-top-15:nth-child(2) { margin-top: 15px !important; color: inherit !important; font-size: inherit; font-weight: normal; letter-spacing: 0; text-transform: none; }
body.nexus-modern-page #hamburger-menu #head #cambio_almacen { width: auto; margin-top: 0; padding: 0 10px !important; background: #dddddd !important; color: #444444 !important; font-size: inherit; font-weight: normal; }
body.nexus-modern-page #hamburger-menu #head #cambio_almacen select { width: auto; padding: 5px 15px 5px 10px; border: 0; background: #dddddd; color: #444444 !important; font-size: inherit; font-weight: normal; }
body.nexus-modern-page #hamburger-menu #content { padding: 20px; overflow: visible; scrollbar-color: auto; }
body.nexus-modern-page #hamburger-menu #content ul { gap: 0; }
body.nexus-modern-page #hamburger-menu #content li { display: block; min-height: 0; border-radius: 0; color: #ffffff; font-size: 18px; }
body.nexus-modern-page #hamburger-menu #content li:hover,
body.nexus-modern-page #hamburger-menu #content li:first-child { background: transparent; }
body.nexus-modern-page #hamburger-menu #content li > div:first-child { display: flex; float: left !important; flex: none; width: 40px !important; }
body.nexus-modern-page #hamburger-menu #content li > div:first-child .fa { color: #ffffff !important; font-size: 20px !important; }
body.nexus-modern-page #hamburger-menu #content li > div:last-child { display: block; float: left !important; margin-left: 10px !important; }
body.nexus-modern-page #hamburger-menu #content a { display: block; height: 40px; padding: 0; color: #ffffff; font-size: 16px; font-weight: normal; line-height: 40px; }
body.nexus-modern-page #hamburger-menu #head > .margin-top-15:nth-child(3) { position: static; height: auto !important; margin-top: 15px !important; padding: 0; border: 0; }
body.nexus-modern-page #hamburger-menu #head > .margin-top-15:nth-child(3) a { padding: 5px 10px !important; background: #2A7C92 !important; color: #ffffff !important; font-size: 14px !important; font-weight: normal; }
body.nexus-modern-page #hamburger-menu #head > .margin-top-15:nth-child(3) a .fa { margin-right: 0; color: inherit; }

/* Diseño moderno activo del panel lateral; las opciones permanecen dinámicas. */
body.nexus-modern-page #hamburger-menu {
	width: min(280px, 86vw);
	height: calc(100vh - 50px);
	min-height: 0;
	top: 50px;
	right: -280px;
	transform: none;
	border-left: 1px solid rgba(255, 255, 255, .08);
	border-radius: 0;
	background: #203943;
	box-shadow: -14px 0 30px rgba(13, 29, 36, .24);
	overflow: hidden;
}
body.nexus-modern-page #hamburger-menu.a { right: 0; transform: none; }
body.nexus-modern-page #hamburger-menu::before { position: absolute; top: 16px; right: 18px; z-index: 2; color: #b6c7cc; content: '×'; font-size: 26px; font-weight: 300; line-height: 1; pointer-events: none; }
body.nexus-modern-page #hamburger-menu #head { box-sizing: border-box; flex: 0 0 auto; padding: 21px 16px 17px; border-bottom: 1px solid rgba(255, 255, 255, .14); background: #203943; }
body.nexus-modern-page #hamburger-menu #head > .d-flex:first-child { align-items: center; gap: 10px; }
body.nexus-modern-page #hamburger-menu #head > .d-flex:first-child > .fleft:first-child > span { width: 42px !important; height: 42px !important; border-radius: 7px !important; background: #ffffff !important; color: var(--nexus-modern-primary-color) !important; font-size: 18px !important; }
body.nexus-modern-page #hamburger-menu #head > .d-flex:first-child > .fleft:last-child { height: auto !important; margin-left: 0 !important; color: #ffffff !important; font-size: 16px !important; font-weight: 700; line-height: 1.15 !important; }
body.nexus-modern-page #hamburger-menu #head > .d-flex:first-child > .fleft:last-child::before { display: block; margin-bottom: 4px; color: #9eb5bc; content: 'USUARIO'; font-size: 10px; font-weight: 600; letter-spacing: .16em; }
body.nexus-modern-page #hamburger-menu #head > .margin-top-15:nth-child(2) { height: auto !important; margin-top: 14px !important; color: #9eb5bc !important; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
body.nexus-modern-page #hamburger-menu #head #cambio_almacen { box-sizing: border-box; width: 100%; margin-top: 4px; padding: 0 !important; background: transparent !important; color: #ffffff !important; font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; }
body.nexus-modern-page #hamburger-menu #head #cambio_almacen select { box-sizing: border-box; width: 100%; padding: 0; border: 0; background: transparent; color: #ffffff !important; font-size: 14px; font-weight: 700; }
body.nexus-modern-page #hamburger-menu #content { box-sizing: border-box; flex: 1 1 auto; min-height: 0; padding: 12px 16px 70px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(154, 216, 226, .35) transparent; }
body.nexus-modern-page #hamburger-menu #content ul { gap: 2px; }
body.nexus-modern-page #hamburger-menu #content li { display: flex; align-items: center; min-height: 40px; border-radius: 5px; color: #ffffff; font-size: 14px; }
body.nexus-modern-page #hamburger-menu #content li:hover,
body.nexus-modern-page #hamburger-menu #content li:first-child { background: #355b68; }
body.nexus-modern-page #hamburger-menu #content li > div:first-child { display: flex; align-items: center; justify-content: center; float: none !important; flex: 0 0 36px; width: 36px !important; }
body.nexus-modern-page #hamburger-menu #content li > div:first-child .fa { color: #6bd3df !important; font-size: 17px !important; }
body.nexus-modern-page #hamburger-menu #content li > div:last-child { display: flex; align-items: center; float: none !important; margin-left: 0 !important; }
body.nexus-modern-page #hamburger-menu #content a { display: flex; align-items: center; height: auto; padding: 9px 0; color: #ffffff; font-size: 14px; font-weight: 500; line-height: 1.25; }
body.nexus-modern-page #hamburger-menu #head > .margin-top-15:nth-child(3) { position: absolute; right: 16px; bottom: 12px; left: 16px; height: 34px !important; margin: 0 !important; padding-top: 11px; border-top: 0; }
body.nexus-modern-page #hamburger-menu #head > .margin-top-15:nth-child(3) a { padding: 0 !important; background: transparent !important; color: #ffffff !important; font-size: 13px !important; font-weight: 600; }
body.nexus-modern-page #hamburger-menu #head > .margin-top-15:nth-child(3) a .fa { margin-right: 10px; color: #ff8d65; }
body.nexus-modern-page #hamburger-menu #head > .margin-top-15:nth-child(4),
body.nexus-modern-page #hamburger-menu #head > div[style*="height:1px"] { display: none !important; }

body.nexus-modern-page #pull-down {
	height: 50px !important;
	margin-bottom: 0 !important;
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .finder .nexus-modern-worker-filter {
	box-sizing: border-box;
	width: 16.66666667% !important;
	min-width: 320px;
}

body.nexus-modern-page #program-body-finder.nexus-modern-finder .finder .nexus-modern-date-filter {
	box-sizing: border-box;
	width: 8.33333333% !important;
	min-width: 180px;
}

/* El ancho completo y el centrado se reservan exclusivamente a fechas. */
body.nexus-modern-page #program-body-finder.nexus-modern-finder .nexus-modern-date-stepper .input-container input {
	width: 100% !important;
	text-align: center;
}

body.nexus-modern-page .nexus-modern-toolbar-action-icon {
	width: 37px;
	min-width: 37px;
	max-width: 37px;
	padding: 0;
}

@media (max-width: 700px) {
	body.nexus-modern-page .nexus-modern-toolbar {
		min-height: 45px;
		padding: 0 14px;
	}

	body.nexus-modern-page .nexus-modern-toolbar-title {
		gap: 10px;
		font-size: 19px;
	}

	body.nexus-modern-page .nexus-modern-toolbar-title > .fa,
	body.nexus-modern-page .nexus-modern-toolbar-title > .fas,
	body.nexus-modern-page .nexus-modern-toolbar-title > .far {
		font-size: 20px;
	}

	body.nexus-modern-page .nexus-modern-toolbar-action {
		height: 32px !important;
		min-height: 32px !important;
		max-height: 32px !important;
		min-width: 32px;
		padding: 0 9px;
	}

	body.nexus-modern-page .nexus-modern-toolbar-action-icon,
	body.nexus-modern-page .nexus-modern-toolbar-menu {
		width: 32px;
		min-width: 32px;
		max-width: 32px;
		padding: 0;
	}

	body.nexus-modern-page .nexus-modern-toolbar-action-label {
		display: none;
	}
}

/* Control horario avanzado. Todas las reglas permanecen encapsuladas en la
 * página piloto y usan exclusivamente las variables editables del tema. */
body.nexus-modern-page .control-jornada-program-body {
	background: var(--nexus-modern-subtle-surface-color) !important;
}

body.nexus-modern-page .nexus-control-jornada {
	box-sizing: border-box;
	max-width: 1880px;
	margin: 0 auto;
	padding: 18px 0 28px;
	color: var(--nexus-modern-text-color);
	font-family: 'Inter', Arial, sans-serif;
}

body.nexus-modern-page .nexus-control-summary {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 17px;
	border: 1px solid #e2ebf0;
	border-radius: 11px;
	background: #ffffff;
	box-shadow: 0 2px 8px rgba(20, 43, 67, .045);
	margin-bottom: 18px;
}

body.nexus-modern-page .nexus-control-worker,
body.nexus-modern-page .nexus-control-detail-worker,
body.nexus-modern-page .nexus-control-card-header,
body.nexus-modern-page .nexus-control-calendar-nav,
body.nexus-modern-page .nexus-control-day-nav,
body.nexus-modern-page .nexus-control-detail-actions {
	display: flex;
	align-items: center;
}

/* El encabezado del trabajador se mantiene en el DOM por compatibilidad con el detalle, pero no se muestra en la vista compacta. */
body.nexus-modern-page .nexus-control-detail-worker { display: none; }

body.nexus-modern-page .nexus-control-worker { gap: 12px; }

body.nexus-modern-page .nexus-control-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--nexus-modern-primary-color), #13c7c8);
	color: #fff;
	font-size: 17px;
	font-weight: 700;
	box-shadow: 0 5px 13px rgba(8, 172, 200, .22);
}

body.nexus-modern-page .nexus-control-worker h1,
body.nexus-modern-page .nexus-control-detail-worker h3,
body.nexus-modern-page .nexus-control-card-header h2,
body.nexus-modern-page .nexus-control-timeline-section h3 {
	margin: 0;
	color: var(--nexus-modern-text-color);
}

body.nexus-modern-page .nexus-control-worker h1 { font-size: 19px; font-weight: 700; line-height: 1.2; }
body.nexus-modern-page .nexus-control-worker p,
body.nexus-modern-page .nexus-control-detail-worker p {
	margin: 4px 0 0;
	color: var(--nexus-modern-label-color);
	font-size: 13px;
}

body.nexus-modern-page .nexus-control-kpis {
	display: grid;
	grid-template-columns: repeat(4, minmax(120px, 1fr));
	gap: 9px;
	width: min(720px, 62%);
}

body.nexus-modern-page .nexus-control-kpi {
	display: flex;
	align-items: center;
	min-height: 70px;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1px solid #e3edf0;
	border-radius: 8px;
	background: #f3f7f8;
}

body.nexus-modern-page .nexus-control-kpi span {
	display: block;
	color: #657685;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .045em;
	text-transform: uppercase;
}

body.nexus-modern-page .nexus-control-kpi strong {
	display: block;
	margin-top: 3px;
	font-size: 18px;
	line-height: 1.1;
	white-space: nowrap;
}

body.nexus-modern-page .nexus-control-kpi.is-alert { border-color: #f0c8c8; background: #fff7f7; }
body.nexus-modern-page .nexus-control-kpi.is-alert strong { color: #c82834; }

body.nexus-modern-page .nexus-control-layout {
	display: grid;
	grid-template-columns: minmax(500px, .98fr) minmax(600px, 1.02fr);
	gap: 18px;
	align-items: start;
}

body.nexus-modern-page .nexus-control-left-column {
	display: grid;
	gap: 18px;
}

body.nexus-modern-page .nexus-control-card {
	box-sizing: border-box;
	border: 1px solid #e2ebf0;
	border-radius: 11px;
	background: rgba(255, 255, 255, .96);
	box-shadow: 0 2px 8px rgba(20, 43, 67, .045);
	overflow: visible;
}

body.nexus-modern-page .nexus-control-card-header {
	justify-content: space-between;
	min-height: 52px;
	padding: 0 17px;
	border-bottom: 1px solid #edf2f5;
}

body.nexus-modern-page .nexus-control-card-header h2,
body.nexus-modern-page .nexus-control-timeline-section h3 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 17px;
	font-weight: 700;
}

body.nexus-modern-page .nexus-control-card-header h2 > i,
body.nexus-modern-page .nexus-control-timeline-section h3 > i {
	color: var(--nexus-modern-icon-color);
	font-size: 19px;
}

body.nexus-modern-page .nexus-control-icon-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid #dbe6eb;
	border-radius: 6px;
	background: #fff;
	color: var(--nexus-modern-text-color);
	font-size: 13px;
	cursor: pointer;
}

body.nexus-modern-page .nexus-control-icon-button:hover:not(:disabled),
body.nexus-modern-page .nexus-control-icon-button:focus:not(:disabled) {
	border-color: var(--nexus-modern-primary-color);
	background: #effbfd;
	color: var(--nexus-modern-primary-hover);
}

body.nexus-modern-page .nexus-control-icon-button:disabled { opacity: .35; cursor: default; }
body.nexus-modern-page .nexus-control-calendar-nav,
body.nexus-modern-page .nexus-control-day-nav { gap: 7px; }
body.nexus-modern-page .nexus-control-calendar-nav strong,
body.nexus-modern-page .nexus-control-day-nav strong { min-width: 122px; text-align: center; font-size: 14px; }

body.nexus-modern-page .nexus-control-today {
	box-sizing: border-box;
	height: 32px;
	padding: 0 13px;
	border: 1px solid #dbe6eb;
	border-radius: 6px;
	background: #fff;
	color: var(--nexus-modern-text-color);
	font-family: inherit;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

body.nexus-modern-page .nexus-control-calendar { padding: 10px 14px 0; }
body.nexus-modern-page .nexus-control-calendar-weekdays,
body.nexus-modern-page .nexus-control-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

body.nexus-modern-page .nexus-control-calendar-weekdays span {
	padding: 6px 0;
	color: #718191;
	font-size: 10px;
	font-weight: 700;
	text-align: center;
	text-transform: uppercase;
}

body.nexus-modern-page .nexus-control-calendar-day {
	position: relative;
	min-height: 48px;
	padding: 7px 5px;
	border: 1px solid #edf2f5;
	border-right: 0;
	border-bottom: 0;
	background: #fff;
	color: var(--nexus-modern-text-color);
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	cursor: pointer;
}

body.nexus-modern-page .nexus-control-calendar-day:nth-child(7n) { border-right: 1px solid #edf2f5; }
body.nexus-modern-page .nexus-control-calendar-day:nth-last-child(-n+7) { border-bottom: 1px solid #edf2f5; }
body.nexus-modern-page .nexus-control-calendar-day i { display: block; width: 7px; height: 7px; margin: 5px auto 0; border-radius: 50%; }
body.nexus-modern-page .nexus-control-calendar-day.is-complete i,
body.nexus-modern-page .nexus-control-legend .is-complete { background: var(--nexus-modern-positive-color); }
body.nexus-modern-page .nexus-control-calendar-day.is-partial i,
body.nexus-modern-page .nexus-control-legend .is-partial { background: #27b7d2; }
body.nexus-modern-page .nexus-control-calendar-day.is-missing i,
body.nexus-modern-page .nexus-control-legend .is-missing { background: #9ca9b5; }
body.nexus-modern-page .nexus-control-calendar-day.is-review i,
body.nexus-modern-page .nexus-control-legend .is-review { background: var(--nexus-modern-warning-color); }
body.nexus-modern-page .nexus-control-calendar-day.is-justified i,
body.nexus-modern-page .nexus-control-legend .is-justified { background: var(--nexus-modern-positive-color); }
body.nexus-modern-page .nexus-control-calendar-day.is-outside { color: #bdc7cf; background: #fbfcfd; }
body.nexus-modern-page .nexus-control-calendar-day.is-outside i { opacity: .3; }
body.nexus-modern-page .nexus-control-calendar-day.is-calendar-vacaciones { background: var(--nexus-modern-calendar-vacaciones) !important; }
body.nexus-modern-page .nexus-control-calendar-day.is-calendar-festivo { background: var(--nexus-modern-calendar-festivo) !important; }
body.nexus-modern-page .nexus-control-calendar-day.is-calendar-permiso { background: var(--nexus-modern-calendar-permiso) !important; }
body.nexus-modern-page .nexus-control-calendar-day.is-calendar-baja { background: var(--nexus-modern-calendar-baja) !important; }
body.nexus-modern-page .nexus-control-calendar-day.is-calendar-intensiva { background: var(--nexus-modern-calendar-intensiva) !important; }
body.nexus-modern-page .nexus-control-calendar-day:disabled { cursor: default; }
body.nexus-modern-page .nexus-control-calendar-day:not(:disabled):hover { background: #effbfd; }
body.nexus-modern-page .nexus-control-calendar-day.is-selected { z-index: 1; border-color: var(--nexus-modern-primary-color); background: var(--nexus-modern-primary-color); color: #fff; box-shadow: 0 5px 12px rgba(8, 172, 200, .22); }
body.nexus-modern-page .nexus-control-calendar-day.is-selected i { background: #fff; }

body.nexus-modern-page .nexus-control-legend {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 9px 15px;
	padding: 12px 15px 14px;
	color: #718191;
	font-size: 11px;
	vertical-align: middle;
}
body.nexus-modern-page .nexus-control-calendar-type-legend {
	gap: 7px 12px;
	padding-top: 0;
	border-top: 0;
	margin-top: -3px;
}
body.nexus-modern-page .nexus-control-calendar-type-legend span {
	display: inline-flex;
	align-items: center;
}
body.nexus-modern-page .nexus-control-calendar-type-legend i {
	display: inline-block;
	width: 18px;
	height: 12px;
	margin-right: 5px;
	border: 1px solid rgba(20, 43, 67, .08);
	border-radius: 3px;
}
body.nexus-modern-page .nexus-control-legend.nexus-control-calendar-type-legend i {
	width: 12px;
	height: 12px;
	border-radius: 3px;
}
body.nexus-modern-page .nexus-control-calendar-type-legend .is-calendar-vacaciones { background: var(--nexus-modern-calendar-vacaciones); }
body.nexus-modern-page .nexus-control-calendar-type-legend .is-calendar-festivo { background: var(--nexus-modern-calendar-festivo); }
body.nexus-modern-page .nexus-control-calendar-type-legend .is-calendar-permiso { background: var(--nexus-modern-calendar-permiso); }
body.nexus-modern-page .nexus-control-calendar-type-legend .is-calendar-baja { background: var(--nexus-modern-calendar-baja); }
body.nexus-modern-page .nexus-control-calendar-type-legend .is-calendar-intensiva { background: var(--nexus-modern-calendar-intensiva); }

body.nexus-modern-page .nexus-control-legend span { display: inline-flex; align-items: center; gap: 5px; }
body.nexus-modern-page .nexus-control-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }

body.nexus-modern-page .nexus-control-table-wrap {
	box-sizing: border-box;
	height: 392px;
	overflow-x: auto;
	overflow-y: auto;
	scrollbar-width: thin;
	scrollbar-color: transparent transparent;
}
body.nexus-modern-page .nexus-control-table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
body.nexus-modern-page .nexus-control-table-wrap::-webkit-scrollbar-track { background: transparent; }
body.nexus-modern-page .nexus-control-table-wrap::-webkit-scrollbar-thumb { border-radius: 8px; background: transparent; }
body.nexus-modern-page .nexus-control-table-wrap.is-scrolling { scrollbar-color: #9eb5bf transparent; }
body.nexus-modern-page .nexus-control-table-wrap.is-scrolling::-webkit-scrollbar-thumb { background: #9eb5bf; }
body.nexus-modern-page .nexus-control-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 12px; }
body.nexus-modern-page .nexus-control-table th { position: sticky; top: 0; z-index: 1; padding: 10px 13px; border-bottom: 1px solid #e8eff3; background: #fff; color: #718191; font-size: 10px; font-weight: 700; text-align: left; text-transform: uppercase; }
body.nexus-modern-page .nexus-control-table td { padding: 8px 13px; border-bottom: 1px solid #edf2f5; color: #3e5266; font-weight: 500; white-space: nowrap; }
body.nexus-modern-page .nexus-control-table tbody td:first-child,
body.nexus-modern-page .nexus-control-table tbody td:nth-child(4) { font-weight: 700; color: var(--nexus-modern-text-color); }
body.nexus-modern-page .nexus-control-table .nexus-control-status.is-gps-ok,
body.nexus-modern-page .nexus-control-table .nexus-control-status.is-gps-partial,
body.nexus-modern-page .nexus-control-table .nexus-control-status.is-gps-no,
body.nexus-modern-page .nexus-control-table .nexus-control-status.is-terminal {
	min-width: 0;
	padding: 0;
	border-radius: 0;
	background: transparent;
	color: #506779;
}
body.nexus-modern-page .nexus-control-table .nexus-control-status.is-gps-ok::before,
body.nexus-modern-page .nexus-control-table .nexus-control-status.is-gps-partial::before,
body.nexus-modern-page .nexus-control-table .nexus-control-status.is-gps-no::before,
body.nexus-modern-page .nexus-control-table .nexus-control-status.is-terminal::before {
	display: inline-block;
	width: 8px;
	height: 8px;
	margin-right: 6px;
	border-radius: 50%;
	content: '';
	vertical-align: 1px;
}
body.nexus-modern-page .nexus-control-table .nexus-control-status.is-gps-ok::before { background: #17a34a; }
body.nexus-modern-page .nexus-control-table .nexus-control-status.is-gps-partial::before { background: #d88700; }
body.nexus-modern-page .nexus-control-table .nexus-control-status.is-gps-no::before { background: #c7333b; }
body.nexus-modern-page .nexus-control-table .nexus-control-status.is-terminal::before { background: #8b5fbf; }
body.nexus-modern-page .nexus-control-table tbody tr { cursor: pointer; }
body.nexus-modern-page .nexus-control-table tbody tr:hover td { background: #f5fcfd; }
body.nexus-modern-page .nexus-control-table tbody tr.is-selected td { background: #dff7fb; color: #183d52; }
body.nexus-modern-page .nexus-control-table tbody tr.is-selected td:first-child { border-left: 3px solid var(--nexus-modern-primary-color); padding-left: 10px; font-weight: 700; }
body.nexus-modern-page .nexus-control-table tbody tr:last-child td { border-bottom: 0; }
body.nexus-modern-page .nexus-control-table-empty { padding: 24px !important; color: var(--nexus-modern-label-color) !important; text-align: center; }

body.nexus-modern-page .nexus-control-status { display: inline-flex; justify-content: center; min-width: 58px; padding: 4px 7px; border-radius: 5px; font-size: 10px; font-weight: 700; }
body.nexus-modern-page .nexus-control-status.is-complete,
body.nexus-modern-page .nexus-control-status.is-gps-ok,
body.nexus-modern-page #selected-day-gps.is-gps-ok { background: var(--nexus-modern-positive-soft-color); color: #187040; }
body.nexus-modern-page .nexus-control-status.is-partial { background: var(--nexus-modern-warning-soft-color); color: #b65e00; }
body.nexus-modern-page .nexus-control-status.is-review { background: var(--nexus-modern-warning-soft-color); color: #b65e00; }
body.nexus-modern-page .nexus-control-status.is-justified { background: var(--nexus-modern-positive-soft-color); color: #187040; }
body.nexus-modern-page .nexus-control-status.is-no-checkin { background: var(--nexus-modern-danger-soft-color); color: #c7333b; }
body.nexus-modern-page .nexus-control-status.is-gps-no,
body.nexus-modern-page #selected-day-gps.is-gps-no { background: var(--nexus-modern-danger-soft-color); color: #c7333b; }
body.nexus-modern-page .nexus-control-status.is-gps-partial,
body.nexus-modern-page #selected-day-gps.is-gps-partial { background: var(--nexus-modern-warning-soft-color); color: #b65e00; }
body.nexus-modern-page .nexus-control-status.is-terminal,
body.nexus-modern-page #selected-day-gps.is-terminal { background: #f0eafa; color: #7650a8; }
body.nexus-modern-page .nexus-control-table .nexus-control-status.is-terminal { background: transparent; color: #7650a8; }

body.nexus-modern-page .nexus-control-table-actions { position: relative; width: 38px; }
body.nexus-modern-page .nexus-control-table-actions .nexus-control-icon-button { width: 28px; height: 28px; }
body.nexus-modern-page .nexus-control-context-menu { position: absolute; z-index: 8; top: 38px; right: 8px; min-width: 190px; padding: 5px; border: 1px solid #dce7ec; border-radius: 7px; background: #fff; box-shadow: 0 8px 22px rgba(20, 43, 67, .14); }
body.nexus-modern-page .nexus-control-context-menu[hidden] { display: none; }
body.nexus-modern-page .nexus-control-context-menu a,
body.nexus-modern-page .nexus-control-context-menu span { display: block; padding: 8px 10px; color: var(--nexus-modern-text-color); font-size: 12px; text-decoration: none; }
body.nexus-modern-page .nexus-control-context-menu a:hover { background: #effbfd; color: var(--nexus-modern-primary-hover); }
body.nexus-modern-page .nexus-control-context-menu i { width: 17px; color: var(--nexus-modern-icon-color); }

body.nexus-modern-page .nexus-control-detail-card { min-height: 100%; }
body.nexus-modern-page .nexus-control-detail-worker { gap: 13px; padding: 17px; }
body.nexus-modern-page .nexus-control-detail-worker h3 { font-size: 18px; }
body.nexus-modern-page .nexus-control-detail-worker > div:nth-child(2) { min-width: 0; flex: 1; }
body.nexus-modern-page .nexus-control-detail-worker > div:nth-child(2) > span { display: block; margin-top: 8px; color: #667a89; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.nexus-modern-page .nexus-control-detail-worker > div:nth-child(2) > span i { color: #647b8c; margin-right: 5px; }
body.nexus-modern-page .nexus-control-review-button,
body.nexus-modern-page .nexus-control-correction-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-sizing: border-box; min-height: 38px; padding: 0 14px; border-radius: 6px; font-size: 12px; font-weight: 700; text-decoration: none; }
body.nexus-modern-page .nexus-control-review-button { border: 1px solid #f9d3d5; background: #fee9ea; color: var(--nexus-modern-danger-color); }
body.nexus-modern-page .nexus-control-correction-button { border: 1px solid var(--nexus-modern-primary-color); background: #fff; color: var(--nexus-modern-primary-hover); }
body.nexus-modern-page .nexus-control-review-button:hover { background: #fcdde0; color: #a81e28; }
body.nexus-modern-page .nexus-control-correction-button:hover { background: #effbfd; }
body.nexus-modern-page .nexus-control-review-button.is-disabled,
body.nexus-modern-page .nexus-control-correction-button.is-disabled { pointer-events: none; opacity: .45; }

body.nexus-modern-page .nexus-control-event-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 0 17px 14px; }
body.nexus-modern-page .nexus-control-event-card { display: flex; align-items: center; gap: 10px; min-height: 70px; padding: 10px; border-radius: 8px; background: #f3f7f8; }
body.nexus-modern-page .nexus-control-event-card > i { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; font-size: 20px; }
body.nexus-modern-page .nexus-control-event-card span { display: block; color: #657685; font-size: 11px; font-weight: 600; }
body.nexus-modern-page .nexus-control-event-card strong { display: block; margin-top: 3px; font-size: 18px; line-height: 1.1; white-space: nowrap; }
body.nexus-modern-page .nexus-control-event-card.is-entry > i { background: #dcf8e5; color: #159947; }
body.nexus-modern-page .nexus-control-event-card.is-exit > i { background: #fff0d0; color: #d88700; }
body.nexus-modern-page .nexus-control-event-card.is-gps > i { background: #d9f5fa; color: #079fbe; }

body.nexus-modern-page .nexus-control-map-shell { position: relative; min-height: 255px; margin: 0 17px; border-radius: 8px; overflow: hidden; background: #eaf4f5; }
body.nexus-modern-page .nexus-control-map { width: 100%; height: 255px; }
body.nexus-modern-page .nexus-control-map-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; min-height: 255px; color: #6d8291; font-size: 13px; text-align: center; }
body.nexus-modern-page .nexus-control-map-empty i { color: #9aacb6; font-size: 26px; }

body.nexus-modern-page .nexus-control-timeline-section { padding: 18px 17px 0; }
body.nexus-modern-page .nexus-control-timeline-section h3 { font-size: 16px; }
body.nexus-modern-page .nexus-control-timeline { position: relative; margin-top: 14px; padding-bottom: 3px; }
body.nexus-modern-page .nexus-control-timeline:before { position: absolute; top: 14px; bottom: 14px; left: 47px; width: 2px; background: #e2ebef; content: ''; }
body.nexus-modern-page .nexus-control-timeline-event { position: relative; display: grid; grid-template-columns: 48px 20px minmax(0, 1fr); gap: 8px; align-items: start; padding-bottom: 11px; }
body.nexus-modern-page .nexus-control-timeline-event time { padding-top: 14px; color: #334c61; font-size: 13px; font-weight: 700; text-align: right; }
body.nexus-modern-page .nexus-control-timeline-dot { z-index: 1; width: 11px; height: 11px; margin-top: 16px; border: 3px solid #d8f7e2; border-radius: 50%; background: #17a34a; }
body.nexus-modern-page .nexus-control-timeline-event.is-exit .nexus-control-timeline-dot { border-color: #fff0d5; background: #e99400; }
body.nexus-modern-page .nexus-control-timeline-content { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 9px 10px; border: 1px solid #e4edf1; border-radius: 7px; background: #fff; }
body.nexus-modern-page .nexus-control-timeline-content > i { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #e0f7fb; color: var(--nexus-modern-icon-color); font-size: 16px; }
body.nexus-modern-page .nexus-control-timeline-content > div { min-width: 0; flex: 1; }
body.nexus-modern-page .nexus-control-timeline-content strong { display: block; font-size: 13px; }
body.nexus-modern-page .nexus-control-timeline-content p { margin: 3px 0 0; color: #718191; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.nexus-modern-page .nexus-control-timeline-empty { padding: 15px 0 19px 58px; color: #718191; font-size: 12px; }

body.nexus-modern-page .nexus-control-detail-actions { gap: 12px; padding: 15px 17px 17px; }
body.nexus-modern-page .nexus-control-observation { min-width: 0; flex: 1; padding: 8px 10px; border-radius: 6px; background: #eff9fb; }
body.nexus-modern-page .nexus-control-observation span { display: block; color: #647a89; font-size: 10px; font-weight: 700; text-transform: uppercase; }
body.nexus-modern-page .nexus-control-observation span i { margin-right: 5px; color: var(--nexus-modern-icon-color); }
body.nexus-modern-page .nexus-control-observation p { margin: 4px 0 0; color: #506779; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

body.nexus-modern-page .nexus-control-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; min-height: 360px; gap: 8px; border: 1px dashed #cadce4; border-radius: 10px; color: var(--nexus-modern-label-color); background: rgba(255, 255, 255, .6); text-align: center; }
body.nexus-modern-page .nexus-control-empty > i { color: var(--nexus-modern-icon-color); font-size: 30px; }
body.nexus-modern-page .nexus-control-empty strong { color: var(--nexus-modern-text-color); font-size: 16px; }
body.nexus-modern-page .nexus-control-empty span { font-size: 13px; }
body.nexus-modern-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Ajustes visuales del menú en el informe avanzado de fichajes. Se mantienen
 * acotados a esta pantalla hasta que se decida reutilizarlos en otras vistas. */
body.nexus-modern-page.nexus-informes-fichajes-avanzados #navigation-box { background-color: #123f5c !important; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados .nav li a:hover,
body.nexus-modern-page.nexus-informes-fichajes-avanzados .nav li a:focus-visible { border-bottom: 0 !important; box-shadow: none !important; background: #087e9a; color: #fff; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados .nav li:hover,
body.nexus-modern-page.nexus-informes-fichajes-avanzados .nav li > a:hover { border-bottom: 0 !important; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #navigation-box .nav li:hover > a,
body.nexus-modern-page.nexus-informes-fichajes-avanzados #navigation-box .nav li > a:hover { box-sizing: border-box; border: 0 !important; outline: 0; box-shadow: none !important; background-image: none !important; text-decoration: none !important; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #navigation-box .nav li > a:focus-visible { border: 0 !important; box-shadow: none !important; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados .nav li > ul { padding: 6px 0; border: 1px solid rgba(255,255,255,.16); border-top: 0; border-radius: 0 0 8px 8px; background: #0b6178; box-shadow: 0 14px 28px rgba(8,35,53,.28); }
body.nexus-modern-page.nexus-informes-fichajes-avanzados .nav li ul li { height: auto; min-height: 42px; background: #0b6178; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados .nav li ul li a { box-sizing: border-box; display: flex; align-items: center; height: auto; min-height: 42px; padding: 9px 16px; color: #f4fbff; font-size: 11px; font-weight: 500; letter-spacing: 1px; line-height: 1.35; text-transform: uppercase; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados .nav li ul li a:hover { height: auto; border: 0 !important; outline: 0; box-shadow: none !important; background: #087e9a; color: #fff; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados .nav li ul li a:focus-visible { outline: 2px solid #8ce8f1; outline-offset: -2px; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados header #menu:hover,
body.nexus-modern-page.nexus-informes-fichajes-avanzados header #menu:focus-within,
body.nexus-modern-page.nexus-informes-fichajes-avanzados header #menu-alerts:hover,
body.nexus-modern-page.nexus-informes-fichajes-avanzados header #menu-alerts:focus-visible { background: #087e9a; color: #fff; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados header #menu,
body.nexus-modern-page.nexus-informes-fichajes-avanzados header #menu-alerts { background: #123f5c !important; color: #fff !important; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados header #menu:hover,
body.nexus-modern-page.nexus-informes-fichajes-avanzados header #menu:focus-within,
body.nexus-modern-page.nexus-informes-fichajes-avanzados header #menu-alerts:hover,
body.nexus-modern-page.nexus-informes-fichajes-avanzados header #menu-alerts:focus-visible { background: #087e9a !important; color: #fff !important; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados header #menu:focus-visible,
body.nexus-modern-page.nexus-informes-fichajes-avanzados header #menu-alerts:focus-visible { outline: 2px solid #b5f4f8; outline-offset: -3px; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados header #menu:hover .span-menu-bar,
body.nexus-modern-page.nexus-informes-fichajes-avanzados header #menu:focus-within .span-menu-bar { background-color: #fff; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu { background: #123f5c; border-left-color: rgba(255,255,255,.14); box-shadow: -16px 0 36px rgba(8,35,53,.3); }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu #head { background: #0f354e; border-bottom-color: rgba(255,255,255,.14); }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu #content li { min-height: 44px; border: 1px solid transparent; border-radius: 7px; transition: background-color .18s ease, border-color .18s ease; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu #content li:hover,
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu #content li:focus-within { border-color: rgba(107,211,223,.22); background: #087e9a; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu #content li > div:first-child .fa { color: #8ce8f1 !important; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu #content a { color: #f4fbff; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu #content { position: relative; padding-bottom: 104px; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu #content > ul { min-height: 100%; padding-bottom: 0; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu #content > ul > li:last-child { position: absolute; z-index: 4; right: 12px; bottom: 0; left: auto; display: flex; align-items: center; justify-content: flex-end; box-sizing: border-box; width: 150px; height: 56px; min-height: 0; margin: 0 !important; background: transparent !important; color: #a9c0ca; text-align: right; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu #content > ul > li:last-child span { display: block; color: #a9c0ca; font-size: 9px !important; font-weight: 400; line-height: 1.3; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu .nexus-sidebar-company-phone { display: none !important; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu #head > .margin-top-15:nth-child(3) { position: absolute; z-index: 3; right: 0; bottom: 0; left: 0; box-sizing: border-box; height: 56px !important; margin: 0 !important; padding: 0 18px; display: flex; align-items: center; border-top: 1px solid rgba(255,255,255,.12); background: #0b2f45; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu #head > .margin-top-15:nth-child(3) > div { height: auto !important; font-size: 14px !important; line-height: 1 !important; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu #head > .margin-top-15:nth-child(3) a { display: inline-flex; align-items: center; gap: 12px; padding: 8px 12px !important; border: 0; border-radius: 8px; background: transparent !important; color: #f5fbfd !important; font-size: 14px !important; font-weight: 600; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu #head > .margin-top-15:nth-child(3) a:hover,
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu #head > .margin-top-15:nth-child(3) a:focus-visible { color: #8ce8f1 !important; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu #head > .margin-top-15:nth-child(3) a:hover { background: #503940 !important; color: #fff !important; }
body.nexus-modern-page.nexus-informes-fichajes-avanzados #hamburger-menu #head > .margin-top-15:nth-child(3) a .fa { margin: 0; color: #ff8d65; }

@media (max-width: 1180px) {
	body.nexus-modern-page .nexus-control-summary { align-items: flex-start; flex-direction: column; }
	body.nexus-modern-page .nexus-control-kpis { width: 100%; }
	body.nexus-modern-page .nexus-control-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
	body.nexus-modern-page .nexus-control-jornada { padding: 12px; }
	body.nexus-modern-page .nexus-control-table-wrap { height: 340px; }
	body.nexus-modern-page .nexus-control-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.nexus-modern-page .nexus-control-calendar-card .nexus-control-card-header { align-items: flex-start; flex-direction: column; padding-top: 12px; padding-bottom: 12px; gap: 10px; }
	body.nexus-modern-page .nexus-control-detail-worker { flex-wrap: wrap; }
	body.nexus-modern-page .nexus-control-review-button { width: 100%; }
	body.nexus-modern-page .nexus-control-event-cards { grid-template-columns: 1fr; }
	body.nexus-modern-page .nexus-control-detail-actions { align-items: stretch; flex-direction: column; }
	body.nexus-modern-page .nexus-control-correction-button { width: 100%; }
}
