#login_logout {
    position: relative;
    margin-left: 3em;
    float: right;
    height: 100%;
    width: auto;
    top: 0;
    cursor: pointer;
}

    #login_logout .runner .icon {
        cursor: pointer;
        margin-right: 0.4em;
        height: 45px;
        width: 45px;

        display: inline-block;
        overflow: hidden;

        border-radius: 0;
    }
        #login_logout .runner .icon img {
            height: 45px;
            width: 45px;
        }

#logout_icon {
    height: 45px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    z-index: 900;
    display: none;
    float: left;
    right:-5px;
    margin: 2px 0 0;
    background: #fff;
    background-color: rgba(255,255,255,0.98);
    border: 1px solid #e1e8ed;
    border: 0 solid rgba(0,0,0,0.25);
    border-radius: 4px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    background-clip: padding-box;
    color: #66757f;
    cursor: default;
}

.dropdown-menu.logged_in {
    top: 113%;
    right:11px;
}

    .dropdown-menu .dropdown-caret {
        left: auto;
        right: 10px;
        position: absolute;
        top: -10px;
        width: 18px;
        height: 10px;
        float: left;
        overflow: hidden;
    }

    .dropdown-menu.logged_in .dropdown-caret {
        top: -9px;
    }

        .dropdown-caret .caret-outer {
            border-bottom: 10px solid #8899a6;
            border-bottom-color: rgba(0,0,0,0.1);
            border-left: 10px solid transparent;
            border-right: 10px solid transparent;
            height: auto;
            left: 0;
            top: 0;
            width: auto;
        }

        .dropdown-caret .caret-outer, .dropdown-caret .caret-inner {
            position: absolute;
            top: 0;
            left: 0;
            display: inline-block;
            margin-left: -1px;
        }

        .dropdown-caret .caret-inner {
            top: 1px;
            left: 1px;
            border-left: 9px solid transparent;
            border-right: 9px solid transparent;
            border-bottom: 9px solid #fff;
            border-bottom-color: rgba(255,255,255,0.98);
        }

    #login_logout:before {
        content: '';
        display: inline-block;
        height: 100%;
        vertical-align: middle;
    }

    #login_logout .login_logout_container{
        display: inline-block;
        vertical-align: middle;
        text-align: left;
        background-color: transparent;
        border-color: transparent;
        color: #fff;
        text-shadow: none;
        cursor: pointer;
    }

    #login_logout .ui-btn {
        overflow: visible;
    }

    .dropdown-menu.share-menu ul,
    #login_logout ul {
        margin: 1em 0;
        list-style: none;
        padding: 0;
    }

    .dropdown-menu.share-menu li,
    #login_logout li {
        white-space: nowrap;
        color: #66757f;
        text-decoration: none;
        padding: 0.06em 0.65em;
        cursor: pointer;
        line-height: normal;
    }

    #login_logout .menu-disabled-item {
        cursor: default;
        pointer-events: none;
    }

    #login_logout li.menu-separator {
        opacity: 0.6;
        padding: 0;
        margin: 0 0.5em;
    }

        .dropdown-menu.share-menu li:hover,
        #login_logout li:hover {
            background-color: #319EB3;
            color: white;
        }

        #login_logout li.menu-disabled-item:hover {
            background-color: rgba(255,255,255,0.98);
            color: #66757f;
        }

        .ui-icon-user {
            background-color: #f6f6f6;
            border-color: #ddd;
            color: #333;
            text-shadow: 0 1px 0 #f3f3f3;
            font-weight: 700;
            padding: 0;
            width: 1.75em;
            height: 1.75em;
            text-indent: -9999px;
            white-space: nowrap!important;
            font-size: 16px;
            margin: .5em 0;
            display: block;
            position: relative;
            text-align: center;
            text-overflow: ellipsis;
            cursor: pointer;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            background-clip: padding-box;
            -webkit-background-clip: padding;
            text-decoration: none!important;
            border-width: 1px;
            border-style: solid;
            line-height: 1.3;
            font-family: sans-serif;
        }
            .ui-icon-user:after{
                left: 50%;
                margin-left: -11px;
                top: 50%;
                margin-top: -11px;
                content: "";
                position: absolute;
                display: block;
                width: 22px;
                height: 22px;
                background-color: rgba(0,0,0,.3);
                background-position: center center;
                background-repeat: no-repeat;
                background-image: url("data:image/svg+xml;charset=US-ASCII,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22iso-8859-1%22%3F%3E%3C!DOCTYPE%20svg%20PUBLIC%20%22-%2F%2FW3C%2F%2FDTD%20SVG%201.1%2F%2FEN%22%20%22http%3A%2F%2Fwww.w3.org%2FGraphics%2FSVG%2F1.1%2FDTD%2Fsvg11.dtd%22%3E%3Csvg%20version%3D%221.1%22%20id%3D%22Layer_1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20x%3D%220px%22%20y%3D%220px%22%20%20width%3D%2214px%22%20height%3D%2214px%22%20viewBox%3D%220%200%2014%2014%22%20style%3D%22enable-background%3Anew%200%200%2014%2014%3B%22%20xml%3Aspace%3D%22preserve%22%3E%3Cpath%20fill%3D%22%23FFF%22%20d%3D%22M8.851%2C10.101c-0.18-0.399-0.2-0.763-0.153-1.104C9.383%2C8.49%2C9.738%2C7.621%2C9.891%2C6.465C10.493%2C6.355%2C10.5%2C5.967%2C10.5%2C5.5%20c0-0.437-0.008-0.804-0.502-0.94C9.999%2C4.539%2C10%2C4.521%2C10%2C4.5c0-2.103-1-4-2-4C8%2C0.5%2C7.5%2C0%2C6.5%2C0C5%2C0%2C4%2C1.877%2C4%2C4.5%20c0%2C0.021%2C0.001%2C0.039%2C0.002%2C0.06C3.508%2C4.696%2C3.5%2C5.063%2C3.5%2C5.5c0%2C0.467%2C0.007%2C0.855%2C0.609%2C0.965%20C4.262%2C7.621%2C4.617%2C8.49%2C5.303%2C8.997c0.047%2C0.341%2C0.026%2C0.704-0.153%2C1.104C1.503%2C10.503%2C0%2C12%2C0%2C12v2h14v-2%20C14%2C12%2C12.497%2C10.503%2C8.851%2C10.101z%22%2F%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3Cg%3E%3C%2Fg%3E%3C%2Fsvg%3E");
            }

#login_logout #notifications {
    display: none;
    float: left;
    position: relative;

    height: 45px;
    margin: .2em .8em 0 0;

    cursor: pointer;
}
    #login_logout #notifications [class^=icon] {
        font-size: 2em;
        opacity: .7;
    }
    #login_logout #notifications:hover [class^=icon] {
        opacity: 1;
    }

    #login_logout #notification-count {
        position: absolute;
        right: -.4em;
        top: .2em;

        font-size: .9em;
    }

#notifications .dropdown-menu {
    right: -30px;
    width: 300px;
}

#notifications ul {
    margin: 4px 0;
    overflow: scroll;
    overflow-x: auto;
}

#notifications .notification {
    clear: left;
    padding: .4em .5em;

    border-bottom: 1px solid #eee;
    font-size: 1.1em;
    text-align: left;

    overflow: hidden;
    white-space: normal;
}
    #notifications .notification:last-child {
        border-bottom: none;
    }

    .notification a {
        color: #66757f;
        text-decoration: none;
    }
        .notification:hover a {
            color: #fff;
        }

    .notification .avatar {
        float: left;

        vertical-align: top;
        width: 2.5em;
    }
    .notification .content {
        margin-left: 3em;
    }
        .notification .timestamp {
            font-size: .8em;
            opacity: .5;
        }

#notifications .notification.loading:hover {
    background: transparent;
    color: #66757f;
    cursor: default;
}

#notifications .notification.more,
#notifications .notification.mark-all-as-read,
#notifications .notification.loading {
    font-size: .9em;
}

#notifications .notification.mark-all-as-read {
    text-align: right;
}

.use_passcode_wrapper {
    margin-top: 1em;
}

.use_passcode_wrapper input, .use_passcode_wrapper label {
    width: auto !important;
    display: inline-block !important;
}

.use_passcode_wrapper input {
    position: relative;
    top: 2px;
    margin-right: 5px;
}

.modal-content .passcode-widget, .modal-content .passcode-widget-helptext {
    margin: auto;
    display: inline-table;
}

@media (max-width: 329px) {
    #notifications .dropdown-menu {
        right: -45px;
    }
    #notifications .dropdown-caret {
        right: 64px;
    }
}
@media (min-width: 480px) {
    #notifications .dropdown-menu {
        width: 350px;
    }
}

@media (max-width: 639px) {
    #notifications .dropdown-caret {
        right: 39px;
    }
}

@media (min-width: 640px) {
    #notifications .dropdown-menu {
        right: 4px;
        top: 120%;
    }
    #notifications .notification {
        font-size: .9em;
    }
    #notifications .notification.more,
    #notifications .notification.loading {
        font-size: .8em;
    }
}

@media (max-width: 640px) {
    #login_logout .runner .icon {
        cursor: pointer;
        margin-right: 0.4em;
        height: 40px;
        width: 40px;
        display: inline-block;
        overflow: hidden;
    }
    .ui-icon-user {
        width: 1.5em;
        height: 1.5em;
    }
}
