/* v2.9.6 — Layout-level notification bell styles.
   Extracted from CeoTaskTracker/site.css so non-SPA pages (Accounting, PO,
   Production Plan, …) can show the bell without pulling the whole SPA
   stylesheet. The class names match the legacy ones so the dark-theme
   selectors in site.css still apply when the SPA is loaded. */

/* The bell button itself sits inside the _Layout header. Keep neutral so it
   inherits the surrounding header styling cleanly. */
#notif-bell-wrap {
    position: relative;
    height: 100%;
    display: inline-block;
}
#notif-bell {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 5px 10px;
    height: 100%;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    line-height: 1;
    outline-color: aliceblue;
}

#notif-badge {
    display: none;
    position: absolute;
    top: -4px;
    right: -4px;
    background: #dc2626;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    line-height: 18px;
    text-align: center;
}

#notif-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 340px;
    max-height: 480px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
    z-index: 9998;
    text-align: left;
}

.notif-row {
    display: flex;
    padding: 10px 14px;
    border-bottom: 1px solid #e5e7eb;
    cursor: pointer;
}
.notif-row:hover > .notif-icon,
.notif-row:hover > .notif-body {
    background: #e5e7eb;
    color: #374151;
}
.notif-body {
    padding: 0.5rem 0.5rem 0.5rem;
    border-radius: 0 10px 10px 10px;
    width: 100%;
}
.notif-icon {
    height: fit-content;
    border-radius: 10px 0 0 10px;
    padding: 0.5rem 0 0.5rem 0.5rem;
}

/* Dark theme — keyed off body.dark-theme set by _Layout's pre-body script. */
body.dark-theme #notif-bell {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
}
body.dark-theme #notif-dropdown {
    background: #1e293b;
    color: #e2e8f0;
    border-color: #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
body.dark-theme .notif-row {
    border-bottom-color: #334155;
}
body.dark-theme .notif-row:hover > .notif-icon,
body.dark-theme .notif-row:hover > .notif-body {
    background: #001335;
    color: #ffffff;
}
