.custom-hover-scale {
    /* Propiedad para permitir la animación */
    transition: transform 0.2s ease-in-out;
}

.custom-hover-scale:hover {
    /* Agrandar el elemento un 10% */
    transform: scale(1.1);
    /* Asegura que el botón esté sobre otros elementos al agrandarse */
    z-index: 10;
}

.table-scroll {
    max-height: calc(97vh - 320px);
}

/* CLASE PARA EL OVERLAY (Superposición) */
#loader-overlay {
    /* Posicionamiento y dimensiones */
    position: absolute; /* CLAVE: Se posiciona con respecto al padre relative */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Asegura que esté por encima de la tabla */

    /* Fondo semi-transparente para oscurecer la tabla */
    /*background-color: rgba(0, 0, 0, 0.048);  */
}

/* CLASE PARA CENTRAR EL SPINNER */
.overlay-content {
    width: 100%;
    height: 100%;
}

#profileTabs .tab-profile.active {
    background-color: #53A57F;
    color: #fff;
}

/* Layout base */
#layoutSidenav {
    height: calc(100vh - 56px);
}

/* Despachos */


.mini-card {
    min-width: 140px; /* Evita que la tarjeta sea demasiado pequeña */
    display: flex !important;
    flex-direction: row !important;
}

.mini-card .col {
    min-width: 0; /* Necesario para que text-truncate funcione dentro de flexbox */
}

/* Efecto al pasar el mouse para que parezca interactivo */
.mini-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}



* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}


:root {
	--exito: #67b87c;
	--error: #bf333b;
	--info: #1898c0;
	--warning: #bc8c12;
	--exito-hover: #2d8a46;
	--error-hover: #962a31;
	--info-hover: #147fa0;
	--warning-hover: #9b7512;
}

.contenedor-botones {
	display: flex;
	gap: 5px;
}

.btn_app {
	padding: 5px 15px;
	font-size: 18px;
	background: #000;
	border: none;
	cursor: pointer;
	color: #fff;
	border-radius: 5px;
	transition: 0.3s ease all;
}


.btn_app.exito {
	background: var(--exito);
}
.btn_app.error {
	background: var(--error);
}
.btn_app.info {
	background: var(--info);
}
.btn_app.warning {
	background: var(--warning);
}

/* Hover */
.btn_app.exito:hover {
	background: var(--exito-hover);
}
.btn_app.error:hover {
	background: var(--error-hover);
}
.btn_app.info:hover {
	background: var(--info-hover);
}
.btn_app.warning:hover {
	background: var(--warning-hover);
}

.contenedor-toast {
	position: fixed;
	right: 40px;
	top: 80px;
	width: 100%;
	max-width: 300px;
	display: flex;
	flex-direction: column-reverse;
	gap: 10px;
}

.notification {
	background: #ccc;
	display: flex;
	justify-content: space-between;
	border-radius: 10px;
	overflow: hidden;
	animation-name: apertura;
	animation-duration: 200ms;
	animation-timing-function: ease-out;
	position: relative;
}

.notification.exito {
	background: var(--exito);
}
.notification.error {
	background: var(--error);
}
.notification.info {
	background: var(--info);
}
.notification.warning {
	background: var(--warning);
}

.notification .contenido {
	display: grid;
	grid-template-columns: 30px auto;
	align-items: center;
	gap: 15px;
	padding-left: 15px;    
}

.notification .textp {
    margin: 0px;
    align-items: center;
}

.notification .icono {
	color: rgba(0, 0, 0, 0.4);
}

.notification .titulo {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 1px;
    
}

.notification .btn-cerrar {
	background: rgba(0, 0, 0, 0.1);
	border: none;
	cursor: pointer;
	padding: 0px 5px;
	transition: 0.3s ease all;
}

.notification .btn-cerrar:hover {
	background: rgba(0, 0, 0, 0.3);
}

.notification .btn-cerrar .icono {
	width: 20px;
	height: 20px;
	color: #fff;
}


@keyframes apertura {
	from {
		transform: translateY(100px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.notification.cerrando {
	animation-name: cierre;
	animation-duration: 200ms;
	animation-timing-function: ease-out;
	animation-fill-mode: forwards;
}

@keyframes cierre {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(calc(100% + 40px));
	}
}

.notification.autoCierre::after {
	content: '';
	width: 100%;
	height: 4px;
	background: rgba(0, 0, 0, 0.5);
	position: absolute;
	bottom: 0;
	animation-name: autoCierre;
	animation-duration: 5s;
	animation-timing-function: ease-out;
	animation-fill-mode: forwards;
}

@keyframes autoCierre {
	from {
		width: 100%;
	}
	to {
		width: 0%;
	}
}