html, body {
    height: 100%;
    margin: 0;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1;
    padding: 1rem;
}

.content-centered {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer {
    background-color: #f8f9fa;
    padding: 1rem;
    text-align: center;
    margin-top: auto;
}

/* ============================================================== */
/* ============================================================== */

.file-container .div-file {
    position: relative;
    display: inline-block;
    width: 100%;
}

.file-container .div-file::before {
    background-color: #449D44;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 3px;
    content: 'Seleccionar Archivo';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    font-size: 14px;
    cursor: pointer;
}

.file-container input[type="file"].file {
    opacity: 0;
    height: 32px;
    width: 100%;
    display: inline-block;
    cursor: pointer;
}

/* NUEVO: truncamiento del nombre del archivo cargado */
.file-container .file-name-truncated {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    font-size: 13px;
    margin-top: 4px;
    color: #555; /* opcional: para que no se vea tan fuerte */
}

/* ============================================================== */
/* ============================================================== */

.loadingIndicator{
    display: none;
    text-align: center;
    margin-top: 20px;
}

.loadingIndicator > img{
    width: 100px;
    height: 100px;
}

/* ============================================================== */
/* ============================================================== */

.f14 {
    font-size: 14px;
    font-weight: bold;
}

.btn-circle {
    padding-left: 0.3rem !important;
    padding-right: 0.3rem !important;
    padding-top: 0.0rem !important;
    padding-bottom: 0.0rem !important;
}

/* ============================================================== */
/* ============================================================== */

.dt-buttons {
    margin-bottom: 2rem;
    display: block;
}

.dataTables_length {
    width: 50% !important;
    display: inline-block;
    color: #555;
}

.dataTables_length label select {
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.dataTables_filter {
    width: 50% !important;
    display: inline-block;
    text-align: right;
}

.dataTables_filter label {
    color: #555;
}

.dataTables_filter label input {
    margin-left: 1rem;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-color ease-in-out .15s, -webkit-box-shadow ease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

.dataTables_scroll {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.dataTables_info {
    width: 50%;
    display: inline-block;
    color: #555;
}

.dataTables_paginate {
    width: 50%;
    display: inline-block;
    text-align: right;
}

.dataTables_paginate a {
    text-decoration: none;
    color: #555;
    border: solid 1px #555;
    padding: 0.3rem;
    vertical-align: middle;
}

.dataTables_paginate span a {
    background-color: #337AB7;
    border: solid 1px #555;
    width: 100%;
    padding: 0.3rem 0.5rem;
    color: white;
    vertical-align: middle;
}

.table-responsive {
    overflow-x: initial;
}

/* ============================================================== */
/* ============================================================== */

.hover-li:hover {
    background-color: #337AB7;
    /* Color de fondo deseado */
}

/* ============================================================== */
/* ============================================================== */

/* Estilos grid permisos */
.permiso-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 640px) {
    .permiso-grid {
        grid-template-columns: 1fr 1fr; /* 2 columnas a partir de 640px (sm) */
    }
}

@media (min-width: 992px) {
    .permiso-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr; /* 3 columnas a partir de 1024px (lg) */
    }
}

.permiso-item {
    display: flex;
    align-items: center;
    padding: 10px;
}

.permiso-item label {
    margin-left: 8px;
}

/* ============================================================== */
/* ============================================================== */

/* Estilos generales del select2 */

.select2-container .select2-selection--single {
    height: 38px !important;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #dee2e6 !important;
    border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}

/* Alinea verticalmente la flecha del select2 */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 38px;
    top: 0;
    right: 10px;
    position: absolute;
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 26px;
}

.select2-container {
    z-index: 9999 !important;
}

.select2-dropdown {
    z-index: 99999 !important;
}

/* ============================================================== */
/* ============================================================== */

/* Oculta el ícono nativo del datepicker */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    cursor: pointer;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}

input[type="date"]::-moz-calendar-picker-indicator {
    display: none;
}

input[type="date"] {
    position: relative;
    background-color: transparent;
    z-index: 2;
}

.input-group-text {
    cursor: pointer;
}

/* ============================================================== */
/* ============================================================== */

/* INICIO Media Query TopMenu */
@media (max-width: 992px) {
    .menu-container {
		order: 1 !important;
		display: flex;
		flex-direction: column;
		padding-left: 0;
		padding-right: 0;
		justify-content: center;
        position: relative;
        width: 50% !important;
	}

    .navbar .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
	}

    .navbar-toggler {
		width: 100%;
		margin-left: auto !important;
		margin-right: auto !important;
	}

    #navbarNavDropdown {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1050;
        background-color: #337AB7 !important;
        width: 100vw !important;
        padding-left: 1rem !important;
        margin-top: 0.5rem !important;
    }

	.logo-container {
		order: 2 !important;
        width: 50% !important;
        padding-left: 0;
		padding-right: 0;
        display: flex;
		justify-content: center;
	}

	.logo-container a {
		display: flex;
		justify-content: center;
	}

	.logo-container a img{
		width: 100% !important;
		height: 100% !important;
	}

    /* FIN Media Query TopMenu  */

    .dataTables_length{
        width: 100%;
    }

    .dataTables_filter {
        margin-top: 2rem;
        width: 100%;
        display: block;
    }

    .dataTables_info{
        width: 100%;
        margin-bottom: 1rem;
    }

	
}
 /* FIN Media Query  */

/* ============================================================== */
/* ============================================================== */





