@font-face {
    font-family: "Source Sans Pro Notifications";
    src: url('../fonts/SourceSansPro-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans Pro Notifications";
    src: url('../fonts/SourceSansPro-SemiBold.ttf') format('truetype');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Source Sans Pro";
    src: url("../fonts/SourceSans3-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

.header-notifications-indicator {
    background: #12b76a;
    border-radius: 50%;
    height: 8px;
    pointer-events: none;
    position: absolute;
    right: 6px;
    top: 6px;
    width: 8px;
}

.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 #eaecf0;
    border-radius: 8px;
    box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08);
    color: #1d2939;
    font-family: "Source Sans Pro Notifications", "Source Sans Pro", sans-serif;
    font-style: normal;
    font-weight: 400;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    box-sizing: border-box !important;
    width: 360px !important;
    z-index: 1050;
}

.header-notifications-panel button {
    font-family: inherit;
}

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

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

.header-notifications-mark-read:not(:disabled),
.header-notifications-mark-read:not(:disabled):hover,
.header-notifications-mark-read:not(:disabled):focus,
.header-notifications-mark-read:not(:disabled):active {
    color: #004770 !important;
    -webkit-text-fill-color: #004770;
}

.header-notifications-mark-read:disabled {
    -webkit-appearance: none;
    appearance: none;
    color: #98a2b3 !important;
    -webkit-text-fill-color: #98a2b3 !important;
    cursor: default !important;
    opacity: 1;
    pointer-events: none;
}

.header-notifications-empty {
    color: var(--Gray-500, #667085);
    text-align: center;
    font-family: "Source Sans Pro";
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    padding: 28px 16px;
}

.header-notifications-list { overflow: hidden; }

.header-notification-item {
    align-items: flex-start;
    border-bottom: 1px solid #f2f4f7;
    color: #1d2939;
    display: flex;
    font-size: 14px;
    gap: 12px;
    line-height: 20px;
    box-sizing: border-box !important;
    min-height: 67px !important;
    padding: 12px 16px !important;
    cursor: default;
}

/* 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: flex !important;
    min-height: 67px !important;
    padding: 12px 16px !important;
    width: 100% !important;
}

.header-notification-item-body {
    flex: 1 1 auto;
    min-width: 0;
}

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

.header-notification-progress,
.header-notification-progress-error,
.header-notifications-action-error {
    color: #667085;
    display: block;
    font-size: 11px;
    font-weight: 400;
    line-height: 16px;
}

.header-notification-progress-error,
.header-notifications-action-error {
    color: #b42318;
}

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

.header-notification-text {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.header-notification-message {
    display: block;
}

.header-notification-unread-dot {
    background: url('../svg/notification-unread.svg') center no-repeat;
    flex: 0 0 8px;
    height: 14px;
    width: 8px;
}

.header-notification-unread-placeholder {
    flex: 0 0 8px;
    height: 8px;
    width: 8px;
}

.header-notifications-pagination {
    align-items: center;
    border-top: 1px solid #f2f4f7;
    box-sizing: border-box;
    display: flex;
    height: 49px;
    justify-content: center;
    gap: 12px !important;
    padding: 10px 14px;
}

.header-notifications-pagination button {
    background: transparent;
    border: 0;
    border-radius: 6px;
    box-sizing: border-box;
    color: #344054;
    cursor: pointer;
    display: inline-flex;
    height: 28px;
    align-items: center;
    justify-content: center;
    padding: 6px;
    width: 28px;
}

.header-notifications-pagination button:focus-visible {
    outline: 2px solid #004770;
    outline-offset: 2px;
}

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

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

.header-notifications-pagination button span {
    background: transparent;
    border-right: 2px solid currentColor;
    border-top: 2px solid currentColor;
    display: block;
    height: 8px;
    width: 8px;
}

.header-notifications-pagination button:first-child span {
    transform: rotate(-135deg);
}

.header-notifications-pagination button:last-child span {
    transform: rotate(45deg);
}

@media (max-width: 440px) {
    .header-notifications-panel {
        left: 16px;
        max-width: none !important;
        position: fixed;
        right: 16px;
        top: 77px;
        width: auto !important;
    }
}
