.app-auth-container {
    background: #fff;
    height: 100vh;
    width: 650px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 80px;
    position: relative;
    overflow: hidden;
}

/* SIGNO IN - Estilos responsivos */
.app-auth-sign-in {
    display: flex;
    height: 100vh;
}

.app-auth-sign-in .app-auth-background {
    /* Color de fondo - AQUÍ PUEDES PERSONALIZARLO */
    background-color: #fcd9e7 !important; /* Cambiar a tu color deseado */
    background-image: url('../images/backgrounds/cefire-4.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    
    /* Responsividad de tamaño */
    flex: 1;
    min-width: 0;
    
    /* Desktop: 60% del tamaño */
    background-size: 60%;
}

/* Tablet: Reducir a 50% */
@media (max-width: 1400px) {
    .app-auth-sign-in .app-auth-background {
        background-size: 50%;
    }
}

/* Tablet pequeño: Reducir a 45% */
@media (max-width: 1200px) {
    .app-auth-container {
        width: 100%;
        padding-left: 200px;
        padding-right: 200px;
    }
    
    .app-auth-sign-in .app-auth-background {
        background-size: 45%;
    }
}

/* Tablet: Hacer el background más pequeño */
@media (max-width: 992px) {
    .app-auth-container {
        width: 100%;
        padding-left: 150px;
        padding-right: 150px;
    }
    
    .app-auth-sign-in {
        flex-direction: column;
    }
    
    .app-auth-sign-in .app-auth-background {
        background-size: 40%;
        min-height: 250px;
    }
}

/* Mobile grande */
@media (max-width: 780px) {
    .app-auth-container {
        padding-left: 50px;
        padding-right: 50px;
        width: 100%;
    }
    
    .app-auth-sign-in .app-auth-background {
        background-size: 35%;
        min-height: 220px;
    }
}

/* Mobile pequeño */
@media (max-width: 576px) {
    .app-auth-container {
        padding: 40px 20px;
        width: 100%;
        height: auto;
        min-height: 100vh;
    }
    
    .app-auth-sign-in {
        flex-direction: column-reverse;
    }
    
    .app-auth-sign-in .app-auth-background {
        background-size: 30%;
        min-height: 200px;
    }
}

/* Mobile muy pequeño */
@media (max-width: 380px) {
    .app-auth-container {
        padding: 30px 15px;
    }
    
    .app-auth-sign-in .app-auth-background {
        background-size: 25%;
        min-height: 180px;
    }
}

#resultado {
    position: absolute !important; 
    top: 0 !important;
    left: 0 !important;
    right: 0 !important; 
    width: 100% !important;
    margin: 0 !important; 
    
    z-index: 9999 !important; 
    border-radius: 0 !important; 

    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

#resultado.animacion-visible{
    transform: translateX(0);
    opacity: 1;
}

.app-sidebar {
    width: 280px;
    background-color: #fff;
    height: 100vh;
    position: fixed;
    padding: 0;
    z-index: 1003;
    box-shadow: 0px 0px 11px 1px rgba(0, 0, 0, 0.05);
    -webkit-box-shadow: 0px 0px 11px 1px rgba(0, 0, 0, 0.05);
    -moz-box-shadow: 0px 0px 11px 1px rgba(0, 0, 0, 0.05);
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.app-sidebar .logo {
    overflow: hidden;
    padding: 45px 28px;
    position: relative;
    background-color: #f5f7fa;
    -webkit-transition: opacity .2s ease-in-out;
    -moz-transition: opacity .2s ease-in-out;
    -o-transition: opacity .2s ease-in-out;
    transition: opacity .2s ease-in-out;
}

.app-sidebar .logo-icon .logo-text {
    color: #40475c;
    visibility: hidden;
    opacity: 0;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.app-sidebar .logo .logo-icon {
    width: 80px;
    height: 80px;
    font-size: 18px;
    background: url(../images/logo-cefire.png) no-repeat;
    background-position: center left;
    background-size: 80px;
    display: block;
    text-decoration: none;
    font-weight: 700;
    border-radius: 30px;
    float: left;
    padding-left: 45px;
    line-height: 40px;
    margin-top: -10px;
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

/* Logo oculto en navbar - Desktop */
.app.sidebar-hidden .app-sidebar .logo.hidden-sidebar-logo .logo-icon {
    width: 50px;
    height: 50px;
    padding-left: 35px;
    margin-top: -8px;
    background-size: 50px;
}

/* Responsive - Logo adjustments Tablet */
@media (max-width: 1199px) {
    .app-sidebar .logo {
        padding: 15px 28px;
    }

    .app-sidebar .logo .logo-icon {
        width: 70px;
        height: 70px;
        padding-left: 40px;
        margin-top: -8px;
        background-size: 70px;
    }

    .app.sidebar-hidden .app-sidebar .logo.hidden-sidebar-logo {
        height: 70px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .app.sidebar-hidden .app-sidebar .logo.hidden-sidebar-logo .logo-icon {
        width: 70px;
        height: 70px;
        padding-left: 30px;
        margin-top: -6px;
        background-size: 70px;
    }
}

/* Responsive - Logo adjustments Mobile */
@media (max-width: 576px) {
    .app-sidebar .logo {
        padding: 10px 15px;
    }

    .app-sidebar .logo .logo-icon {
        width: 80px;
        height: 80px;
        padding-left: 30px;
        margin-top: -6px;
        background-size: 80px;
        line-height: 30px;
    }

    .app.sidebar-hidden .app-sidebar .logo.hidden-sidebar-logo {
        height: 60px;
        padding-top: 8px;
        padding-bottom: 8px;
        width: 100px;
        transform: translateX(290px);
    }

    .app.sidebar-hidden .app-sidebar .logo.hidden-sidebar-logo .logo-icon {
        width: 80px;
        height: 80px;
        padding-left: 20px;
        margin-top: -13px;
        background-size: 80px;
        line-height: 20px;
    }
}

/* Extra pequeño - Mobile muy pequeño */
@media (max-width: 380px) {
    .app-sidebar .logo .logo-icon {
        width: 80px;
        height: 80px;
        padding-left: 25px;
        margin-top: -13px;
        background-size: 80px;
    }

    .app.sidebar-hidden .app-sidebar .logo.hidden-sidebar-logo .logo-icon {
        width: 55px;
        height: 55px;
        padding-left: 15px;
        margin-top: -2px;
        background-size: 55px;
    }
}

.app-menu>ul>li>a:hover>i:not(.has-sub-menu).material-icons-two-tone {
    color: #D7296E;
}

.app-menu>ul>li>a:hover, .app-menu>ul>li.open>a, .app-menu>ul>li.active-page>a {
    color: #D7296E;
}

.app-menu>ul>li>a>i:not(.has-sub-menu) {
    margin-right: 13px;
    vertical-align: top;
    line-height: 20px;
    filter: invert(41%) sepia(17%) saturate(674%) hue-rotate(182deg) brightness(95%) contrast(89%);
    -webkit-transition: all .2s ease-in-out;
    -moz-transition: all .2s ease-in-out;
    -o-transition: all .2s ease-in-out;
    transition: all .2s ease-in-out;
}

.material-icons-two-tone {
    font-family: 'Material Icons Two Tone';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
}

/* Estados de hover - DEBE venir después */
.app-menu>ul>li>a:hover>i:not(.has-sub-menu).material-icons-two-tone {
    filter: invert(62%) sepia(74%) saturate(2095%) hue-rotate(293deg) brightness(102%) contrast(106%) !important;
}

.app-menu>ul>li>a:hover, .app-menu>ul>li.open>a, .app-menu>ul>li.active-page>a {
    color: #D7296E;
}

.app-menu>ul>li>ul>li>a>i:not(.has-sub-menu).material-icons-two-tone {
    filter: invert(41%) sepia(17%) saturate(674%) hue-rotate(182deg) brightness(95%) contrast(89%) !important;
    color: inherit !important;
}

.app-menu>ul>li>ul>li>a:hover>i:not(.has-sub-menu).material-icons-two-tone {
    filter: invert(62%) sepia(74%) saturate(2095%) hue-rotate(293deg) brightness(102%) contrast(106%) !important;
    color: #D7296E !important;
}

/* Asegúrate también que el enlace del submenú no tenga color azul */
.app-menu>ul>li>ul>li>a {
    color: #24292e !important;
}

/* Asegurar que el submenú no sea azul al hover */
.app-menu>ul>li>ul>li>a:hover {
    color: #D7296E !important;
}

.app-menu>ul>li>ul>li>a.active {
    color: #D7296E !important;
}

.app-menu>ul>li ul li a:hover, 
.app-menu>ul>li ul li a.active, 
.app-menu>ul ul li.open>a {
    color: #D7296E !important;
    font-weight: 500;
}

/* Evitar que el padre (li) cambie de color cuando el hijo tiene hover */
.app-menu>ul>li:hover>a {
    color: #D7296E !important;
}

.app-menu>ul>li>ul>li:hover>a {
    color: #D7296E !important;
}

/* Evitar que el icono del padre cambie */
.app-menu>ul>li:hover>a>i:not(.has-sub-menu).material-icons-two-tone {
    filter: invert(62%) sepia(74%) saturate(2095%) hue-rotate(293deg) brightness(102%) contrast(106%) !important;
}

.app-menu>ul>li>ul>li:hover>a>i:not(.has-sub-menu).material-icons-two-tone {
    filter: invert(62%) sepia(74%) saturate(2095%) hue-rotate(293deg) brightness(102%) contrast(106%) !important;
}

.form-control {
    border-radius: 8px;
    padding: 10px 18px;
    border-color: #dfc2ce;
    color: #24292e;
    -webkit-transition: border .2s ease-in-out, background-color .2s ease-in-out;
    -moz-transition: border .2s ease-in-out, background-color .2s ease-in-out;
    -o-transition: border .2s ease-in-out, background-color .2s ease-in-out;
    transition: border .2s ease-in-out, background-color .2s ease-in-out;
}

.form-control:focus {
    border-color: #ac8e9b !important;
    box-shadow: none;
}

.form-control:-webkit-autofill,
.form-control:-webkit-autofill:hover,
.form-control:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: #000000 !important;
}

/* Cambiar color del botón close del modal */
.btn-close {
    filter: invert(41%) sepia(17%) saturate(674%) hue-rotate(182deg) brightness(95%) contrast(89%);
}

.btn-close:focus {
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(215, 41, 110, 0.25) !important;
}

.btn-close:hover {
    filter: invert(62%) sepia(74%) saturate(2095%) hue-rotate(293deg) brightness(102%) contrast(106%);
}

.app-header .navbar .navbar-nav>li>a.active::after {
    background: #D7296E !important;
}

/* Botón de expansión de filas responsivas en DataTables */
table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>td:first-child:before,
table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>th:first-child:before {
    top: 12px;
    left: 4px;
    height: 14px;
    width: 14px;
    display: block;
    position: absolute;
    color: white;
    border: 2px solid white;
    border-radius: 14px;
    box-shadow: 0 0 3px #444;
    box-sizing: content-box;
    text-align: center;
    text-indent: 0 !important;
    font-family: 'Courier New', Courier, monospace;
    line-height: 14px;
    content: '+';
    background-color: #D7296E !important;  /* Tu color personalizado */
}

/* Cuando la fila está expandida, cambia el + por - */
table.dataTable.dtr-inline.collapsed>tbody>tr.parent>td:first-child:before,
table.dataTable.dtr-inline.collapsed>tbody>tr.parent>th:first-child:before {
    content: '-';
}

/* Efecto hover opcional */
table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>td:first-child:hover:before,
table.dataTable.dtr-inline.collapsed>tbody>tr[role="row"]>th:first-child:hover:before {
    background-color: #A81E52 !important;  /* Color más oscuro en hover */
    box-shadow: 0 0 5px rgba(215, 41, 110, 0.5);
}

/* ============================================================
 * SELECT2 - Estilos personalizados
 * ============================================================ */

/* Contenedor Select2 */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    border: 1px solid #dfc2ce;
    border-radius: 8px;
    height: 38px;
    padding: 4px 8px;
    background-color: #fff;
}

.select2-container--default .select2-selection--single:focus {
    border-color: #D7296E !important;
    box-shadow: 0 0 0 0.2rem rgba(215, 41, 110, 0.25) !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #D7296E !important;
}

/* Opciones del dropdown */
.select2-container--default .select2-results__option {
    padding: 6px 8px;
    line-height: 1.5;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #D7296E;
    color: white;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #f5f5f5;
    color: #000;
}

/* Input del Select2 */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #24292e;
    line-height: 26px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    cursor: pointer;
}

/* Placeholder */
.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999; 
}

/* ============================================================
   ESTILOS PARA SCROLLING EN MODALES
   ============================================================ */

/* Solo agregar scroll sin modificar la estructura */
.modal-body {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
}

.app-auth-sign-in .app-auth-background {
    background: url('../images/backgrounds/cefire-4.svg') no-repeat !important;
    background-size: 60%;
    background-position: center;
}

.app-auth-container .logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/logo-cefire.png') no-repeat left center;
    background-size: 90px 90px;
    height: 70px;
    text-decoration: none;
    color: #40475c;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 40px;
}

.horizontal-menu .app-header {
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    background-color: #D7296E !important;
    z-index: 10010;
}

.btn-secondary, .btn-secondary.disabled, .btn-secondary:disabled {
    color: #fff !important;
    background-color: #D7296E !important;
    border-color: #D7296E !important;
}

.btn-secondary:hover, .btn-secondary.focus, .btn-secondary:focus, .btn-secondary:not(:disabled):not(.disabled).active, .btn-secondary:not(:disabled):not(.disabled):active, .show>.btn-secondary.dropdown-toggle {
    color: #fff !important;
    background-color: #c23f73 !important;
    border-color: #c23f73 !important;
}

.badge.badge-primary {
    background: #D7296E !important;
    color: #fff !important;
}

.text-muted {
    color: #a08892!important;
}

a {
    color: #D7296E !important;
}

a:hover {
    color: #D7296E !important;
}

.btn:focus, .btn.active, .btn:active, .btn.dropdown-toggle.show, .btn-check:active+.btn, .btn-check:checked+.btn, .btn-check:focus+.btn, .btn-primary:not(:disabled):not(.disabled).active:focus, .btn-primary:not(:disabled):not(.disabled):active:focus, .show>.btn-primary.dropdown-toggle:focus, .btn-secondary:not(:disabled):not(.disabled).active:focus, .btn-secondary:not(:disabled):not(.disabled):active:focus, .show>.btn-secondary.dropdown-toggle:focus, .btn-success:not(:disabled):not(.disabled).active:focus, .btn-success:not(:disabled):not(.disabled):active:focus, .show>.btn-success.dropdown-toggle:focus, .btn-danger:not(:disabled):not(.disabled).active:focus, .btn-danger:not(:disabled):not(.disabled):active:focus, .show>.btn-danger.dropdown-toggle:focus, .btn-warning:not(:disabled):not(.disabled).active:focus, .btn-warning:not(:disabled):not(.disabled):active:focus, .show>.btn-warning.dropdown-toggle:focus, .btn-info:not(:disabled):not(.disabled).active:focus, .btn-info:not(:disabled):not(.disabled):active:focus, .show>.btn-info.dropdown-toggle:focus, .btn-light:not(:disabled):not(.disabled).active:focus, .btn-light:not(:disabled):not(.disabled):active:focus, .show>.btn-light.dropdown-toggle:focus, .btn-dark:not(:disabled):not(.disabled).active:focus, .btn-dark:not(:disabled):not(.disabled):active:focus, .show>.btn-dark.dropdown-toggle:focus, .btn-link:not(:disabled):not(.disabled).active:focus, .btn-link:not(:disabled):not(.disabled):active:focus, .show>.btn-link.dropdown-toggle:focus {
    box-shadow: none!important;
}

.btn-primary, .btn-primary.disabled, .btn-primary:disabled {
    color: #fff;
    background-color: #c23f73;
    border-color: #D7296E;
}

.btn-primary:hover, .btn-primary.focus, .btn-primary:focus, .btn-primary:not(:disabled):not(.disabled).active, .btn-primary:not(:disabled):not(.disabled):active, .show>.btn-primary.dropdown-toggle {
    color: #fff;
    background-color: #c23f73;
    border-color: #D7296E;
}

.alert.alert-info {
    background: #D7296E !important;
    color: #fff;
}

.btn-outline-secondary, .btn-outline-secondary.disabled, .btn-outline-secondary:disabled {
    color: #D7296E;
    background-color: transparent;
    border-color: #D7296E;
}

.btn-outline-secondary:hover, .btn-outline-secondary.focus, .btn-outline-secondary:focus, .btn-outline-secondary:not(:disabled):not(.disabled).active, .btn-outline-secondary:not(:disabled):not(.disabled):active, .show>.btn-outline-secondary.dropdown-toggle, .btn-check:active+.btn-outline-secondary, .btn-check:checked+.btn-outline-secondary, .btn-outline-secondary.active, .btn-outline-secondary.dropdown-toggle.show, .btn-outline-secondary:active {
    color: #fff;
    background-color: #c23f73;
    border-color: #D7296E;
}

.select2-search--dropdown .select2-search__field:focus, .select2-search--dropdown .select2-search__field:active {
    box-shadow: none!important;
    border-color: #D7296E!important;
    outline: none;
}

.badge.badge-primary {
    background: #D7296E!important;
    color: #fff;
}

.select2-selection__choice {
    margin-top: 0!important;
    height: 19px!important;
    border: 1px solid #ffd8e8!important;
    background: #ffd8e8!important;
    color: #D7296E!important;
    font-size: 12px!important;
    font-weight: 500!important;
    padding: 0 10px;
}

.select2-selection__choice span {
    color: #D7296E!important;
}

.select2-container--default .select2-results__option[aria-selected=true]:hover {
    color: #D7296E;
}

.bs-stepper-circle {
    background-color: #D7296E!important;
    color: #fff!important;
}

.badge.badge-secondary-2 {
    color: #000000 !important;
    background: #ffe2ee !important;
}