/* ===============================Tokens + base global=============================== */
.drawer-head{
	display: none;
}
:root{
	/* Brand */
	--app-primary: #2E6BFF;
	/* Derived (fallbacks) */
	--app-primary-soft: #f4f6f9;
	--app-primary-hard: #0b1220;
	/* Surfaces / text */
	--app-bg: #f4f6f9;
	--app-surface: #ffffff;
	--app-text: #2c2c2c;
	--app-border: #dddddd;
	/* Layout */
	--app-topbar-h: 52px;
	--app-sidebar-w: 20%;
	--app-drawer-w: 280px;
	/* Motion */
	--app-ease: cubic-bezier(.2,.8,.2,1);
	--app-dur: 220ms;
}
/* Si el navegador soporta color-mix */
@supports (color: color-mix(in srgb, red, white)) {
	:root{
		--app-primary-soft: color-mix(in srgb, white 96%, var(--app-primary) 4%);
		--app-primary-hard: color-mix(in srgb, black 80%, var(--app-primary) 20%);
	}
}
/* Dark mode (solo variables) */
body.theme-dark{
	--app-bg: var(--app-primary-hard);
	--app-surface: #111827;
	--app-text: #e5e7eb;
	--app-border: #243044;
}
/* Reset suave */
*{
	box-sizing: border-box;
}
html, body{
	height: 100%;
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 14px;
	background-color: var(--app-bg);
	color: var(--app-text);
}
/* Evita scroll cuando el drawer está abierto (móvil) */
body.sidebar-lock{
	overflow: hidden;
}
/* ===============================Utilidades comunes=============================== */
.w-100{
	width: 100%;
}
.text-center{
	text-align: center;
}
.mt-1{
	margin-top: 4px;
}
.mt-2{
	margin-top: 8px;
}
.mt-3{
	margin-top: 12px;
}
.mt-4{
	margin-top: 16px;
}
.mb-1{
	margin-bottom: 4px;
}
.mb-2{
	margin-bottom: 8px;
}
.mb-3{
	margin-bottom: 12px;
}
.mb-4{
	margin-bottom: 16px;
}
/* Helpers responsive */
.show-on-mobile{
	display: none !important;
}
/* ===============================Layout AUTH (login / reset)=============================== */
.auth-wrap{
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.auth-card{
	width: 100%;
	max-width: 420px;
}
.auth-title{
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 6px;
}
.auth-subtitle{
	font-size: 14px;
	opacity: .75;
	margin-bottom: 18px;
}
.auth-field{
	margin-bottom: 12px;
}
.auth-actions{
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.auth-footer{
	margin-top: 14px;
	text-align: center;
}
@media (min-width: 768px){
	.auth-wrap{
		padding: 40px;
	}
}
/* ===============================Layout principal (main.xhtml)=============================== */
.app-topbar {
	position: sticky;
	top: 0;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
	border-bottom: 1px solid #ddd;
	background: #fff;
}
/* Acento fino de marca (tipo retail pro) */
.app-topbar::after{
	content:"";
	position:absolute;
	left:0;
	right:0;
	bottom:-1px;
	height: 3px;
	background: var(--app-primary);
}
.app-brand{
	font-weight: 700;
	letter-spacing: .2px;
}
.app-right{
	display: flex;
	align-items: center;
	gap: 10px;
}
.app-shell{
	display: flex;
	min-height: calc(100vh - var(--app-topbar-h));
}
/* Sidebar desktop */
.app-sidebar{
	width: var(--app-sidebar-w);
	padding: 12px;
	border-right: 1px solid var(--app-border);
	background: var(--app-primary-soft);
}
/* Content */
.app-content{
	flex: 1;
	padding: 16px;
}
/* Botón hamburguesa */
.app-burger{
	display: none;
}
/* Overlay (móvil drawer) */
.app-overlay{
	display: none;
	/* desktop */
}
/* ===============================Usuario logueado (topbar)=============================== */
.user-info{
	display: flex;
	align-items: center;
	gap: 8px;
}
.user-name{
	font-weight: 500;
}
.role-badge{
	font-size: 11px;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 10px;
	text-transform: uppercase;
	line-height: 1.6;
}
.role-admin{
	background-color: #fdecea;
	color: #b42318;
}
.role-user{
	background-color: #eef4ff;
	color: #1d4ed8;
}
.role-readonly{
	background-color: #f1f5f9;
	color: #475569;
}
/* ===============================PrimeFaces ajustes suaves (acentos)=============================== */
.ui-panel{
	border-radius: 6px;
}
.ui-inputfield, .ui-password{
	width: 100%;
}
.ui-messages{
	margin-bottom: 12px;
}
/* Botones: acento primario */
.ui-button{
	width: auto;
	background: var(--app-primary) !important;
	border-color: var(--app-primary) !important;
}
body .ui-button:hover{
	filter: brightness(.95);
}
body .ui-button.ui-button-flat.ui-state-hover {
    color: #fff !important;
}
body .ui-button .ui-button-text,
body .ui-button .ui-c {
    color: #ffffff !important;
}
/* Highlight (selección en tablas, etc.) */
body .ui-state-highlight,body .ui-widget-content .ui-state-highlight,body .ui-widget-header .ui-state-highlight{
	background: var(--app-primary) !important;
	border-color: var(--app-primary) !important;
}
/* Focus en inputs */
body .ui-inputfield:focus,body .ui-password input:focus,body .ui-selectonemenu:focus,body .ui-selectcheckboxmenu:focus{
	outline: none;
	border-color: var(--app-primary) !important;
	box-shadow: 0 0 0 2px rgba(0,0,0,0.06);
}
/* Menú: marca lateral sin “bailes” */
.ui-menu .ui-menuitem-link{
	border-left: 4px solid transparent;
	padding-left: 10px;
	/* compensa el borde */
}
.ui-menu .ui-menuitem-link.ui-state-hover,.ui-menu .ui-menuitem-link.ui-state-active{
	border-left-color: var(--app-primary);
	background: color-mix(in srgb, var(--app-primary) 10%, transparent);
}
/* Mensajes: borde lateral */
.ui-messages-info, .ui-message-info{
	border-left: 4px solid var(--app-primary);
}
/* Ajustes dark en superficies PrimeFaces */
body.theme-dark .ui-panel,body.theme-dark .ui-widget-content{
	background: var(--app-surface);
	color: var(--app-text);
}
body.theme-dark .ui-panel .ui-panel-titlebar{
	background: var(--app-surface);
	border-color: var(--app-border);
}
body.theme-dark .ui-inputfield,body.theme-dark .ui-password input{
	background: #0f172a;
	color: var(--app-text);
	border-color: var(--app-border);
}
body.theme-dark .app-sidebar.is-open{
	box-shadow:6px 0 20px rgba(0, 0, 0, 0.55),2px 0 8px rgba(0, 0, 0, 0.35);
}
/* Auth: botones siempre full-width */
.auth-wrap .ui-button,.auth-wrap .ui-button.ui-button-text-only{
	width: 100%;
}
/* ===============================Icono usuario (topbar)=============================== */
.user-menu {
	display: flex;
	align-items: center;
}
.user-icon-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	border-radius: 50%;
}
.user-icon {
	font-size: 20px;
	color: var(--app-primary);
}
/* Hover suave */
.user-icon-link:hover {
	background-color: color-mix(in srgb,var(--app-primary) 10%,transparent);
}
/* Fallback si no hay color-mix */
@supports not (color: color-mix(in srgb, red, white)) {
	.user-icon-link:hover {
		background-color: rgba(0,0,0,0.05);
	}
}
/* ===============================Responsive: móvil / tabletDrawer tipo Leroy Merlin (overlay + slide)=============================== */
@media (max-width: 900px){
	.app-shell{
		display: block;
		min-height: auto;
	}
	.app-burger{
		display: inline-flex;
	}
	/* Overlay visible en móvil */
	.app-overlay{
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(16, 24, 40, .45);
		opacity: 0;
		pointer-events: none;
		transition: opacity var(--app-dur) var(--app-ease);
		z-index: 80;
	}
	.app-overlay.is-active{
		opacity: 1;
		pointer-events: auto;
		backdrop-filter: blur(2px);
	}
	/* Sidebar como drawer superpuesto */
	.app-sidebar{
		position: fixed;
		top: 0;
		left: 0;
		height: 100vh;
		width: var(--app-drawer-w);
		max-width: 88vw;
		padding: 12px;
		border-right: 1px solid var(--app-border);
		background: var(--app-primary-soft);
		transform: translateX(-104%);
		transition: transform var(--app-dur) var(--app-ease);
		z-index: 90;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
	}
	/* Sombra del drawer al abrir (estilo retail) */
	.app-sidebar.is-open{
		box-shadow:6px 0 18px rgba(16, 24, 40, 0.18),2px 0 6px rgba(16, 24, 40, 0.08);
	}
	/* Abierto */
	.app-sidebar.is-open{
		transform: translateX(0);
		opacity: 1;
	}
	.app-sidebar{
		opacity: .98;
	}
	/* Cerrado (compat con tu clase antigua) */
	.app-sidebar.is-collapsed{
		transform: translateX(-104%);
	}
	.app-content{
		padding: 14px;
	}
	/* Mostrar/ocultar por dispositivo */
	.hide-on-mobile{
		display: none !important;
	}
	.show-on-mobile{
		display: inline-flex !important;
	}
	/* Botones full-width en móvil (como ya querías) */
	.ui-button{
		width: 100%;
	}
	/* Drawer retail: header fijo + menú scrolleable */
	.app-sidebar{
		overflow: hidden;
		/* el drawer NO scrollea */
		display: flex;
		flex-direction: column;
	}
	/* Header fijo */
	.drawer-head{
		position: sticky;
		top: 0;
		z-index: 1;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 10px;
		padding: 12px 12px 10px;
		background: var(--app-surface);
		border-bottom: 1px solid var(--app-border);
	}
	.drawer-title{
		font-weight: 700;
		letter-spacing: .2px;
	}
	.drawer-close{
		width: 36px;
		height: 36px;
		border-radius: 10px;
		border: 1px solid var(--app-border);
		background: transparent;
		color: var(--app-text);
		cursor: pointer;
	}
	/* Scroll interno */
	.drawer-body{
		flex: 1;
		overflow: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
		padding: 10px 0 16px;
	}
	/* p:menu “retail”: más touch-friendly */
	.drawer-body .ui-menu{
		border: 0;
		background: transparent;
		width: 100% !important;
	}
	/* items más grandes y cómodos */
	.drawer-body .ui-menu .ui-menuitem-link{
		padding: 12px 12px;
		border-radius: 10px;
	}
	/* submenús con mejor jerarquía */
	.drawer-body .ui-menu .ui-submenu-link{
		padding: 12px 12px;
		font-weight: 600;
	}
	.app-sidebar .app-menu .ui-menuitem-link{
		padding: 12px 12px;
	}
	/* Overlay aparece primero */
	.app-overlay{
		transition: opacity var(--app-dur) var(--app-ease);
	}
	/* Drawer entra con pequeño delay */
	.app-sidebar{
		transition: transform var(--app-dur) var(--app-ease);
		transition-delay: 70ms;
		/* desacople */
	}
	/* Al cerrar, sin delay para que se sienta rápido */
	.app-sidebar.is-collapsed{
		transition-delay: 0ms;
	}
	.app-logo{
		height: 22px;
		width: auto;
	}
	.app-left{
		justify-self: start;
	}
	.app-right{
		justify-self: end;
		display: inline-flex;
		align-items: center;
		gap: 10px;
	}
	.app-topbar{
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		column-gap: 10px;
	}
	.app-title{
		text-align: center;
		justify-self: center;
		max-width: 60%;
		overflow: hidden;
		text-overflow: ellipsis;
		pointer-events: none;
	}
	.mix-row{
		flex-direction: column;
		align-items: stretch;
	}
	.mix-row .ui-slider{
		min-width: 0;
		width: 100%;
	}
	.mix-preview{
		min-width: 0;
		width: 100%;
		justify-content: flex-start;
	}
	.auth-logo{
		height: 44px;
	}
	.auth-appname{
		font-size: 18px;
	}
	.auth-brand::after{
		background: rgba(0,0,0,0.08);
	}
	.ui-menu .menu-mobile-only {
		display: block !important;
	}
	.app-title{
		font-size: 1.2rem;
		/* súbelo si quieres: 1.25–1.35 */
		text-shadow: 0 1px 0 rgba(0,0,0,.06);
		position: relative;
	}
	/* subrayado/“glow” suave con el color primario */
	.app-title::after{
		content: "";
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		bottom: -6px;
		width: 70%;
		height: 3px;
		border-radius: 999px;
		background: color-mix(in srgb, var(--app-primary) 40%, transparent);
		opacity: .9;
	}
	.tb-search{
		min-width: 100%;
	}
	.tb-spacer{
		display:none;
	}
	.tb-row{
		flex-wrap: wrap;
	}
	.tb-middle{
		justify-content: flex-start;
		flex-basis: 100%;
	}
	.tb-search{
		width: 100%;
		max-width: 100%;
	}
	.oos-card {
		padding: 8px 10px;
		border-radius: 10px;
	}
	.oos-icon-img {
		height: 24px;
	}
	.oos-subtitle {
		display: none;
	}
	.profile-actions {
		justify-content: stretch;
	}
	.profile-actions .profile-btn {
		width: 100%;
	}
	.profile-card-header {
		font-size: 1rem;
		padding: 0.6rem 0.75rem;
	}
	.profile-card-header i {
		font-size: 1.25rem;
	}
	.profile-grid{
		grid-template-columns: 1fr !important;
	}
	/* Resetea cualquier span de desktop */
	.profile-card,.profile-card--narrow,.profile-card--wide,.profile-card--full{
		grid-column: 1 / -1 !important;
		/* ocupa todo el ancho del grid */
	}
	/* Si el contenedor padre limita ancho, esto ayuda */
	.profile-grid,.profile-card,.profile-card > .p-card{
		width: 100% !important;
		max-width: 100% !important;
	}
	.profile-tag-full{
		font-size: 1.1rem !important;
	}
	.ev-header{
		flex-wrap: nowrap;
		/* importante: no wrap */
		align-items: center;
	}
	.ev-header__left{
		width: 84px;
		/* un poco más compacto */
		flex: 0 0 84px;
	}
	.ev-header__center{
		flex: 1 1 auto;
		text-align: left;
		min-width: 0;
		/* para permitir elipsis si hace falta */
	}
	.ev-header__right{
		width: 70px;
		flex: 0 0 70px;
		display: flex;
		justify-content: flex-end;
	}
	/* botones en vertical, pegados a la derecha */
	.ev-header__actions{
		display: flex;
		flex-direction: column;
		align-items: flex-end;
		gap: 6px;
	}
	/* El título más compacto */
	.ev-header__title{
		font-size: 16px;
	}
	/* Tag de sección más compacto */
	.ev-section-tag{
		margin-top: 6px;
		display: inline-flex;
	}
	/* Evitar márgenes laterales heredados */
	.ev-header__right .ui-button{
		margin-left: 0 !important;
	}
	.ev-picker{
		flex-direction: column;
		overflow-x: hidden;
	}
	.ev-pick-item{
		min-width: 0;
		/* importante: evita anchuras mínimas */
		width: 100%;
		/* ocupa todo el ancho */
	}
}
.app-sidebar .app-menu{
	border: 0;
	background: transparent;
	padding: 8px 6px;
}
/* Lista base */
.app-sidebar .app-menu .ui-menu-list{
	padding: 0;
	margin: 0;
}
/* Separadores entre secciones */
.app-sidebar .app-menu .ui-separator{
	margin: 10px 6px;
	border-top: 1px solid var(--app-border);
	opacity: .9;
}
/* “Cabecera de sección” (submenu label) */
.app-sidebar .app-menu .ui-submenu-title{
	padding: 10px 10px 6px;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	font-weight: 700;
	color: var(--app-text-muted, var(--app-text));
	opacity: .75;
}
/* Ítems: área clicable grande y consistente */
.app-sidebar .app-menu .ui-menuitem-link{
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 2px 20px;
	padding: 10px 10px;
	border-radius: 12px;
	border-left: 4px solid transparent;
	/* marca lateral */
	transition: background var(--app-dur) var(--app-ease), transform var(--app-dur) var(--app-ease);
	width: 98% !important;
}
/* Texto del ítem */
.app-sidebar .app-menu .ui-menuitem-text{
	font-weight: 600;
}
.stlSA .ui-menuitem-text{
	color: red !important;
}
/* Iconos PrimeIcons: tamaño y alineación */
.app-sidebar .app-menu .ui-menuitem-icon{
	font-size: 16px;
	opacity: .9;
}
/* Hover: “producto” (fondo suave + leve gesto) */
.app-sidebar .app-menu .ui-menuitem-link:hover{
	background: color-mix(in srgb, var(--app-primary) 10%, transparent);
	transform: translateX(1px);
}
/* Tap flash (móvil): feedback rápido 300ms */
.app-sidebar .app-menu .ui-menuitem-link.tap-flash{
	background: color-mix(in srgb, var(--app-primary) 18%, transparent) !important;
}
/* Active: marca lateral + fondo más presente */
.app-sidebar .app-menu .ui-menuitem-link.ui-state-active,.app-sidebar .app-menu .ui-menuitem-link.ui-state-highlight{
	background: var(--app-primary-soft);
	border-left-color: var(--app-primary);
	width: 98% !important;
}
/* Focus accesible (teclado) */
.app-sidebar .app-menu .ui-menuitem-link:focus{
	outline: none;
	box-shadow: 0 0 0 2px color-mix(in srgb, var(--app-primary) 25%, transparent);
}
/* Submenús: indent + “rail” visual para jerarquía */
.app-sidebar .app-menu .ui-menu-child{
	margin: 4px 0 8px;
	padding-left: 10px;
	border-left: 1px solid color-mix(in srgb, var(--app-border) 70%, transparent);
}
/* Ítems dentro de submenú: un poco más compactos */
.app-sidebar .app-menu .ui-menu-child .ui-menuitem-link{
	padding: 9px 10px;
	border-radius: 10px;
}
.app-sidebar .sidebar-panel{
	border: 0;
	background: transparent;
	box-shadow: none;
	padding: 0;
}
/* ===============================Logo + nombre app (topbar)=============================== */
.app-brand-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
}
.app-logo {
	height: 28px;
	/* desktop */
	width: auto;
	display: block;
}
.app-brand {
	font-weight: 700;
	letter-spacing: .2px;
	white-space: nowrap;
}
.app-left{
	display: flex;
	align-items: center;
	gap: 10px;
}
.app-logo-link{
	display: inline-flex;
	align-items: center;
}
/* ===============================Topbar con color primario suave=============================== */
/* Tema claro */
body.theme-light .app-topbar {
	background-color: var(--app-primary-soft);
	border-bottom: 1px solid var(--app-border);
}
.hidden-input{
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
}
.mix-row{
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 6px;
	width: 100%;
}
.mix-preview{
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 220px;
	/* puedes bajarlo si quieres */
}
.mix-row .ui-slider{
	flex: 1 1 auto;
	width: 100%;
	min-width: 240px;
	/* evita que se quede enano */
}
.mix-swatch{
	width: 44px;
	height: 28px;
	border-radius: 8px;
	border: 1px solid var(--app-border);
	display: inline-block;
}
.mix-meta{
	font-size: 12px;
	opacity: 0.85;
	white-space: nowrap;
}
.mix-help{
	display: block;
	margin-top: 6px;
	font-size: 12px;
	opacity: 0.7;
}
/* Centrar botón */
.btn-center{
	display: flex;
	justify-content: center;
}
.auth-brand{
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-bottom: 18px;
	text-align: center;
	position: relative;
	padding-bottom: 14px;
	margin-bottom: 18px;
}
.auth-brand::after{
	content: "";
	display: block;
	width: 70%;
	max-width: 320px;
	height: 1px;
	margin: 14px auto 0 auto;
	background: color-mix(in srgb, var(--app-border) 55%, transparent);
}
.auth-logo{
	height: 56px;
	/* más protagonista */
	width: auto;
	display: block;
	animation: authFadeInUp 280ms ease-out both;
}
@keyframes authFadeInUp {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.auth-appname{
	font-weight: 800;
	letter-spacing: .3px;
	font-size: 20px;
	line-height: 1.2;
	white-space: nowrap;
}
.menu-mobile-only {
	display: none;
}
@media (prefers-reduced-motion: reduce){
	.auth-logo{
		animation: none !important;
	}
}
.cards-grid{
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 8px;
}
.cards-grid > *{
	min-width: 0;
}
.prj-card{
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--app-surface);
	border: 2px solid var(--app-primary);
	border-radius: 16px;
	overflow: hidden;
	/* clave: nada se “sale” y se solapa */
	padding: 14px;
	box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
	transition: transform var(--app-dur) var(--app-ease),box-shadow var(--app-dur) var(--app-ease);
}
.prj-card:hover{
	transform: translateY(-2px);
	box-shadow: 0 10px 22px rgba(16, 24, 40, 0.10);
}
@media (max-width: 1100px){
	.cards-grid{
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 900px){
	.cards-grid{
		grid-template-columns: 1fr;
	}
	/* en móvil: acción debajo y full-width (bonito) */
	.prj-card{
		flex-direction: column;
		gap: 10px;
	}
	.prj-logo{
		flex: 0 0 auto;
		width: 100%;
		height: 110px;
		/* sigue “cuadrado visual” pero en horizontal */
	}
	.prj-actions{
		display: flex;
		justify-content: center;
		align-items: center;
		width: 100%;
	}
	.prj-actions .ui-button{
		width: 100%;
	}
}
.prj-logo{
	flex: 0 0 112px;
	/* cuadrado */
	display: flex;
	align-items: center;
	justify-content: center;
	border-right: 1px solid color-mix(in srgb, var(--app-border) 70%, transparent);
	background: color-mix(in srgb, var(--app-primary) 6%, var(--app-surface));
	border-radius: 12px;
	padding: 10px;
}
.prj-logo-img{
	width: 100%;
	height: 100%;
	object-fit: contain;
}
/* Texto */
.prj-body{
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.prj-desc{
	opacity: .85;
	font-size: .95rem;
	line-height: 1.25;
	/* “pro”: clamp a 2 líneas */
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
/* Acciones a la derecha */
.prj-actions{
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	align-items: center;
	justify-content: flex-end;
}
/* IMPORTANTE: evita que el botón se estire y rompa la grid */
.prj-actions .ui-button{
	width: auto;
	white-space: nowrap;
}
.prj-card::after{
	content: "›";
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	opacity: .25;
	pointer-events: none;
}
@media (max-width: 900px){
	.prj-card::after{
		display:none;
	}
}
.lineaDiv{
	margin: 5px !important;
}
/* Iconos de menuitem y submenu en color primario */
.app-menu .ui-menuitem-icon,.app-menu .ui-submenu-icon{
	color: var(--app-primary) !important;
	margin-right: 10px !important;
}
/* ===============================Topbar title (app-title)=============================== */
.app-title{
	color: var(--app-primary);
	font-weight: 800;
	letter-spacing: 4px;
	line-height: 1.1;
}
.subMenuCl{
	font-weight: bold;
}
/* Desktop: más grande + efecto sutil “pro” */
@media (min-width: 992px){
	.app-title{
		font-size: 1.2rem;
		/* súbelo si quieres: 1.25–1.35 */
		text-shadow: 0 1px 0 rgba(0,0,0,.06);
		position: relative;
	}
}
body .ui-datatable tbody tr.ui-state-highlight > td,body .ui-datatable tbody tr.ui-state-highlight > td *{
	color: #fff !important;
}
/* (opcional) si tienes links dentro de la fila */
body .ui-datatable tbody tr.ui-state-highlight a{
	color: #fff !important;
	text-decoration: underline;
}
body .ui-state-highlight,body .ui-state-highlight *,body .ui-widget-content .ui-state-highlight,body .ui-widget-content .ui-state-highlight *,body .ui-widget-header .ui-state-highlight,body .ui-widget-header .ui-state-highlight *{
	color: #fff !important;
}
/* Iconos dentro del seleccionado */
body .ui-state-highlight .ui-icon,body .ui-state-highlight .pi{
	color: #fff !important;
}
/* SelectOneMenu: item seleccionado en el panel desplegable */
body .ui-selectonemenu-panel .ui-selectonemenu-items .ui-selectonemenu-item.ui-state-highlight,body .ui-selectonemenu-panel .ui-selectonemenu-items .ui-selectonemenu-item.ui-state-highlight *{
	color: #fff !important;
}
.btn-row{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	justify-content: center;
}
.tb-spacer{
	flex: 1 1 auto;
}
.tb-row{
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
}
.tb-left, .tb-middle, .tb-right{
	display: flex;
	align-items: center;
	gap: 10px;
}
.tb-left{
	flex: 0 0 auto;
}
.tb-middle{
	flex: 1 1 auto;
	justify-content: center;
}
.tb-right{
	flex: 0 0 auto;
	justify-content: flex-end;
}
.tb-search{
	width: 260px;
	max-width: 260px;
}
.lang-btn .ui-button-text {
	font-weight: 700;
}
/* ===========================PrimeFaces - Inputs disabled=========================== */
/* InputText, Password, Textarea, etc. */
.ui-inputfield.ui-state-disabled,.ui-inputfield:disabled {
	background-color: #f2f2f2 !important;
	/* gris claro */
	color: #555555 !important;
	/* texto más oscuro */
	opacity: 1 !important;
	/* anula el efecto "lavado" */
	cursor: not-allowed;
}
/* Placeholder en disabled (por si acaso) */
.ui-inputfield.ui-state-disabled::placeholder,.ui-inputfield:disabled::placeholder {
	color: #888888;
}
/* Dropdowns (p:selectOneMenu) */
.ui-selectonemenu.ui-state-disabled {
	background-color: #f2f2f2 !important;
	color: #555555 !important;
	opacity: 1 !important;
}
/* Calendars (p:calendar / p:datePicker) */
.ui-calendar .ui-inputfield.ui-state-disabled {
	background-color: #f2f2f2 !important;
	color: #555555 !important;
	opacity: 1 !important;
}
/* Autocomplete */
.ui-autocomplete-input.ui-state-disabled {
	background-color: #f2f2f2 !important;
	color: #555555 !important;
	opacity: 1 !important;
}
.dlg-roles-options {
	margin-bottom: 16px;
}
.dlg-full-message {
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}
.dlg-actions {
	display: flex;
	justify-content: center;
	margin-top: 8px;
}
.ui-dialog-content {
	padding-top: 12px;
}
.oos-card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	max-width: 320px;
	/* para que no se estire demasiado */
	width: 100%;
	padding: 10px 12px;
	background: #fff3cd;
	border: 1px solid #ffe69c;
	border-radius: 12px;
}
/* Text on the left */
.oos-text {
	flex: 1;
	color: #6b4f00;
	/* texto más oscuro */
	font-weight: 600;
	line-height: 1.2;
}
.oos-subtitle {
	font-size: 0.85rem;
	margin-top: 4px;
	line-height: 1.2;
}
.oos-icon {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
}
.oos-icon-img {
	height: 40px;
	width: auto;
	display: block;
}
.dlg-project .ui-dialog-content {
	padding-top: 12px;
}
/* Tabs spacing */
.dlg-tabs .ui-tabs-panel {
	padding: 14px 6px;
}
.dlg-section {
	padding: 4px 2px;
}
/* Footer centered */
.dlg-footer {
	display: flex;
	justify-content: center;
	padding: 6px 0 2px 0;
}
/* Users row layout */
.dlg-user-row {
	display: flex;
	gap: 10px;
	align-items: flex-end;
}
/* Users list items */
.dlg-user-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 8px;
	border: 1px solid #eee;
	border-radius: 12px;
	margin-bottom: 6px;
	background: var(--app-primary-soft);
}
.dlg-user-name {
	margin-left: 8px;
}
.dlg-user-row .ui-autocomplete {
	flex: 1;
	display: flex;
	/* importante */
}
.dlg-user-row .ui-autocomplete-input {
	width: 100% !important;
}
.oos-icon-img-sm {
	height: 24px;
	width: auto;
	vertical-align: middle;
}
.tr-block {
	border: 1px solid #eee;
	border-radius: 12px;
	padding: 12px;
	background: #fafafa;
}
.tr-lang {
	font-weight: 700;
	margin-bottom: 10px;
}
.profile-grid {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 1rem;
	align-items: stretch;
	/* misma altura por fila */
}
/* Tamaños de cards */
.profile-card {
	grid-column: span 6;
}
.profile-card--narrow {
	grid-column: span 4;
}
.profile-card--wide {
	grid-column: span 8;
}
.profile-card--full {
	grid-column: span 12;
}
/* Card: ocupar altura completa y permitir botón al fondo */
.profile-card > .p-card {
	height: 100%;
	display: flex;
	flex-direction: column;
}
.profile-card .p-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
}
/* Header con icono */
.profile-card-header {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	padding: 0.75rem 1rem;
	border-bottom: 1px solid var(--surface-border, #e0e0e0);
	background: var(--app-primary-soft);
}
.profile-card-header i {
	font-size: 1.4rem;
	color: var(--app-primary);
	flex-shrink: 0;
}
.profile-card-header span {
	font-size: 1.05rem;
	color: var(--text-color, #333);
}
/* Campos */
.profile-fields .p-field {
	margin-bottom: .75rem;
}
.profile-fields .p-field > label {
	display:block;
	margin-bottom: .25rem;
	font-weight: 600;
}
/* =========================PROFILE – BUTTONS========================= */
.profile-actions {
	margin-top: auto;
	/* empuja botones al fondo */
	display: flex;
	justify-content: center;
}
.profile-actions .profile-btn {
	width: 240px !important;
	max-width: 100%;
}
/* =========================PROFILE – SUBTLE ANIMATION========================= */
.profile-anim .profile-anim-card .p-card {
	opacity: 0;
	transform: translateY(6px);
	animation: profileFadeUp .28s ease-out forwards;
}
.profile-anim .profile-anim-card:nth-child(1) .p-card {
	animation-delay: 0ms;
}
.profile-anim .profile-anim-card:nth-child(2) .p-card {
	animation-delay: 30ms;
}
.profile-anim .profile-anim-card:nth-child(3) .p-card {
	animation-delay: 60ms;
}
.profile-anim .profile-anim-card:nth-child(4) .p-card {
	animation-delay: 90ms;
}
.profile-anim .profile-anim-card:nth-child(5) .p-card {
	animation-delay: 120ms;
}
@keyframes profileFadeUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}
.profile-tag-full{
	width: 100%;
	display: flex !important;
	/* fuerza layout horizontal */
	align-items: center;
	justify-content: flex-start;
	font-size: 1.1rem !important;
	/* texto más grande */
	font-weight: 500;
	padding: 0.6rem 0.75rem;
	box-sizing: border-box;
}
/* Icono del tag */
.profile-tag-full .p-tag-icon,.profile-tag-full .pi{
	font-size: 1.25rem !important;
	/* icono visible */
	margin-right: 0.5rem !important;
}
/* Texto del tag */
.profile-tag-full .p-tag-value{
	flex: 1;
	text-align: left;
}
.profile-fields .centroEducativo{
	font-weight: bold;
}
.agrupaMunicipio{
	display: flex;
	gap: 5px;
}
.ev-dataview-clean,.ev-dataview-clean .ui-dataview,.ev-dataview-clean .ui-dataview-content,.ev-dataview-clean .ui-dataview-list {
	background: transparent !important;
	border: none !important;
	padding: 0 !important;
}
/* Quitar borde entre items del list */
.ev-dataview-clean .ui-dataview-list li {
	border: none !important;
	padding: 0 !important;
	margin: 0 !important;
}
/* Quitar cualquier header oculto */
.ev-dataview-clean .ui-dataview-header {
	display: none !important;
}
.ev-header{
	background: var(--app-primary-soft);
	border-radius: 16px;
	padding: 14px 16px;
	margin-bottom: 14px;
	display: flex;
	align-items: center;
	gap: 14px;
}
.ev-header__left{
	width: 120px;
	display:flex;
	align-items:center;
	justify-content:flex-start;
}
.ev-header__logo{
	height: 46px;
	width: auto;
}
.ev-header__center{
	flex: 1;
	text-align: center;
}
.ev-header__title{
	font-size: 20px;
	font-weight: 800;
	line-height: 1.1;
}
.ev-header__section{
	margin-top: 4px;
	opacity: .75;
	font-size: 14px;
	font-weight: 600;
}
.ev-header__right{
	width: 260px;
	display:flex;
	justify-content:flex-end;
}
.ev-header__actions{
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}
.ev-charger-icon {
	width: 90px;
	height: 90px;
	display:flex;
	align-items:center;
	justify-content:center;
}
.ev-charger-number {
	padding: 0 6px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 13px;
	background: rgba(255,255,255,.85);
	border: 1px solid rgba(0,0,0,.12);
}
.ev-charger-textos{
	display: flex;
	flex-direction: row;
	align-items: center;
}
.ev-charger-servicio{
	display: flex;
	flex-direction: row;
}
.ev-charger-icon .ev-charger-svg {
	width: 90px;
	height: auto;
	color: #666;
	/* fallback */
}
/* Estados */
.ev-charger-icon.state-ok .ev-charger-svg {
	color: #2e7d32;
}
.ev-charger-icon.state-warning .ev-charger-svg {
	color: #f9a825;
}
.ev-charger-icon.state-danger .ev-charger-svg {
	color: #c62828;
}
.ev-charger-icon.state-locked .ev-charger-svg {
	color: #6a1b9a;
}
/* Estados */
.state-ok {
	color: #2e7d32;
}
/* verde */
.state-warning {
	color: #f9a825;
}
/* amarillo */
.state-danger {
	color: #c62828;
}
/* rojo */
.state-locked {
	color: #6a1b9a;
}
/* morado */
.ev-pick-icon svg {
	width: 54px;
	height: auto;
}
.ev-inplace-name .ui-inplace-display {
	padding: 2px 6px;
	border-radius: 10px;
}
.ev-inplace-name .ui-inplace-display:hover {
	background: rgba(0,0,0,.06);
	cursor: pointer;
}
.ev-inplace-location .ui-inplace-display {
	padding: 2px 4px;
	border-radius: 8px;
	font-size: 13px;
}
.ev-inplace-location .ui-inplace-display:hover {
	background: rgba(0,0,0,.04);
	cursor: pointer;
}
.ui-tooltip .ui-tooltip-text {
	font-weight: 600;
	line-height: 1.25;
}
.ev-step-card {
	margin-bottom: 14px;
}
.ev-picker{
	display: flex;
	gap: 10px;
	overflow-x: auto;
	padding: 6px 2px;
}
.ev-pick-item{
	display: flex;
	gap: 10px;
	align-items: center;
	min-width: 260px;
	padding: 10px 12px;
	border-radius: 16px;
	border: 1px solid rgba(0,0,0,.14);
	background: rgba(255,255,255,.7);
	text-decoration: none !important;
	/* ✅ sin underline */
	color: inherit;
	transition: all 0.15s ease;
}
.ev-pick-item:hover {
	background: rgba(0,0,0,.03);
	text-decoration: none !important;
	/* ✅ mantiene limpio */
}
.ev-pick-item.is-selected {
	background: var(--app-primary-soft) !important;
	border: 2px solid rgba(0,0,0,.25) !important;
	box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.ev-pick-item.is-selected:hover {
	background: var(--app-primary-soft) !important;
}
.ev-pick-item * {
	text-decoration: none !important;
}
.ev-pick-item.is-selected::after {
	content: "✓";
	font-weight: 900;
	margin-left: auto;
	opacity: .6;
}
.ev-pick-item.is-disabled {
	opacity: 0.45;
	filter: grayscale(25%);
}
/* Si además está seleccionado, que se note */
.ev-pick-item.is-disabled.is-selected {
	opacity: 0.75;
}
.ev-pick-item.is-disabled::after {
	content: "⚠";
	margin-left: auto;
	font-size: 18px;
	opacity: 0.6;
}
/* Badge conector */
.ev-connector-badge{
	width: 42px;
	height: 42px;
	border-radius: 999px;
	display:flex;
	align-items:center;
	justify-content:center;
	border: 1px solid rgba(0,0,0,.12);
}
.ev-slots{
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ev-slot{
	width: 100%;
	text-align: left;
	border-radius: 14px;
	background: white !important;
	color: black !important;
}
.ev-slot.is-disabled{
	opacity: .45;
	filter: grayscale(20%);
}
.ev-slot.is-reserved{
	/* opcional: que se note más */
	opacity: .55;
}
.ev-slot.is-selected{
	background: var(--app-primary-soft) !important;
	border: 2px solid rgba(0,0,0,.25) !important;
}
.is-reserved{
	background: lightpink !important;
}
.is-mine{
	background: aquamarine !important;
}
.ev-day-layout{
	display: grid;
	grid-template-columns: 360px 1fr;
	gap: 18px;
	align-items: start;
}
.ev-calendar-wrap{
	border: 1px solid rgba(0,0,0,.08);
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
/* “Header” pegado al calendario */
.ev-calendar-header{
	padding: 10px 12px;
	font-weight: 800;
	text-align: center;
	background: var(--app-primary-soft);
	border-bottom: 1px solid rgba(0,0,0,.08);
}
/* Texto del día */
.ev-calendar-header #selectedDayText{
	display: block;
}
/* Ajuste del datepicker inline para que no parezca suelto */
.ev-calendar-body{
	padding: 10px;
	display:flex;
	justify-content:center;
}
/* Opcional: compactar el datePicker para que encaje fino */
.ev-calendar-body .ui-datepicker{
	border: 0 !important;
	box-shadow: none !important;
}
/* Caja de slots */
.ev-slots-wrap{
	border: 1px solid rgba(0,0,0,.08);
	border-radius: 14px;
	background: #fff;
	padding: 12px;
	box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
/* Slots: mantiene tu grid/scroll actual si ya lo tienes */
.ev-slots-empty{
	padding: 12px;
	text-align: center;
	opacity: .75;
}
/* Footer meta */
.ev-slots-meta{
	margin-top: 10px;
	text-align: center;
	opacity: .75;
}
.ev-step-card,.ev-day-layout{
	overflow-x: hidden;
}
.ev-slots{
	overflow-x: hidden;
}
/* ===============================EV Reservations – responsive day/slots layout (clean)=============================== */
/* Asegura que el grid no provoque overflow horizontal */
.ev-day-layout > *{
	min-width: 0;
}
/* Móvil: calendario arriba, slots debajo */
@media (max-width: 768px){
	.ev-day-layout{
		grid-template-columns: 1fr;
	}
	.ev-calendar-wrap,.ev-slots-wrap{
		width: 100%;
	}
}
/* ===============================EV Reservations – CTA Reservar (pro)=============================== */
.ev-reserve-cta{
	display: flex;
	justify-content: center;
	margin-top: 12px;
}
.ev-reserve-btn.ui-button,button.ev-reserve-btn{
	font-size: 16px;
	font-weight: 800;
	padding: 12px 22px;
	border-radius: 16px;
	width: 340px;
	max-width: 100%;
}
@media (max-width: 900px){
	.ev-reserve-btn.ui-button,button.ev-reserve-btn{
		width: 100%;
	}
}
/* Tag advertencia encima del botón (no azul) */
.ev-reserve-warn.ui-tag,.ev-reserve-warn{
	display: block;
	width: 100%;
	text-align: center;
	margin: 0 0 10px 0;
	background: #fff3cd !important;
	color: #6b4f00 !important;
	border: 1px solid #ffe69c !important;
}
body .ui-datepicker .ui-datepicker-calendar td.ui-state-disabled>a,body .ui-datepicker .ui-datepicker-calendar td>span {
	background: #e6e6e6 !important;
	color: #707070 !important;
	border-radius: 999px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 2.1em !important;
	height: 2.1em !important;
	line-height: 2.1em !important;
	padding: 0 !important;
	margin: 0 auto !important;
}
/* Evita que hover/estilos del theme “ensucien” el día deshabilitado */
body .ui-datepicker .ui-datepicker-calendar td.ui-state-disabled > span:hover,body .ui-datepicker .ui-datepicker-calendar td.ui-datepicker-unselectable > span:hover{
	background: #e0e0e0 !important;
}
/* Configuración de las 2 columnas */
.grid-sinoptico {
	display: grid;
	grid-template-columns: 1fr 1fr;
	/* Fuerza 2 columnas iguales */
	gap: 20px;
	/* Espacio entre los elementos */
}
/* En móviles (menos de 600px), si quieres que pase a 1 columna opcionalmente */
@media (max-width: 600px) {
	.grid-sinoptico {
		grid-template-columns: 1fr;
	}
}
/* Estilos del "Monitor" */
.card-monitor {
	background: white;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 10px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.screen-box {
	width: 100%;
	aspect-ratio: 16 / 9;
	/* Mantiene la proporción física */
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	border-radius: 4px;
}
.screen-active {
	background-color: #1e293b;
	border: 2px solid #6366f1;
	color: #818cf8;
}
.screen-empty {
	background-color: #f8fafc;
	border: 2px dashed #cbd5e1;
	color: #94a3b8;
}
.screen-box i {
	font-size: 2.5rem;
}
.screen-badge {
	position: absolute;
	bottom: 8px;
	right: 8px;
	background: rgba(0,0,0,0.6);
	color: white;
	font-size: 10px;
	padding: 2px 6px;
	border-radius: 3px;
	font-family: monospace;
}
.monitor-name {
	font-weight: bold;
	font-size: 0.9rem;
	margin-top: 10px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: center;
}
.monitor-status {
	font-size: 0.75rem;
	color: #64748b;
	text-align: center;
	margin-bottom: 8px;
	text-transform: uppercase;
}
/* 1. Efecto Scanline (línea que recorre la pantalla) */
.scanline {
	width: 100%;
	height: 4px;
	background: rgba(99, 102, 241, 0.2);
	position: absolute;
	top: 0;
	z-index: 1;
	animation: scan 3s linear infinite;
}
@keyframes scan {
	0% {
		top: 0;
	}
	100% {
		top: 100%;
	}
}
/* 2. El icono que late */
.pulse-container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pulse-icon {
	font-size: 2.5rem;
	color: #818cf8;
	z-index: 2;
}
.pulse-ring {
	position: absolute;
	width: 40px;
	height: 40px;
	background: rgba(99, 102, 241, 0.4);
	border-radius: 50%;
	animation: ripple 1.5s ease-out infinite;
}
@keyframes ripple {
	0% {
		transform: scale(1);
		opacity: 1;
	}
	100% {
		transform: scale(2.5);
		opacity: 0;
	}
}
/* 3. Texto "LIVE" estilo monitor */
.live-text {
	font-size: 0.6rem;
	font-weight: bold;
	color: #6366f1;
	letter-spacing: 2px;
	margin-top: 8px;
	text-shadow: 0 0 5px rgba(99, 102, 241, 0.5);
}
/* 4. Mejora del fondo activo para que parezca una pantalla real */
.screen-active {
	background: radial-gradient(circle, #1e1b4b 0%, #020617 100%) !important;
	overflow: hidden;
	border: 2px solid #4f46e5 !important;
	box-shadow: inset 0 0 20px rgba(79, 70, 229, 0.3);
}
/* 1. Efecto de elevación y escala */
.punto-emision-item {
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
	/* Efecto elástico suave */
}
.punto-emision-item:hover {
	transform: translateY(-5px) scale(1.03);
	/* Sube un poco y crece un 3% */
	z-index: 10;
	/* Asegura que se vea por encima de los demás */
}
/* 2. Resaltado del borde en hover */
.punto-emision-item:hover .card-monitor {
	box-shadow: 0 10px 20px rgba(0,0,0,0.15);
	border-color: #6366f1;
}
/* 3. Brillo extra en la pantalla si está activa */
.punto-emision-item:hover .screen-active {
	box-shadow: inset 0 0 30px rgba(99, 102, 241, 0.6), 0 0 15px rgba(99, 102, 241, 0.4);
	filter: brightness(1.2);
}
/* 4. Si la pantalla está vacía, que cambie el color del borde al pasar el ratón */
.punto-emision-item:hover .screen-empty {
	border-color: #94a3b8;
	background-color: #f1f5f9;
}
.punto-emision-item:hover .ui-button-flat {
	background-color: rgba(99, 102, 241, 0.6) !important;
	color: #4f46e5 !important;
}
.rounded-button{
	color: white !important;
}
.rounded-button {
	border: 2px solid white !important;
	/* Borde de 2px */
	transition: all 0.2s ease;
	/* Suaviza el cambio al hacer hover */
}
.i18n-cell-edit{
	display:flex;
	align-items:center;
	gap:.5rem;
}
.i18n-cell-actions{
	display:flex;
	gap:.35rem;
	white-space:nowrap;
}
.i18n-cell-input,.i18n-cell-input input{
	color: black !important;
	background:#fff !important;
}
.i18n-cell-ok i{
	font-size:1rem;
}
.i18n-cell-cancel i{
	font-size:1rem;
}
.toolBarLeftSin .ui-toolbar-group-left{
	gap: 5px;
}
.pr-home-actions{
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.pr-home-action__media{
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: rgba(0,0,0,.03);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	overflow: hidden;
}
.pr-home{
	display: grid;
	grid-template-columns: 1fr 420px;
	gap: 18px;
	align-items: start;
}
@media (max-width: 900px){
	.pr-home{
		grid-template-columns: 1fr;
	}
	/* En móvil: primero accesos, luego sinóptico */
	.pr-home-right{
		order: 1;
	}
	.pr-home-left{
		order: 2;
	}
}
/* IZQUIERDA: card sinóptico */
.pr-home-synoptic{
	border: 1px solid rgba(0,0,0,.08);
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.pr-home-synoptic__title{
	padding: 12px 14px;
	font-weight: 800;
	background: var(--app-primary-soft);
	border-bottom: 1px solid rgba(0,0,0,.08);
}
.pr-home-synoptic__body{
	padding: 14px;
}
.pr-home-synoptic__placeholder{
	opacity: .78;
	text-align: center;
	padding: 26px 12px;
}
/* DERECHA: acciones */
.pr-home-actions{
	display: flex;
	flex-direction: column;
	gap: 12px;
}
/* CTA estilo “tarjeta clicable” */
.pr-home-action{
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border: 1px solid rgba(0,0,0,.08);
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0,0,0,.06);
	text-decoration: none !important;
	color: inherit;
	cursor: pointer;
	transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.pr-home-action:hover{
	transform: translateY(-1px);
	box-shadow: 0 12px 30px rgba(0,0,0,.08);
	border-color: rgba(0,0,0,.14);
	text-decoration: none !important;
}
.pr-home-action:active{
	transform: translateY(0);
	box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
.pr-home-action__media{
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: rgba(0,0,0,.03);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	overflow: hidden;
}
.pr-home-action__img{
	width: 50px;
	height: 50px;
	object-fit: cover;
	display: block;
}
.pr-home-action__text{
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.pr-home-action__title{
	font-weight: 800;
	font-size: 1.05rem;
	line-height: 1.15;
}
.pr-home-action__subtitle{
	opacity: .78;
	font-size: .92rem;
	line-height: 1.2;
}
.pr-home-action__chev{
	margin-left: auto;
	opacity: .6;
	flex: 0 0 auto;
}
@media (max-width: 480px){
	.pr-home-action{
		padding: 12px;
	}
	.pr-home-action__media,.pr-home-action__img{
		width: 52px;
		height: 52px;
	}
}
.notification-link,.notification-link:hover,.notification-link:focus {
	text-decoration: none !important;
	/* Elimina el subrayado por completo */
	outline: none;
	/* Quita el borde de enfoque de navegador */
	position: relative;
	display: inline-flex;
	align-items: center;
}
.notification-link:hover {
	transform: scale(1.1);
}
.notification-icon {
	font-size: 1.4rem;
}
.notification-badge {
	position: absolute;
	/* Ajustamos estos dos valores: */
	top: 12px;
	/* Aumentamos para que baje (antes estaba en -5px) */
	right: -7px;
	/* Ajustamos para que se desplace a la derecha */
	background-color: white;
	color: #ef4444;
	border: 2px solid #ef4444;
	font-size: 0.65rem;
	font-weight: 800;
	border-radius: 40%;
	min-width: 16px;
	height: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	/* Evita que el badge capture el click si quieres que siempre pulse la campana */
	pointer-events: none;
}
/* Aseguramos que el contenedor tenga el tamaño justo del icono */
.notification-link {
	position: relative;
	display: inline-flex;
	padding: 5px;
	/* Un poco de respiro para que el badge no se corte */
}
.notification-link:hover .notification-badge {
	background-color: #ef4444;
	color: white;
	transition: all 0.2s ease;
}
/* ==========================================================================TIPOLOGÍA 1: ALTA RESOLUCIÓN (Escritorios Grandes > 1450px)========================================================================== */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-top: 8px;
}
.cards-grid > * {
	min-width: 0;
}
.prj-card {
	position: relative;
	display: flex;
	flex-direction: row;
	/* Estructura horizontal en pantallas grandes */
	gap: 16px;
	background: var(--app-surface, #ffffff);
	border: 2px solid var(--app-border, #dddddd);
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
/* Enlace invisible para hacer clickeable toda la tarjeta si está activa */
.prj-card-click-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	cursor: pointer;
}
/* Bloque izquierdo fijo para el Logo */
.prj-logo {
	flex: 0 0 100px;
	height: 100px;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}
.prj-logo-img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
/* Nuevo bloque derecho: Agrupa el texto arriba y las acciones abajo */
.prj-content {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	/* Empuja las acciones siempre al fondo de la tarjeta */
	gap: 12px;
}
.prj-title {
	font-weight: 800;
	font-size: 1.1rem;
	color: var(--app-text, #2c2c2c);
	margin-bottom: 4px;
	line-height: 1.2;
	display: flex;
	justify-content: flex-end;
}
.prj-desc {
	font-size: 0.9rem;
	opacity: 0.8;
	line-height: 1.3;
}
/* Las acciones se posicionan debajo del texto, evitando el estrangulamiento */
.prj-actions {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	position: relative;
	z-index: 3;
	/* Por encima del overlay para que mantenga su interacción */
}
/* Botón visual para desktop (el click ya lo gestiona la propia tarjeta) */
.prj-open-btn {
	pointer-events: none;
}
/* Flecha decorativa sutil en el hover de pantallas grandes */
.prj-card::after {
	content: "›";
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	opacity: 0;
	transition: opacity 0.2s ease, right 0.2s ease;
	pointer-events: none;
}
.prj-card.is-active:hover::after {
	opacity: 0.5;
	right: 12px;
}
/* --- Sub-estilos para "Fuera de Servicio" --- */
.prj-card.is-oos {
	border-color: #fbd38d !important;
	background-color: #fffaf0;
	cursor: help;
}
.prj-card.is-oos::after {
	display: none !important;
}
.prj-card.is-oos .prj-logo-img {
	filter: grayscale(100%) opacity(40%);
}
.oos-logo-lock {
	position: absolute;
	bottom: -4px;
	right: -4px;
	background: #dd6b20;
	color: #fff;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	border: 2px solid #fffaf0;
	z-index: 3;
}
.oos-status-badge {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	background: #feebc8;
	color: #c05621;
	border: 1px solid #fbd38d;
	border-radius: 12px;
	font-size: 0.8rem;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
/* ==========================================================================TIPOLOGÍA 2: RESOLUCIÓN INTERMEDIA (Laptops / Tablets, 850px a 1450px)========================================================================== */
@media (max-width: 1450px) {
	/* Saltamos a 2 columnas para proteger pantallas de 1440px y portátiles pequeños */
	.cards-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
	}
	/* La tarjeta pasa a formato puramente vertical */
	.prj-card {
		flex-direction: column;
		align-items: stretch;
		padding: 18px;
	}
	.prj-card::after {
		display: none !important;
	}
	.prj-logo {
		width: 100%;
		height: 120px;
		/* El logo se vuelve el centro de atención superior */
		margin-bottom: 4px;
	}
	.prj-actions {
		margin-top: 6px;
		width: 100%;
	}
	/* El botón o el badge se ensanchan al 100% en la base de la tarjeta */
	.prj-actions .ui-button,.oos-status-badge {
		width: 100% !important;
		justify-content: center;
		box-sizing: border-box;
		text-align: center;
	}
	/* Habilitamos interacción directa en el botón en entornos táctiles/tablets */
	.prj-open-btn {
		pointer-events: auto;
	}
}
/* ==========================================================================TIPOLOGÍA 3: BAJAS RESOLUCIONES / MÓVILES (< 850px)========================================================================== */
@media (max-width: 850px) {
	/* La rejilla fluye en una sola columna vertical limpia */
	.cards-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.prj-card {
		padding: 14px;
	}
	.prj-logo {
		height: 100px;
	}
}
.auth-legal {
	margin-top: 1.25rem;
	text-align: center;
	font-size: 0.85rem;
	color: #777;
}
.auth-legal a {
	color: inherit;
	text-decoration: none;
}
.auth-legal a:hover {
	text-decoration: underline;
}
.auth-legal-separator {
	margin: 0 0.4rem;
	color: #aaa;
}
/* El enlace invisible que ahora se come toda la tarjeta sin molestar a nadie */
.prj-card-anchor-wrapper {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 5;
	cursor: pointer;
}
/* Efecto visual de "Botón/Tarjeta Levantada" al pasar el ratón */
.prj-card.is-active:hover {
	transform: translateY(-4px);
	/* Se eleva un poquito */
	border-color: #3b82f6 !important;
	/* El borde se vuelve azul premium */
	box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1), 0 4px 6px -2px rgba(59, 130, 246, 0.05) !important;
	/* Sombra sutil azulada */
}
/* Animación opcional para la flechita del título */
.prj-hover-arrow {
	font-size: 0.85rem;
	color: #3b82f6;
	opacity: 0;
	transform: translateX(-5px);
	transition: all 0.2s ease;
	margin-left: 6px;
}
.prj-card.is-active:hover .prj-hover-arrow {
	opacity: 1;
	transform: translateX(0);
}
.prj-card .prj-title:after,.prj-card .prj-title:before {
	content: none !important;
	/* Desactiva el icono de PrimeIcons viejo */
	display: none !important;
	/* Por seguridad */
}

.ui-selectbooleanbutton.ui-state-active, 
.ui-selectonebutton>.ui-button.ui-state-active, 
.ui-selectmanybutton>.ui-button.ui-state-active {
     background: #2196f3 !important;
 }
