.notificacion-popover {
    width: 390px !important;
    min-width: 390px;
    max-width: calc(100vw - 20px);
    padding: 0;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .16) !important;
}

#lista_notificaciones.notificacion-popover > li {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: #fff;
    list-style: none;
}

#lista_notificaciones.notificacion-popover > li.notificacion-popover-header {
    display: flex;
}

#lista_notificaciones.notificacion-popover > li.notificacion-popover-list {
    display: block;
}

#lista_notificaciones.notificacion-popover > li.notificacion-popover-footer {
    display: flex;
}

#lista_notificaciones.notificacion-popover > li.notificacion-popover-header {
    align-items: center;
    min-height: 0;
    padding: 11px 16px !important;
    line-height: 1.2 !important;
}

#lista_notificaciones.notificacion-popover .notificacion-item-body,
#lista_notificaciones.notificacion-popover .notificacion-item * ,
#lista_notificaciones.notificacion-popover .notificacion-item-body > span,
#lista_notificaciones.notificacion-popover .notificacion-item-body small,
#lista_notificaciones.notificacion-popover .notificacion-item-body time {
    background-color: transparent !important;
}

.notificacion-popover-header,
.notificacion-popover-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    background: #fff !important;
}

.notificacion-popover-header {
    min-height: 0;
    border-bottom: 1px solid #eef0f3;
    line-height: 1.2 !important;
}

.notificacion-popover-footer {
    justify-content: center;
    min-height: 48px;
    border-top: 1px solid var(--siag-brand-light-7, #e5eef5);
}

.notificacion-popover-header strong,
.notificacion-popover-header small { display: block; }

.notificacion-popover-header strong {
    color: #1f2937;
    font-size: 14px;
    line-height: 1.25;
}

.notificacion-popover-header small,
.notificacion-item-body small,
.notificacion-item-body time {
    color: #8b95a1;
    font-size: 11px;
    line-height: 1.25;
}

.notificacion-popover-header .btn-link {
    padding: 0;
    color: var(--siag-brand-dark-2, #376e9c);
    font-size: 11px;
    white-space: nowrap;
}

.notificacion-popover-list {
    display: block;
    max-height: 280px;
    overflow-y: auto;
    padding: 0;
}

.notificacion-item {
    display: flex !important;
    gap: 10px;
    align-items: flex-start;
    min-height: 58px;
    margin: 0 !important;
    padding: 8px 12px !important;
    border-bottom: 1px solid #f0f2f4 !important;
    border-left: 3px solid transparent;
    color: #333 !important;
    font-weight: 400 !important;
    background: #fff !important;
    line-height: 1.35 !important;
    text-decoration: none !important;
    white-space: normal !important;
}

.notificacion-item:hover,
.notificacion-item.notificacion-no-leida {
    background: rgba(var(--siag-brand-rgb, 72, 136, 190), .045) !important;
}

#lista_notificaciones.notificacion-popover .notificacion-item:hover,
#lista_notificaciones.notificacion-popover .notificacion-item:focus,
#lista_notificaciones.notificacion-popover .notificacion-item:active,
#lista_notificaciones.notificacion-popover .notificacion-item:visited {
    color: #333 !important;
    font-weight: 400 !important;
    opacity: 1 !important;
    text-decoration: none !important;
}

#lista_notificaciones.notificacion-popover .notificacion-item:active,
#lista_notificaciones.notificacion-popover .notificacion-item:focus {
    background: rgba(var(--siag-brand-rgb, 72, 136, 190), .045) !important;
}

.notificacion-item.notificacion-no-leida {
    border-left-color: var(--siag-brand, #4888be);
}

.notificacion-item-icon {
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f3f4f6;
}

.notificacion-item-icon.is-unread {
    background: rgba(var(--siag-brand-rgb, 72, 136, 190), .11);
}

#lista_notificaciones.notificacion-popover .notificacion-item-icon {
    background: #f3f4f6 !important;
}

#lista_notificaciones.notificacion-popover .notificacion-item-icon.is-unread {
    background: rgba(var(--siag-brand-rgb, 72, 136, 190), .11) !important;
}

#lista_notificaciones.notificacion-popover .notificacion-item-title em {
    background-color: var(--siag-brand, #4888be) !important;
}

#lista_notificaciones.notificacion-popover .notificacion-item-icon .notificacion-icon-glyph {
    background: transparent !important;
}

.notificacion-icon-glyph {
    color: #999;
    font-size: 17px;
}

.notificacion-item-icon.is-unread .notificacion-icon-glyph {
    color: var(--siag-brand-dark-2, #376e9c);
}

.notificacion-item-body {
    display: block;
    min-width: 0;
    flex: 1;
}

.notificacion-item-title {
    display: flex;
    gap: 5px;
    align-items: flex-start;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.35;
}

.notificacion-no-leida .notificacion-item-title {
    color: #1f2937;
    font-weight: 600;
}

.notificacion-leida .notificacion-item-title {
    color: #4b5563;
    font-weight: 400;
}

#lista_notificaciones.notificacion-popover .notificacion-item:hover .notificacion-item-title {
    color: #000 !important;
    font-weight: 700 !important;
}

#lista_notificaciones.notificacion-popover .notificacion-item:hover .notificacion-item-title > span:not(.notificacion-dot) {
    color: #000 !important;
    font-weight: 700 !important;
}

.notificacion-item-title > span:not(.notificacion-dot) {
    display: -webkit-box;
    overflow: hidden;
    flex: 1;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.notificacion-item-title em {
    flex: 0 0 auto;
    padding: 2px 5px;
    border-radius: 9px;
    background: var(--siag-brand, #4888be);
    color: #fff;
    font-size: 9px;
    font-style: normal;
    font-weight: 600;
}

.notificacion-dot {
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    margin-top: 5px;
    border-radius: 50%;
    background: var(--siag-brand, #4888be);
}

#lista_notificaciones.notificacion-popover .notificacion-dot {
    background: var(--siag-brand, #4888be) !important;
}

.notificacion-item-body small,
.notificacion-item-body time {
    display: block;
    margin-top: 3px;
    color: #6b7280;
    line-height: 1.25;
}

.notificacion-empty {
    padding: 32px 14px;
    text-align: center;
    color: #999;
}

.notificacion-empty .notificacion-icon-glyph {
    color: #bbb;
    font-size: 30px;
}

.notificacion-empty p {
    margin: 8px 0 0;
    font-size: 12px;
}

.notificacion-popover-footer a {
    color: var(--siag-brand-dark-2, #376e9c) !important;
    font-size: 12px;
    font-weight: 600;
}

#lista_notificaciones.notificacion-popover > li.notificacion-popover-footer {
    min-height: 40px;
    padding: 9px 12px !important;
    line-height: 1.2 !important;
}

.notificacion-pulse {
    animation: notificacion-pulse-animation .9s ease-in-out;
}

#gritter-notice-wrapper {
    top: 22px !important;
    right: 30px !important;
    width: 400px !important;
    z-index: 10000 !important;
}

#gritter-notice-wrapper .gritter-item-wrapper.notificacion-gritter {
    margin: 0 0 12px;
    opacity: 1;
}

#gritter-notice-wrapper .notificacion-gritter .gritter-top,
#gritter-notice-wrapper .notificacion-gritter .gritter-bottom {
    display: none;
}

#gritter-notice-wrapper .notificacion-gritter .gritter-item {
    display: block !important;
    min-height: 0;
    padding: 18px 42px 16px 64px;
    border: 1px solid var(--siag-brand-light-3, #b5cfe3);
    border-radius: 12px;
    background: #fff !important;
    background-image: none !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .18);
    color: #101828;
    font-family: Arial, sans-serif;
    text-shadow: none !important;
}

#gritter-notice-wrapper .notificacion-gritter.hover .gritter-item,
#gritter-notice-wrapper .notificacion-gritter .gritter-item:hover {
    background: #fff !important;
    background-image: none !important;
}

#gritter-notice-wrapper .notificacion-gritter .gritter-item:before {
    position: absolute;
    top: 17px;
    left: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(var(--siag-brand-rgb, 72, 136, 190), .12);
    color: var(--siag-brand-dark-2, #376e9c);
    content: '\e123';
    font-family: 'Glyphicons Halflings';
    font-size: 16px;
    line-height: 34px;
    text-align: center;
}

#gritter-notice-wrapper .notificacion-gritter .gritter-title {
    display: block !important;
    margin: 0 0 7px;
    color: var(--siag-brand-dark-2, #376e9c) !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-shadow: none !important;
}

#gritter-notice-wrapper .notificacion-gritter .gritter-item p {
    margin: 0;
    color: #101828 !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.42;
    text-shadow: none !important;
}

#gritter-notice-wrapper .notificacion-gritter .gritter-close {
    display: block !important;
    position: absolute;
    top: 14px;
    right: 13px;
    left: auto !important;
    width: 20px;
    height: 20px;
    color: #667085 !important;
    font-size: 0;
    opacity: 1 !important;
    background: none !important;
    background-image: none !important;
}

#gritter-notice-wrapper .notificacion-gritter .gritter-close:after {
    content: '\00d7';
    font-size: 20px;
    line-height: 20px;
}

.notificacion-gritter-message,
.notificacion-gritter-description {
    display: block;
}

.notificacion-gritter-description {
    margin-top: 5px;
    color: #667085;
    font-size: 12px;
}

.notificacion-toast {
    position: fixed !important;
    top: 22px;
    right: 30px;
    z-index: 10001 !important;
    display: flex !important;
    width: 380px;
    min-height: 0;
    padding: 14px 36px 12px 56px;
    border: 1px solid var(--siag-brand-light-3, #b5cfe3);
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f7fa 100%);
    box-shadow: 0 12px 30px rgba(15, 23, 42, .2);
    color: #101828;
    font-family: Arial, sans-serif;
    animation: notificacion-toast-in .25s ease-out;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
}

.notificacion-toast-saliendo {
    animation: notificacion-toast-out .36s ease-in forwards;
}

.notificacion-toast-atras .notificacion-toast-content,
.notificacion-toast-atras .notificacion-toast-close {
    visibility: hidden;
    opacity: 0;
}

.notificacion-toast:before {
    position: absolute;
    top: 13px;
    left: 16px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(var(--siag-brand-rgb, 72, 136, 190), .12);
    color: var(--siag-brand-dark-2, #376e9c);
    content: '\e123';
    font-family: 'Glyphicons Halflings';
    font-size: 16px;
    line-height: 30px;
    text-align: center;
}

.notificacion-toast-content {
    min-width: 0;
    width: 100%;
}

.notificacion-toast-title {
    margin: 0 0 5px;
    color: var(--siag-brand-dark-2, #376e9c);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.notificacion-toast-message {
    color: #101828;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.32;
}

.notificacion-toast-description {
    margin-top: 4px;
    color: #667085;
    font-size: 11px;
    line-height: 1.3;
}

.notificacion-toast-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #667085;
    cursor: pointer;
    font-size: 20px;
    line-height: 20px;
}

.notificacion-toast-close:before {
    content: '\00d7';
}

@keyframes notificacion-toast-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes notificacion-toast-out {
    0% {
        opacity: 1;
        box-shadow: 0 12px 30px rgba(15, 23, 42, .2);
        transform: translateY(0) scale(1);
    }
    60% {
        opacity: .55;
        box-shadow: 0 3px 8px rgba(15, 23, 42, .08);
    }
    100% {
        opacity: 0;
        box-shadow: 0 0 0 rgba(15, 23, 42, 0);
        transform: translateY(8px) scale(.98);
    }
}

@media (max-width: 480px) {
    #gritter-notice-wrapper {
        top: 16px !important;
        right: 10px !important;
        left: 10px;
        width: auto !important;
    }

    .notificacion-toast {
        top: 16px;
        right: 10px;
        left: 10px;
        width: auto;
    }
}

@keyframes notificacion-pulse-animation {
    0%, 100% { transform: scale(1); }
    35% { transform: scale(1.2) rotate(-8deg); }
    70% { transform: scale(1.08) rotate(8deg); }
}

@media (max-width: 480px) {
    .notificacion-popover {
        position: fixed;
        top: 50px;
        right: 10px;
        left: 10px;
        width: auto !important;
        min-width: 0;
    }
}

.notificacion-inbox {
    padding: 8px 4px 20px;
}

.notificacion-inbox-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 16px;
}

.notificacion-inbox-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notificacion-inbox-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(var(--siag-brand-rgb, 72, 136, 190), .11);
    color: var(--siag-brand, #4888be);
    font-size: 17px;
}

.notificacion-inbox-title h1 {
    margin: 0;
    color: #273142;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
}

.notificacion-inbox-title p {
    margin: 3px 0 0;
    color: #8993a1;
    font-size: 12px;
}

.notificacion-inbox-read-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 12px;
    white-space: nowrap;
}

.notificacion-inbox-card {
    overflow: hidden;
    padding: 10px 12px 0;
    border: 1px solid #e3e7ec;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(15, 23, 42, .06);
}

.notificacion-inbox-card .dataTables_wrapper {
    color: #6f7b89;
    font-size: 12px;
}

.notificacion-inbox-card .dataTables_length,
.notificacion-inbox-card .dataTables_filter {
    margin: 3px 0 10px;
}

.notificacion-inbox-card .dataTables_filter input,
.notificacion-inbox-card .dataTables_length select {
    min-height: 28px;
    border: 1px solid #d9dee5;
    border-radius: 4px;
    background: #fff;
    box-shadow: none;
}

.notificacion-inbox-card .dataTables_filter input:focus,
.notificacion-inbox-card .dataTables_length select:focus {
    border-color: var(--siag-brand, #4888be);
    outline: 0;
    box-shadow: 0 0 0 2px rgba(var(--siag-brand-rgb, 72, 136, 190), .12);
}

.notificacion-inbox-table {
    margin-bottom: 0 !important;
    border: 0 !important;
}

.notificacion-inbox-table thead th {
    padding: 11px 10px !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-bottom: 1px solid #e6eaf0 !important;
    background: #f8fafc !important;
    color: #7a8593 !important;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.notificacion-inbox-table tbody td {
    padding: 12px 10px !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-left: 0 !important;
    border-bottom: 1px solid #eef1f4 !important;
    color: #6e7885;
    vertical-align: middle;
}

.notificacion-inbox-table tbody tr {
    background: #fff !important;
    transition: background-color .15s ease;
}

.notificacion-inbox-table tbody tr:hover {
    background: rgba(var(--siag-brand-rgb, 72, 136, 190), .045) !important;
}

.notificacion-inbox-table tbody td:nth-child(2) {
    line-height: 1.45;
}

.notificacion-table-message {
    color: #3d4652 !important;
}

.notificacion-table-message-unread {
    color: var(--siag-brand-dark-2, #376e9c) !important;
    font-weight: 600;
}

.notificacion-table-message-read {
    font-weight: 400;
}

.notificacion-inbox-table tbody td:nth-child(3) {
    white-space: nowrap;
}

.notificacion-inbox-table tbody td:last-child {
    width: 92px;
    white-space: nowrap;
}

.notificacion-inbox-table tbody td:last-child a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    margin-right: 3px;
    border-radius: 50%;
    color: var(--siag-brand-dark-2, #376e9c);
    text-decoration: none;
}

.notificacion-inbox-table tbody td:last-child a:hover {
    background: rgba(var(--siag-brand-rgb, 72, 136, 190), .1);
}

.notificacion-inbox-table tbody td:last-child a:last-child {
    color: #a33a45;
}

.notificacion-inbox-card .dataTables_info {
    padding: 12px 0;
}

.notificacion-inbox-card .dataTables_paginate {
    padding: 8px 0 12px;
}

@media (max-width: 767px) {
    .notificacion-inbox-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .notificacion-inbox-read-all {
        width: 100%;
        justify-content: center;
    }

    .notificacion-inbox-card {
        padding: 8px 6px 0;
    }
}

.notificacion-inbox-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d9dee5;
}

.notificacion-inbox-filters {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 8px;
    background: #e9ebef;
}

.notificacion-filter {
    padding: 7px 12px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #344054;
    font-size: 12px;
}

.notificacion-filter span {
    margin-left: 4px;
    color: #667085;
}

.notificacion-filter.active {
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
    color: #101828;
}

.notificacion-inbox-new {
    padding: 4px 7px;
    border-radius: 4px;
    background: var(--siag-brand, #4888be);
    color: var(--siag-brand-contraste, #fff);
    font-size: 10px;
    font-weight: 600;
}

.notificacion-inbox-range {
    color: #667085;
    font-size: 12px;
}

.notificacion-inbox-loading,
.notificacion-inbox-empty {
    padding: 52px 20px;
    color: #667085;
    text-align: center;
}

.notificacion-inbox-loading i {
    margin-right: 5px;
}

.notificacion-inbox-empty i,
.notificacion-inbox-empty strong,
.notificacion-inbox-empty span {
    display: block;
}

.notificacion-inbox-empty i {
    margin-bottom: 10px;
    color: var(--siag-brand, #4888be);
    font-size: 28px;
}

.notificacion-inbox-empty strong {
    color: #344054;
}

.notificacion-inbox-empty span {
    margin-top: 4px;
    font-size: 12px;
}

.notificacion-date-group {
    margin-bottom: 18px;
}

.notificacion-date-group h2 {
    margin: 0 0 7px 2px;
    color: #667085;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.notificacion-card {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 8px;
    padding: 13px;
    border: 1px solid #e2e6eb;
    border-radius: 10px;
    background: #fff;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.notificacion-card:hover {
    border-color: var(--siag-brand-light-3, #b5cfe3);
    box-shadow: 0 3px 10px rgba(15, 23, 42, .06);
}

.notificacion-card.is-unread {
    border-left: 3px solid var(--siag-brand, #4888be);
    background: rgba(var(--siag-brand-rgb, 72, 136, 190), .035);
}

.notificacion-card-icon {
    display: flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f1f3f5;
    color: #667085;
}

.notificacion-card.is-unread .notificacion-card-icon {
    background: rgba(var(--siag-brand-rgb, 72, 136, 190), .12);
    color: var(--siag-brand-dark-2, #376e9c);
}

.notificacion-card-body {
    min-width: 0;
    flex: 1;
}

.notificacion-card-title {
    display: flex;
    gap: 6px;
    align-items: flex-start;
    color: #344054;
    font-size: 13px;
    line-height: 1.45;
}

.notificacion-card.is-unread .notificacion-card-title {
    color: #101828;
    font-weight: 600;
}

.notificacion-card-dot {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--siag-brand, #4888be);
}

.notificacion-card-badge {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 3px 6px;
    border-radius: 4px;
    background: var(--siag-brand, #4888be);
    color: var(--siag-brand-contraste, #fff);
    font-size: 10px;
    font-weight: 600;
}

.notificacion-card-description {
    margin: 4px 0 0;
    color: #667085;
    font-size: 12px;
}

.notificacion-card-meta {
    display: flex;
    gap: 16px;
    margin-top: 6px;
    color: #667085;
    font-size: 11px;
}

.notificacion-card-meta a {
    color: var(--siag-brand-dark-2, #376e9c);
}

.notificacion-card-actions {
    display: flex;
    gap: 8px;
    margin-top: 9px;
}

.notificacion-card-actions .btn {
    border-radius: 5px;
}

.notificacion-card-actions .btn-link {
    color: #c03945;
}

.notificacion-inbox-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 2px;
    border-top: 1px solid #eef1f4;
    color: #667085;
    font-size: 11px;
}

.notificacion-inbox-pagination select {
    margin-left: 5px;
    padding: 4px 6px;
    border: 1px solid #d9dee5;
    border-radius: 4px;
}

.notificacion-page-button {
    min-width: 28px;
    min-height: 28px;
    margin-left: 3px;
    padding: 4px 8px;
    border: 1px solid #d9dee5;
    border-radius: 4px;
    background: #fff;
    color: #475467;
}

.notificacion-page-button:hover,
.notificacion-page-button.active {
    border-color: var(--siag-brand, #4888be);
    background: var(--siag-brand, #4888be);
    color: var(--siag-brand-contraste, #fff);
}

.notificacion-page-button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

@media (max-width: 767px) {
    .notificacion-inbox-toolbar,
    .notificacion-inbox-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .notificacion-inbox-filters {
        width: 100%;
    }

    .notificacion-filter {
        flex: 1;
        padding-right: 6px;
        padding-left: 6px;
    }

    .notificacion-inbox-range {
        align-self: flex-end;
    }
}
