.header-notifications-button {
    align-items: center;
    border: 0;
    color: #667085;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    line-height: 20px;
    padding: 8px;
    vertical-align: middle;
    width: 36px;
}

.header-notifications-button[aria-expanded='true'] {
    background-color: #f2f4f7;
}

.header-notifications-button svg {
    fill: none;
    height: 20px;
    width: 20px;
}

.header-notifications {
    display: inline-flex;
    position: relative;
    vertical-align: middle;
}

.header-notifications-panel {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(16, 24, 40, 0.14);
    color: #1d2939;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    box-sizing: border-box !important;
    width: 400px !important;
    z-index: 1050;
}

.header-notifications-panel-heading {
    align-items: center;
    border-bottom: 1px solid #eaecf0;
    display: flex;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    justify-content: space-between;
    padding: 18px 16px !important;
}

.header-notifications-mark-read {
    background: transparent;
    border: 0;
    color: #005b8f;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    padding: 0;
}

.header-notifications-empty {
    color: #667085;
    font-size: 13px;
    line-height: 18px;
    padding: 28px 16px;
    text-align: center;
}

.header-notifications-list {
    max-height: 330px;
    overflow-y: auto;
}

.header-notification-item {
    border-bottom: 1px solid #f2f4f7;
    color: #344054;
    font-size: 14px;
    line-height: 20px;
    box-sizing: border-box !important;
    min-height: 74px !important;
    padding: 16px 18px !important;
}

/* The scoped stylesheet is loaded inside the header Shadow DOM. Keep this
   selector stronger than the shared Bootstrap/list rules. */
.header-notifications-panel .header-notifications-list > .header-notification-item {
    box-sizing: border-box !important;
    display: block !important;
    min-height: 74px !important;
    padding: 16px 18px !important;
    width: 100% !important;
}

.header-notification-item:last-child {
    border-bottom: 0;
}

.header-notification-item[data-unread='true'] {
    background: #f8fbfd;
    font-weight: 600;
}

.header-notification-item time {
    color: #667085;
    display: block;
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
    margin-top: 5px;
}

.header-notification-message {
    align-items: flex-start;
    display: flex;
    gap: 12px !important;
    justify-content: space-between;
}

.header-notification-unread-dot {
    background: #12b76a;
    border-radius: 50%;
    flex: 0 0 8px;
    height: 8px;
    margin-top: 6px;
    width: 8px;
}

.header-notifications-pagination {
    align-items: center;
    border-top: 1px solid #eaecf0;
    display: flex;
    height: 54px;
    justify-content: center;
    gap: 26px !important;
}

.header-notifications-pagination button {
    background: transparent;
    border: 0;
    color: #344054;
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    padding: 0;
}

.header-notifications-pagination button:disabled {
    color: #d0d5dd;
    cursor: default;
}

.header-notifications-pagination span {
    color: #667085;
    font-size: 12px;
}

@media (max-width: 767.98px) {
    .header-notifications-panel {
        left: auto;
        max-width: calc(100vw - 24px) !important;
        position: absolute;
        right: -64px;
        top: calc(100% + 16px);
        width: calc(100vw - 24px) !important;
    }
}
