.mes-notification-stack {
    position: fixed;
    right: 60px;
    bottom: 60px;
    z-index: 10070;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    pointer-events: none;
}

.mes-notification {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    width: 500px;
    max-width: 500px;
    height: 72px;
    margin-top: 12px;
    padding: 16px;
    gap: 16px;
    color: #1f1f1f;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 60px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    text-decoration: none;
    overflow: hidden;
    pointer-events: auto;
    transform: translateY(0);
    opacity: 1;
    transition:
        height 240ms ease-out,
        margin-top 240ms ease-out,
        padding-top 240ms ease-out,
        padding-bottom 240ms ease-out,
        transform 240ms cubic-bezier(0.4, 0, 0.2, 1),
        opacity 200ms ease-in;
}

.mes-notification:first-child {
    margin-top: 0;
}

.mes-notification:hover,
.mes-notification:focus {
    color: #1f1f1f;
    text-decoration: none;
}

.mes-notification.is-entering {
    height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: none;
    transform: translateY(24px);
    opacity: 0;
}

.mes-notification.is-leaving {
    pointer-events: none;
    transform: translateX(44px);
    opacity: 0;
}

.mes-notification.is-collapsing {
    height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
}

.mes-notification__icon-button {
    position: relative;
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: rgba(31, 31, 31, 0.07);
}

.mes-notification__icon {
    display: block;
    width: 16px;
    height: 16px;
    background: #1f1f1f;
    mask: url('/soto-icons/group.svg') center / contain no-repeat;
    -webkit-mask: url('/soto-icons/group.svg') center / contain no-repeat;
}

.mes-notification--error .mes-notification__icon-button {
    background: rgba(224, 54, 54, 0.1);
}

.mes-notification--error .mes-notification__icon {
    background: #e03636;
    mask: url('/soto-icons/remove_user.svg') center / contain no-repeat;
    -webkit-mask: url('/soto-icons/remove_user.svg') center / contain no-repeat;
}

.mes-notification__content {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.mes-notification__title {
    width: 100%;
    overflow: hidden;
    color: #1f1f1f;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mes-notification__meta {
    display: flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    gap: 4px;
    font-size: 12px;
    line-height: 14px;
}

.mes-notification__avatar {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border-radius: 10px;
    object-fit: cover;
    background: #f0f0f0;
}

.mes-notification__actor {
    flex: 0 0 auto;
    max-width: 120px;
    overflow: hidden;
    color: #1f1f1f;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mes-notification__body {
    min-width: 0;
    overflow: hidden;
    color: #a3a3a3;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mes-notification--error .mes-notification__body {
    color: #e03636;
}

.notification-panel {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    padding-top: var(--notification-filter-height, 71px);
    box-sizing: border-box;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    overscroll-behavior: contain;
}

.notification-panel-filter {
    position: absolute;
    z-index: 2;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 10px;
    min-width: 0;
    padding: 20px;
    overflow: visible;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    box-sizing: border-box;
    scrollbar-width: none;
}

.notification-panel-filter::-webkit-scrollbar {
    display: none;
}

.notification-panel-filter__button {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    height: 30px;
    min-width: 0;
    padding: 0 14px;
    gap: 8px;
    color: #1f1f1f;
    background: #ffffff;
    border: 1px solid #d6d6d6;
    border-radius: 999px;
    box-sizing: border-box;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    white-space: nowrap;
    cursor: pointer;
}

.notification-panel-filter__button:hover,
.notification-panel-filter__button:focus-visible {
    background: #ffffff;
    border-color: #a3a3a3;
}

.notification-panel-filter__button.is-active {
    color: #ffffff;
    background: #1f1f1f;
    border-color: #1f1f1f;
}

.notification-panel-filter__button.is-active:hover,
.notification-panel-filter__button.is-active:focus-visible {
    background: #1f1f1f;
    border-color: #1f1f1f;
}

.notification-panel-filter__icon,
.notification-panel-filter__icon .soto-icon,
.notification-panel-filter__icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

.notification-panel-filter__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-panel__list {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    overflow: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
}

.notification-panel__empty-filter {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 24px;
    color: #737373;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
}

.notification-panel__empty-filter[hidden] {
    display: none;
}

.notification-panel__scroll-sentinel {
    flex: 0 0 1px;
    width: 100%;
    min-height: 1px;
    pointer-events: none;
}

.notification-panel__scroll-sentinel[hidden] {
    display: none;
}

.notification-panel-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.notification-panel-section__title {
    margin: 0;
    color: #a3a3a3;
    font-size: 12px;
    font-weight: 600;
    line-height: 14px;
    text-transform: uppercase;
}

.notification-panel-section__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.notification-panel-card {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 64px;
    padding: 10px;
    gap: 10px;
    color: #1f1f1f;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    box-sizing: border-box;
    text-decoration: none;
}

.notification-panel-card[hidden] {
    display: none !important;
}

a.notification-panel-card:hover,
a.notification-panel-card:focus {
    color: #1f1f1f;
    background: #fafafa;
    border-color: #d6d6d6;
    text-decoration: none;
}

.notification-panel-card__icon {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #1f1f1f;
    background: rgba(31, 31, 31, 0.07);
    border-radius: 8px;
}

.notification-panel-card__icon .soto-icon,
.notification-panel-card__icon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.notification-panel-card__content {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.notification-panel-card__head {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.notification-panel-card__title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: #1f1f1f;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-panel-card__time {
    flex: 0 0 auto;
    color: #a3a3a3;
    font-size: 12px;
    font-weight: 400;
    line-height: 14px;
    white-space: nowrap;
}

.notification-panel-card__meta {
    display: flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
    gap: 4px;
    font-size: 12px;
    line-height: 14px;
}

.notification-panel-card__avatar {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border-radius: 10px;
    object-fit: cover;
    background: #f0f0f0;
}

.notification-panel-card__actor {
    flex: 0 0 auto;
    max-width: 120px;
    overflow: hidden;
    color: #1f1f1f;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-panel-card__body {
    min-width: 0;
    overflow: hidden;
    color: #a3a3a3;
    font-weight: 400;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-panel-card--vacation .notification-panel-card__icon {
    color: #d18043;
    background: rgba(209, 128, 67, 0.12);
}

.notification-panel-card--document .notification-panel-card__icon {
    color: #2f80ed;
    background: rgba(47, 128, 237, 0.1);
}

.notification-panel-card--error .notification-panel-card__icon {
    color: #e03636;
    background: rgba(224, 54, 54, 0.1);
}

.notification-panel-card--error .notification-panel-card__body {
    color: #e03636;
}

@media (max-width: 640px) {
    .mes-notification-stack {
        right: 16px;
        bottom: 16px;
        left: 16px;
        align-items: stretch;
    }

    .mes-notification {
        width: 100%;
        max-width: none;
        border-radius: 16px;
    }

    .notification-panel-card {
        align-items: flex-start;
        min-height: 64px;
        border-radius: 16px;
    }

    .notification-panel-card__head {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }
}
