/*.shadow-inset-warning {
    box-shadow: inset #c2920080 0 0 20px 1px;
}

.shadow-inset-primary {
    box-shadow: inset #0a58ca80 0 0 20px 1px;
}

.notifications-btn {
    position: relative;
}

.notifications-btn:focus,
.notifications-btn:active:focus {
    box-shadow: none;
}

.notifications-btn-icon.ring {
    display: block;
    animation: ring 4s ease-in-out;
}

.notifications-badge {
    position: absolute;
    top: 0 !important;
    right: 0;
    border-radius: 0.5rem;
    font-size: 70%;
    background: var(--bs-danger);
    color: var(--bs-white);
    padding: 0.1rem 0.35rem;
}

.notifications-card {
    display: none;
    position: absolute;
    width: calc(100% - 40px);
    max-width: 400px;
    background: var(--bs-white);
    border: 1px solid #EBEDF3;
    border-radius: 0.6rem;
    box-shadow: 0px 0px 30px 0px rgba(82, 63, 105, 0.2);
    z-index: 1000;
    --before-right: calc(50% - 5px);
    --before-size: 10;
}

.notifications-card::before {
    content: "";
    background: var(--bs-gray-100);
    border: 1px solid #EBEDF3;
    border-right: none;
    border-bottom: none;
    border-top-left-radius: 0.1rem;
    transform: rotate(45deg);
    width: calc(var(--before-size) * 1px);
    height: calc(var(--before-size) * 1px);
    position: absolute;
    right: var(--before-right);
    top: -6px;
    box-shadow: 0px 0px 30px 0px rgba(82, 63, 105, 0.2);
}

.notifications-card.show {
    display: block;
    animation: fadeIn 0.3s;
}

.notifications-card .notifications-header {
    display: flex;
    align-items: center;
    padding: 1rem 1rem 0.5rem 1rem;
    border-bottom: 1px solid #EBEDF3;
    background: var(--bs-gray-100);
    border-top-right-radius: 0.5rem;
    border-top-left-radius: 0.5rem;
}

.notifications-card .notifications-title {
    flex-grow: 1;
    line-height: 1rem;
}

.notifications-card .notifications-title h5 {
    margin-bottom: 0;
}

.notifications-card .notifications-title small {
    color: var(--bs-gray-600);
    font-size: 0.7em;
}

.notifications-card .notifications-read-all-btn {
    font-size: 1.5rem;
}

.notifications-card .notifications-body {
    overflow-y: auto;
    max-height: 300px;
}

.notifications-card .notifications-empty {
    padding: 1rem;
    text-align: center;
}

.notifications-card .notifications-empty:not(:only-child) {
    display: none;
}

.notifications-card .notifications-item {
    display: flex;
    border-left: 3px solid transparent;
}

.notifications-card .notifications-item[data-action] {
    cursor: pointer;
}

.notifications-card .notifications-item:not(.read) {
    border-left-color: var(--bs-info);
    background: rgba(var(--bs-info-rgb), 0.05);
    font-weight: 600;
}

.notifications-item:not([data-action]) [data-action-type="view"] {
    display: none;
}

.notifications-item.read [data-action-type="read"] {
    display: none !important;
}

.notifications-card .notifications-item:not(.read) .notifications-item-title {
    font-weight: 600;
}

.notifications-card .notifications-item-content {
    padding: 1rem 0 0.5rem 0;
    margin: 0 1rem;
    flex-grow: 1;
    width: min-content;
}

.notifications-card .notifications-item:not(:last-child) .notifications-item-content {
    border-bottom: 1px solid #EBEDF3;
}

.notifications-card .notifications-item:not(:last-child).notification-actions-swiping .notifications-item-content,
.notifications-card .notifications-item:not(:last-child).notification-actions-open .notifications-item-content {
    margin-right: 0;
    padding-right: 1rem;
}

.notifications-card .notifications-item-header {
    display: flex;
}

.notifications-card .notifications-item-title {
    flex-grow: 1;
}

.notifications-card .notifications-item-date {
    font-size: .8em;
    text-align: end;
}

.notifications-card .notifications-item-body {
    display: flex;
}

.notifications-card .notifications-item-description {
    flex-grow: 1;
    font-size: 0.9em;
}

.notifications-card .notifications-item.notification-actions-swiping .notifications-item-description,
.notifications-card .notifications-item.notification-actions-open .notifications-item-description {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 0;
    line-clamp: 2;
}

.notifications-card .notifications-item-read-circle {
    display: block;
    background: var(--bs-primary);
    height: 12px;
    width: 12px;
    border-radius: 50%;
    margin-left: 0.5rem;
    margin-top: 0.2rem;
    cursor: pointer;
}

.notifications-card .notifications-item-delete {
    display: flex;
    align-items: end;
}

.notifications-card .notifications-item-delete i {
    cursor: pointer;
}

.notifications-card .notifications-item-actions {
    width: 0;
    max-width: max-content;
    overflow: hidden;
    display: flex;
}

.notifications-card .notifications-item:not(:last-child) .notifications-item-actions {
    border-bottom: 1px solid #EBEDF3;
}

.notifications-card .notifications-item-actions .notifications-item-action {
    width: 40px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.notifications-card .notifications-item-actions .notifications-item-action i {
    -webkit-text-stroke: 0.5px;
}

.notifications-card .notifications-footer {
    display: flex;
    overflow: hidden;
    border-bottom-right-radius: 0.5rem;
    border-bottom-left-radius: 0.5rem;
    border-top: 1px solid #EBEDF3;
}

.notifications-card .notifications-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    color: var(--bs-black-rgb);
    background: var(--bs-gray-100);
    font-weight: 600;
    text-decoration: none;
    width: 100%;
}

.notifications-card .notifications-footer-link .notifications-badge {
    position: relative;
    margin-left: 0.4rem;
}

.notifications-card .notifications-footer-link:hover {
    color: var(--bs-gray-600);
}

.notifications-item:not(.read) .notification-read-badge {
    display: none;
}

.notifications-item.read .notification-not-read-badge {
    display: none;
}

@media (hover: hover) {
    .notifications-card .notifications-title small {
        display: none;
    }

    .notifications-card .notifications-item-header {
        position: relative;
    }

    .notifications-card .notifications-item.read .notifications-item-read-circle {
        display: none;
    }
}

@media (hover: none) {
    .notifications-card .notifications-item-read-circle {
        display: none;
    }

    .notifications-card .notifications-item-delete {
        display: none;
    }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes ring {
    0% { transform: rotate(0); }
    1% { transform: rotate(30deg); }
    3% { transform: rotate(-28deg); }
    5% { transform: rotate(34deg); }
    7% { transform: rotate(-32deg); }
    9% { transform: rotate(30deg); }
    11% { transform: rotate(-28deg); }
    13% { transform: rotate(26deg); }
    15% { transform: rotate(-24deg); }
    17% { transform: rotate(22deg); }
    19% { transform: rotate(-20deg); }
    21% { transform: rotate(18deg); }
    23% { transform: rotate(-16deg); }
    25% { transform: rotate(14deg); }
    27% { transform: rotate(-12deg); }
    29% { transform: rotate(10deg); }
    31% { transform: rotate(-8deg); }
    33% { transform: rotate(6deg); }
    35% { transform: rotate(-4deg); }
    37% { transform: rotate(2deg); }
    39% { transform: rotate(-1deg); }
    41% { transform: rotate(1deg); }

    43% { transform: rotate(0); }
    100% { transform: rotate(0); }
}*/