
/*
    PRISM Beacon tenant notification bell/dropdown patch.

    Changes the details/summary marker into a proper bell button and makes
    notifications drop over the page as a single-column row/table style panel.
*/

.notification-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
}

.notification-menu summary,
.notification-menu .notification-bell {
    list-style: none !important;
}

.notification-menu summary::-webkit-details-marker,
.notification-menu .notification-bell::-webkit-details-marker {
    display: none !important;
}

.notification-bell {
    width: 42px;
    height: 42px;
    border: 1px solid #d0d5dd;
    border-radius: 999px;
    background: #ffffff;
    color: #344054;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.notification-menu[open] .notification-bell {
    background: #f2f4f7;
    border-color: #98a2b3;
}

/* Hide any old shape so the default arrow/play icon is not visible */
.notification-bell .bell-shape {
    display: none !important;
}

/* CSS bell icon */
.notification-bell::before {
    content: "";
    width: 18px;
    height: 18px;
    display: block;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22Zm8-6.5c-.86-.9-2-2.25-2-6A6 6 0 0 0 13 3.58V3a1 1 0 1 0-2 0v.58A6 6 0 0 0 6 9.5c0 3.75-1.14 5.1-2 6A1.5 1.5 0 0 0 5.1 18h13.8a1.5 1.5 0 0 0 1.1-2.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 22a2.5 2.5 0 0 0 2.45-2h-4.9A2.5 2.5 0 0 0 12 22Zm8-6.5c-.86-.9-2-2.25-2-6A6 6 0 0 0 13 3.58V3a1 1 0 1 0-2 0v.58A6 6 0 0 0 6 9.5c0 3.75-1.14 5.1-2 6A1.5 1.5 0 0 0 5.1 18h13.8a1.5 1.5 0 0 0 1.1-2.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.notification-bell strong {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #d92d20;
    color: #ffffff;
    font-size: 11px;
    line-height: 20px;
    text-align: center;
    font-weight: 800;
    border: 2px solid #ffffff;
}

.notification-dropdown {
    position: absolute;
    top: 52px;
    right: 0;
    z-index: 20000;
    width: min(520px, calc(100vw - 32px));
    max-height: min(70vh, 620px);
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #d0d5dd;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.22);
    padding: 0;
}

/* Give it a clean single-column table/list feel */
.notification-dropdown::before {
    content: "Notifications";
    display: block;
    padding: 14px 16px;
    font-weight: 900;
    color: #101828;
    border-bottom: 1px solid #eaecf0;
    background: #f9fafb;
    position: sticky;
    top: 0;
    z-index: 1;
}

.notification-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
    border-bottom: 1px solid #eaecf0;
    background: #ffffff;
}

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

.notification-item.unread {
    background: #eff8ff;
}

.notification-item > a {
    display: grid;
    gap: 4px;
    color: #101828;
    text-decoration: none;
}

.notification-item > a strong {
    font-size: 14px;
    line-height: 1.25;
    color: #101828;
}

.notification-item > a span {
    font-size: 13px;
    line-height: 1.35;
    color: #475467;
}

.notification-item > a em {
    font-style: normal;
    font-size: 12px;
    color: #667085;
}

.notification-item form {
    margin: 0;
}

.notification-item button {
    border: 1px solid #d0d5dd;
    background: #ffffff;
    color: #344054;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.notification-item button:hover {
    background: #f2f4f7;
}

.notification-empty {
    padding: 28px 18px;
    color: #667085;
    text-align: center;
}

.mobile-app-header .notification-dropdown {
    right: 0;
    left: auto;
    top: 52px;
    width: min(420px, calc(100vw - 24px));
}

.app-topbar,
.mobile-app-header,
.topbar-actions {
    overflow: visible !important;
}

@media (max-width: 720px) {
    .notification-bell {
        width: 40px;
        height: 40px;
    }

    .notification-dropdown {
        position: fixed;
        top: 76px;
        left: 12px;
        right: 12px;
        width: auto;
        max-height: calc(100vh - 100px);
    }

    .notification-item {
        grid-template-columns: 1fr;
    }

    .notification-item form {
        justify-self: start;
    }
}
