/* The owner's bell: the count on the button and the list of notices. One global file (not component CSS) because notifications.js
   rebuilds the list in the browser and its items must look the same as the ones the server drew. Old-phone friendly: long-hand
   offsets, no :has(). The phone sheet itself reuses .mobile-sheet from app.css; the desktop panel reuses .nav-dropdown-panel. */

.notif-bell { position: relative; }
/* A button in a row of links: the app's global button rules add a top margin and padding that links do not have. */
.phone-head-actions .notif-bell { margin: 0; padding: 0; box-sizing: border-box; align-self: center; cursor: pointer; }
.notif-bell .icon { width: 1.15rem; height: 1.15rem; }
.notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    box-sizing: border-box;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #e5484d;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 14px;
    text-align: center;
}
.notif-badge[hidden] { display: none; }
.notif-bell-desktop .notif-badge { top: 0; right: 2px; }

.notif-dropdown { width: 340px; max-width: 92vw; padding: 0.5rem; }
.notif-dropdown-title { display: block; padding: 0.35rem 0.5rem 0.5rem; font-size: 0.95rem; color: #0f2a4d; }

.notif-panel { display: flex; flex-direction: column; }
.notif-list { display: flex; flex-direction: column; max-height: 56vh; overflow-y: auto; }
.notif-item {
    display: flex;
    flex-direction: column;
    margin: 0 0 0.4rem;
    padding: 0.65rem 0.8rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e3eaf4;
    color: #0f2a4d;
    text-decoration: none;
    line-height: 1.4;
}
.notif-item.is-unread { background: #eef5ff; border-color: #bcd6f7; }
.notif-item:active { background: #e3efff; }
.notif-title { font-size: 0.95rem; font-weight: 700; }
.notif-body { margin-top: 0.1rem; font-size: 0.85rem; color: #3a4a61; overflow-wrap: anywhere; }
.notif-when { margin-top: 0.2rem; font-size: 0.74rem; color: #5b6b80; }
.notif-empty { margin: 0.4rem 0 0.8rem; padding: 0.6rem 0.4rem; text-align: center; color: #5b6b80; font-size: 0.92rem; }
.notif-readall {
    align-self: stretch;
    margin: 0.4rem 0 0;
    padding: 0.6rem 1rem;
    border: 0;
    border-radius: 12px;
    background: #f1f5fb;
    color: #1a63c8;
    font-weight: 700;
    cursor: pointer;
}
.notif-readall:disabled { opacity: 0.5; cursor: default; }

/* Phone push, inside the bell: one line of text and one button that changes with the state (js/push.js). */
.notif-push {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin: 0.7rem 0 0;
    padding: 0.7rem 0.8rem;
    border-radius: 14px;
    background: #f7f9fc;
    border: 1px solid #e3eaf4;
}
.notif-push[hidden], .notif-push [hidden] { display: none; }
.notif-push-text { font-size: 0.85rem; color: #3a4a61; line-height: 1.5; }
.notif-push-on {
    margin: 0.5rem 0 0;
    padding: 0.55rem 1.1rem;
    border: 0;
    border-radius: 12px;
    background: #1a73e8;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}
.notif-push-off { margin: 0.3rem 0 0; padding: 0.2rem 0; border: 0; background: transparent; color: #1a63c8; font-weight: 600; cursor: pointer; }
