/* =========================================================
   SEFTON DARK POPOVERS + SECURITY STRIP v71
   Targets remaining light components visible in screenshots.
   ========================================================= */

/* =========================================================
   USER PROFILE DROPDOWN
   ========================================================= */

html[data-theme="dark"] .ref-user-dropdown{
    background:#0c2029 !important;
    border:1px solid #2c434d !important;
    box-shadow:0 20px 50px rgba(0,0,0,.42) !important;
    color:#eef5f7 !important;
}

html[data-theme="dark"] .ref-user-dropdown .ref-drop-profile{
    background:#0f252e !important;
    border-color:#2b424c !important;
}

html[data-theme="dark"] .ref-user-dropdown .ref-drop-profile strong{
    color:#f3f8f9 !important;
}

html[data-theme="dark"] .ref-user-dropdown .ref-drop-profile small,
html[data-theme="dark"] .ref-user-dropdown .ref-drop-profile span{
    color:#9fb1b8 !important;
}

html[data-theme="dark"] .ref-user-dropdown > a,
html[data-theme="dark"] .ref-user-dropdown > form{
    background:#0c2029 !important;
    border-color:#263d47 !important;
}

html[data-theme="dark"] .ref-user-dropdown > a:hover,
html[data-theme="dark"] .ref-user-dropdown form button:hover{
    background:#142a34 !important;
}

html[data-theme="dark"] .ref-user-dropdown a strong,
html[data-theme="dark"] .ref-user-dropdown button strong{
    color:#eef5f7 !important;
}

html[data-theme="dark"] .ref-user-dropdown a small,
html[data-theme="dark"] .ref-user-dropdown button small{
    color:#9fb1b8 !important;
}

html[data-theme="dark"] .ref-user-dropdown a svg,
html[data-theme="dark"] .ref-user-dropdown button svg{
    color:#ef5059 !important;
    stroke:currentColor !important;
}

html[data-theme="dark"] .ref-user-dropdown form button{
    width:100%;
    background:#0c2029 !important;
    color:#eef5f7 !important;
    border:0 !important;
}

/* =========================================================
   NOTIFICATION POPOVER
   ========================================================= */

html[data-theme="dark"] .sv5-notification-popover{
    background:#0c2029 !important;
    border:1px solid #2d4650 !important;
    box-shadow:0 22px 55px rgba(0,0,0,.45) !important;
    color:#eef5f7 !important;
}

html[data-theme="dark"] .sv5-notification-head{
    background:#0f252e !important;
    border-color:#2a414a !important;
}

html[data-theme="dark"] .sv5-notification-head small{
    color:#d8b85c !important;
}

html[data-theme="dark"] .sv5-notification-head strong{
    color:#f3f8f9 !important;
}

html[data-theme="dark"] .sv5-notification-head > span{
    color:#a6b7bd !important;
}

html[data-theme="dark"] .sv5-notification-summary{
    background:#102630 !important;
    border-color:#2a414a !important;
}

html[data-theme="dark"] .sv5-notification-summary > div{
    border-color:#2b424c !important;
}

html[data-theme="dark"] .sv5-notification-summary small{
    color:#8fa4ac !important;
}

html[data-theme="dark"] .sv5-notification-summary strong{
    color:#f0f6f7 !important;
}

html[data-theme="dark"] .sv5-notification-list{
    background:#0c2029 !important;
}

html[data-theme="dark"] .sv5-notification-item{
    background:#0c2029 !important;
    border-color:#263d47 !important;
}

html[data-theme="dark"] .sv5-notification-item:hover{
    background:#132a34 !important;
}

html[data-theme="dark"] .sv5-notification-item strong{
    color:#eef5f7 !important;
}

html[data-theme="dark"] .sv5-notification-item p{
    color:#a7b8be !important;
}

html[data-theme="dark"] .sv5-notification-item small{
    color:#7f949c !important;
}

html[data-theme="dark"] .sv5-notification-empty{
    background:#0c2029 !important;
    color:#a7b8be !important;
}

html[data-theme="dark"] .sv5-notification-empty strong{
    color:#eef5f7 !important;
}

html[data-theme="dark"] .sv5-notification-footer{
    background:#0f252e !important;
    border-color:#2a414a !important;
}

html[data-theme="dark"] .sv5-notification-footer a{
    color:#e4bf5f !important;
}

/* =========================================================
   MEMBER SECURITY CENTER
   ========================================================= */

html[data-theme="dark"] .sv4-footer-security{
    background:#0d2028 !important;
    border:1px solid #2b424c !important;
    color:#eef5f7 !important;
    box-shadow:0 10px 28px rgba(0,0,0,.14) !important;
}

html[data-theme="dark"] .sv4-footer-security > div > span{
    background:#351419 !important;
    color:#ff6670 !important;
}

html[data-theme="dark"] .sv4-footer-security strong{
    color:#f2f7f8 !important;
}

html[data-theme="dark"] .sv4-footer-security small{
    color:#9fb1b8 !important;
}

html[data-theme="dark"] .sv4-footer-security > a{
    color:#e8c565 !important;
}

html[data-theme="dark"] .sv4-footer-security > a:hover{
    color:#f4d779 !important;
}

/* =========================================================
   SIDEBAR DIMMED ITEMS
   Keep available menu labels readable.
   ========================================================= */

html[data-theme="dark"] .ref-sidebar nav a,
html[data-theme="dark"] .ref-sidebar nav button,
html[data-theme="dark"] .portal-sidebar nav a,
html[data-theme="dark"] .portal-sidebar nav button{
    color:#e3edf0 !important;
}

html[data-theme="dark"] .ref-sidebar nav a span,
html[data-theme="dark"] .ref-sidebar nav button span,
html[data-theme="dark"] .portal-sidebar nav a span,
html[data-theme="dark"] .portal-sidebar nav button span{
    color:inherit !important;
}

html[data-theme="dark"] .ref-sidebar nav p,
html[data-theme="dark"] .portal-sidebar nav p{
    color:#9db0b7 !important;
}

/* =========================================================
   TOPBAR BUTTONS
   ========================================================= */

html[data-theme="dark"] .sv5-notification-button,
html[data-theme="dark"] .ref-user-trigger{
    background:#102730 !important;
    border-color:#304852 !important;
    color:#eef5f7 !important;
}

html[data-theme="dark"] .sv5-notification-button:hover,
html[data-theme="dark"] .ref-user-trigger:hover{
    background:#16313b !important;
}

/* =========================================================
   MOBILE
   ========================================================= */

@media(max-width:850px){
    html[data-theme="dark"] .sv5-notification-popover,
    html[data-theme="dark"] .ref-user-dropdown{
        background:#0c2029 !important;
        color:#eef5f7 !important;
    }

    html[data-theme="dark"] .sv4-footer-security{
        background:#0d2028 !important;
    }
}
