img.nav-avatar {
    background-size: cover;
    height: 100px;
    width: 175px;
    position: inherit;
    margin: 10px auto;
    display: block;
}

/* Estilos personalizados para la bandeja de entrada */
.inbox-container {
    display: flex;
}


.notifications-list {

    height: 70vh;
    overflow-y: auto;
    background: #ffffff;
    font-weight: 500;
}

.notification-link:hover,
.notification-link-unread:hover {
    background: #e3e6f0;
}

a.notification-link,
a.notification-link-unread {
    color: #080d1a !important;
}

.date-notification {
    float: right;
    font-size: .775rem;
}

.contenido-notification {
    float: left;
}

.notificacion-title {
    font-size: 1.2em;

}

.notification-content-header {
    background: #f5f5f5;
    border-bottom: 1px solid #eee;
}

.notification-link {
    -webkit-transition: background 0.15s;
    -moz-transition: background 0.15s;
    transition: background 0.15s;
    padding: 11.5px 20px;
    cursor: pointer;
    display: flex;
}

@media (max-width: 991px) {
    .notification-link {
        display: block;
        /* Cambia a la visualización en bloque */
    }
}

.unread {
    font-weight: 700 !important;
    background: #F7FAFF;
}

.notification-content {

    padding: 17px 30px;

}

.notification-box {
    /* Ancho fijo para el contenido de notificación */
    height: 70vh;
    overflow-y: auto;
    /* Scroll vertical si es necesario */
    background: #ffffff;
    box-shadow: -6px 0 9px -4px rgba(0, 0, 0, 0.15);
    line-height: 1.5;
}

.notification-selected {
    border-left: 4px solid #4c83ee;
    border-radius: 5px 0px 0px 5px;
    background: #efefef;

}

.sidebar {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 0;
    color: #fff;
    background: #203b87 !important;
}

.icon-profile {
    color: #5d6fae;
}

.badge-profile {
    font-size: 80% !important;
}

.sidebar .nav-item.active {
    color: #fff;
    background: #003B74 !important;
}

.sidebar-brand {
    background: #203b87;
}

.sidebar-toggler {
    background: #203b87;
}

.sidebar-nav .nav-link:hover {
    background-color: var(--cui-sidebar-toggler-hover-bg, rgba(0, 0, 0, 0.3));
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    background-color: var(--cui-sidebar-toggler-hover-bg, rgba(0, 0, 0, 0.3));
}


.dataTables_length {
    padding-top: 20px;
}

.form-select {
    font-size: .875rem !important;
}

.table-audit td {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.titulo-princ {
    font-size: 15px;
}

.page-item.active .page-link {
    background-color: #20a8d8;
    border-color: #20a8d8;
}

.page-link {
    color: #20a8d8;
}

@media (min-width: 576px) {
    table.table-small {
        margin: 0 auto;
        width: 55%;
        align-content: center;
    }

    .margin {
        margin: 0 30px !important;
    }
}

.input-transparente {
    background: transparent;
    border: transparent;
}

.text-th {
    font-weight: 600;
}

.let {
    text-transform: lowercase;
}

.let:first-letter {
    text-transform: uppercase;
}

.title p:first-of-type::before {
    content: "";
    position: absolute;
    height: 5px;
    background: #5ad67d;
    width: 35px;
    top: -0.75rem;
    border-radius: 3px;
}

@media screen and (max-width: 800px) {
    .table-grow {
        width: 100% !important;
        /* The width is 100%, when the viewport is 800px or smaller */
    }
}

.equipostab {
    display: none;
}

.div-equip {
    max-width: 60%;
}

@media only screen and (max-width: 700px) {
    .div-equip {
        max-width: 100% !important;
        /* The width is 100%, when the viewport is 800px or smaller */
    }
}

@media only screen and (max-width: 1000px) {
    .div-equip {
        max-width: 90% !important;
        /* The width is 100%, when the viewport is 800px or smaller */
    }
}

.blog_post {
    position: relative;
    padding: 6rem 3rem 6rem 3rem;
    background: #fff;
    max-width: 400px;
    border-radius: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 20%);
    box-shadow: 1px 1px 2rem rgba(0, 0, 0, 0.3);
}

.img_pod {
    height: 110px;
    width: 110px;
    background: linear-gradient(90deg, #ff9966, #ff5e62);
    z-index: -1;
    box-shadow: 1px 1px 2rem rgba(0, 0, 0, 0.3);
    border-radius: 100%;
    position: absolute;
    left: -50px;
    top: 10px;
    transform: translateY(-50%);
}

.img_pod img {
    height: 100px;
    width: 100px;
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 100%;
    box-shadow: 1px 1px 2rem rgba(0, 0, 0, 0.3);
}

.text-unanthorized {
    font-size: 16px;
    text-align: justify;
}

@media (max-width: 450px) {
    .blog_post {
        position: relative;
        padding: 6rem 3rem 6rem 3rem;
        background: #fff;
        max-width: 70%;
        border-radius: 10px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, 20%);
        box-shadow: 1px 1px 2rem rgba(0, 0, 0, 0.3);
    }
}

.easy-autocomplete {
    width: 100% !important
}

.easy-autocomplete input {
    width: 100%;
}

.easy-autocomplete-container {
    max-height: 160px;
    overflow: auto;
    overflow-y: auto;
    overflow-x: hidden;
}

.link-auth {
    font-size: small;
}

.depth-card {
    box-shadow: 0 15px 30px rgb(85, 100, 162);

    transition: transform 0.3s, box-shadow 0.3s;
}

/* ===== MEJORAS DE RESPONSIVIDAD PARA iOS ===== */

/* Media queries específicas para iOS */
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    /* Para dispositivos Retina */
    .img_pod img {
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
    
    .blog_post {
        -webkit-transform: translate(-50%, 20%);
        transform: translate(-50%, 20%);
    }
}

/* Media queries para iPhone */
@media only screen 
    and (min-device-width: 320px) 
    and (max-device-width: 568px)
    and (-webkit-min-device-pixel-ratio: 2) {
    
    img.nav-avatar {
        height: 80px;
        width: 140px;
        margin: 8px auto;
    }
    
    .notifications-list {
        height: 60vh;
    }
    
    .notification-box {
        height: 60vh;
    }
    
    .notification-link {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .notification-content {
        padding: 15px 20px;
    }
    
    .notificacion-title {
        font-size: 1em;
    }
    
    .date-notification {
        font-size: 0.7rem;
    }
    
    .blog_post {
        padding: 4rem 2rem 4rem 2rem;
        max-width: 85%;
        transform: translate(-50%, 15%);
    }
    
    .img_pod {
        height: 90px;
        width: 90px;
        left: -40px;
    }
    
    .img_pod img {
        height: 80px;
        width: 80px;
    }
    
    .text-unanthorized {
        font-size: 14px;
    }
    
    .easy-autocomplete-container {
        max-height: 120px;
    }
    
    .table-audit td {
        max-width: 150px;
        font-size: 12px;
    }
    
    .titulo-princ {
        font-size: 13px;
    }
}

/* Media queries para iPhone Plus y dispositivos más grandes */
@media only screen 
    and (min-device-width: 414px) 
    and (max-device-width: 736px)
    and (-webkit-min-device-pixel-ratio: 3) {
    
    img.nav-avatar {
        height: 90px;
        width: 160px;
    }
    
    .notifications-list {
        height: 65vh;
    }
    
    .notification-box {
        height: 65vh;
    }
    
    .blog_post {
        padding: 5rem 2.5rem 5rem 2.5rem;
        max-width: 80%;
    }
    
    .img_pod {
        height: 100px;
        width: 100px;
        left: -45px;
    }
    
    .img_pod img {
        height: 90px;
        width: 90px;
    }
    
    .text-unanthorized {
        font-size: 15px;
    }
}

/* Media queries para iPad */
@media only screen 
    and (min-device-width: 768px) 
    and (max-device-width: 1024px)
    and (-webkit-min-device-pixel-ratio: 2) {
    
    img.nav-avatar {
        height: 95px;
        width: 170px;
    }
    
    .notifications-list {
        height: 68vh;
    }
    
    .notification-box {
        height: 68vh;
    }
    
    .blog_post {
        padding: 5.5rem 3rem 5.5rem 3rem;
        max-width: 75%;
    }
    
    .img_pod {
        height: 105px;
        width: 105px;
        left: -48px;
    }
    
    .img_pod img {
        height: 95px;
        width: 95px;
    }
}

/* Ajustes específicos para Safari en iOS */
@supports (-webkit-touch-callout: none) {
    .notification-link {
        -webkit-appearance: none;
        -webkit-tap-highlight-color: transparent;
    }
    
    .notifications-list {
        -webkit-overflow-scrolling: touch;
    }
    
    .notification-box {
        -webkit-overflow-scrolling: touch;
    }
    
    .easy-autocomplete-container {
        -webkit-overflow-scrolling: touch;
    }
    
    .blog_post {
        -webkit-appearance: none;
        -webkit-tap-highlight-color: transparent;
    }
}

/* Ajustes para orientación landscape en iOS */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .notifications-list {
        height: 50vh;
    }
    
    .notification-box {
        height: 50vh;
    }
    
    .notification-link {
        padding: 8px 15px;
        font-size: 13px;
    }
    
    .notification-content {
        padding: 12px 20px;
    }
    
    .blog_post {
        padding: 3rem 2rem 3rem 2rem;
        transform: translate(-50%, 10%);
    }
    
    .img_pod {
        height: 80px;
        width: 80px;
        left: -35px;
    }
    
    .img_pod img {
        height: 70px;
        width: 70px;
    }
}

/* Mejoras para formularios en iOS */
@media only screen 
    and (min-device-width: 320px) 
    and (max-device-width: 568px)
    and (-webkit-min-device-pixel-ratio: 2) {
    
    .form-select {
        font-size: 16px !important; /* Evita zoom en iOS */
        -webkit-appearance: none;
        border-radius: 0;
    }
    
    .easy-autocomplete input {
        font-size: 16px !important;
        -webkit-appearance: none;
    }
}

/* Ajustes para tablas en iOS */
@media only screen 
    and (min-device-width: 320px) 
    and (max-device-width: 568px)
    and (-webkit-min-device-pixel-ratio: 2) {
    
    .table-grow {
        font-size: 12px;
    }
    
    .table-audit {
        font-size: 11px;
    }
    
    .dataTables_length {
        padding-top: 15px;
        font-size: 12px;
    }
}

/* Ajustes para paginación en iOS */
@media only screen 
    and (min-device-width: 320px) 
    and (max-device-width: 568px)
    and (-webkit-min-device-pixel-ratio: 2) {
    
    .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 12px;
    }
    
    .page-item.active .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 12px;
    }
}

/* Ajustes para sidebar en iOS */
@media only screen 
    and (min-device-width: 320px) 
    and (max-device-width: 568px)
    and (-webkit-min-device-pixel-ratio: 2) {
    
    .sidebar {
        -webkit-overflow-scrolling: touch;
    }
    
    .sidebar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 14px;
    }
    
    .badge-profile {
        font-size: 70% !important;
    }
}

/* Ajustes para elementos de autocompletado en iOS */
@media only screen 
    and (min-device-width: 320px) 
    and (max-device-width: 568px)
    and (-webkit-min-device-pixel-ratio: 2) {
    
    .easy-autocomplete {
        width: 100% !important;
    }
    
    .easy-autocomplete input {
        width: 100%;
        font-size: 16px !important;
        -webkit-appearance: none;
        border-radius: 0;
    }
    
    .easy-autocomplete-container {
        max-height: 100px;
        -webkit-overflow-scrolling: touch;
    }
}