/* Estilos para el loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 19999;
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #00A99D;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loading-text {
    color: #00A99D;
    font-weight: bold;
    font-size: 16px;
}
.select2 {
    z-index: 100 !important;
}

/* Estilo para botones en estado de procesamiento */
.processing {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.btn-ideva {
    background-color: #00A99D !important; /* Color de fondo */
    color: #ffffff !important; /* Color del texto */
    border: 1px solid #00a99d !important; /* Borde del mismo color */
}

.btn-ideva:hover {
    background-color: #00A99D !important; /* Color más oscuro al pasar el cursor */
    border-color: #00A99D !important;
    color: #ffffff !important;
}

.btn-ideva:focus,
.btn-ideva:active {
    background-color: #00A99D !important;
    border-color: #00A99D !important;
    color: #ffffff !important;
}

.form-control:focus {
    border-color: #00A99D !important; /* Mantener el borde al enfocar */
    box-shadow: 0 0 0 0.2rem rgba(0, 169, 157, 0.25) !important; /* Sombra al enfocar */
    outline: none !important;
}

.nav-custom .nav-link {
    color: #00A99D !important; /* Color del texto */
    border-color: #00A99D !important; /* Borde de las tabs */
}
.nav-sidebar .nav-item>.nav-link:hover,
.nav-sidebar .nav-item>.nav-link:active,
.nav-sidebar .nav-item>.nav-link:focus {
    color: #00A99D !important; /* Color del texto */
    border-color: #00A99D !important; /* Borde de las tabs */
}


[class*=sidebar-dark-] .nav-treeview>.nav-item>.nav-link {
    color: #6c757d !important;
    border-color: #6c757d !important; /* Borde de las tabs */
}


[class*=sidebar-dark-] .nav-treeview>.nav-item>.active {
    color: #00A99D !important; /* Color del texto */
    border-color: #00A99D !important; /* Borde de las tabs */
}

.nav-custom .nav-link.active {
    background-color: #00A99D !important; /* Fondo de la tab activa */
    color: #ffffff !important; /* Texto blanco en activa */
}

.nav-custom .nav-link:hover {
    background-color: #00A99D !important; /* Fondo al pasar el cursor */
    color: #ffffff !important;
    border-color: #00A99D !important;
}

.breadcrumb-item a {
    color: #00a99d !important;
}

.nav-link.active {
    background-color: rgba(255, 255, 255) !important;
    color: #00A99D !important;
}

.main-footer strong a {
    color: #00A99D !important;
}

.sidebar-dark-primary {
    background-color: #FFFFFF !important;
    color: #6c757d !important;
    height: 100vh !important;
}

.info a {
    color: #ffffff !important;
}
[class*="sidebar-dark-"] .sidebar a {
    color: #ffffff !important;
}

[class*="sidebar-dark-"] .sidebar a.active {
    color: #333333 !important;
}

.brand-text.font-weight-light {
    color: #ffffff !important;
    font-weight: bold !important;
}

[class*="sidebar-dark"] .brand-link {
    border-bottom: 1px solid #ffffff;
}

[class*="sidebar-dark"] .user-panel {
    border-bottom: 1px solid #ffffff;
}

.bg-ideva {
    background-color:  #00A99D !important;
}
.text-ideva {
    color:  #00A99D !important;
}
/* Paginación */
.page-link {
    color:  #00A99D !important;
}

.page-link:hover {
    background-color:  #008c86 !important;
    color: #ffffff !important;
    border-color:   #008c86 !important;
}

.page-item.active .page-link {
    background-color:  #00A99D !important;
    color: #ffffff !important;
    border-color: #00A99D !important;
}

/* Checkboxes y Switches */
.form-check-input:checked {
    background-color: #00A99D !important;
    border-color:  #00A99D !important;
}

.form-check-input:focus {
    border-color:  #00A99D !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 169, 157, 0.25) !important;
}

/* Switches Bootstrap 4 con clases originales */
.custom-control-input:checked ~ .custom-control-label::before {
    background-color:  #00A99D !important;
    border-color:  #00A99D !important;
}

.custom-control-input:focus ~ .custom-control-label::before {
    box-shadow: 0 0 0 0.2rem rgba(0, 169, 157, 0.25) !important;
    border-color:  #00A99D !important;
}

.custom-control-input:hover ~ .custom-control-label::before {
    border-color: #00A99D !important;
}

.alert-success {
    background-color: rgba(0, 169, 157, 0.15) !important; /* Fondo suave */
    color: #00776f !important; /* Texto en tono más oscuro */
    border: 1px solid rgba(0, 169, 157, 0.3) !important; /* Borde suave */
}

th,
td {
    color: #5a6268 !important;
    padding: 0.35rem !important;
}
.form-group label {
    color: #5a6268 !important;
}

.content-header h1 {
    color: #5a6268 !important;
}


.card-footer {
    background-color: white;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f8f9fa !important;
}
[class*=sidebar-dark-] .nav-sidebar>.nav-item>.nav-link.active {
  box-shadow: none !important;
}


.dropdown-item {
    color: #5a6268;
}


.dropdown-item:hover {
    color: #5a6268;
}


.dropdown-item:hover {
    background-color: #00A99D !important;
    color: #ffffff !important;
}

/* Pestañas horizontales: inactivas en marca #00A99D (no azul #007bff) */
.nav-tabs .nav-link:not(.active) {
    color: #00A99D !important;
}
.nav-tabs .nav-link:not(.active):hover,
.nav-tabs .nav-link:not(.active):focus {
    color: #00897b !important;
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
    color: #00A99D !important;
    font-weight: 700 !important;
}