﻿#account-bar {
    font-size: 1rem;
    width: 100%;
    background: #ffffff;
}

    /*---------- START: CHANGE VISIBILITY BASED ON LOGIN STATUS ----------*/

    /* green border sits under main nav */
    .logged-out {
        border-top: 3px solid #2e9801;
        height: 3px;
    }

    /* green border moves under account bar */
    #account-bar.logged-in {
        border-bottom: 3px solid #2e9801;
        height: 40px;
    }

    /* hide the account bar */
    .logged-out #account-bar-content {
        display: none;
    }

    /* show the account bar */
    #account-bar.logged-in #account-bar-content {
        display: block;
    }

/* MOBILE ADJUSTMENTS */

/* adjusts account bar height to fit user and company items */
@media (max-width: 576px) {
    #account-bar.logged-in {
        height: 74px;
    }
}

/*---------- END: CHANGE VISIBILITY BASED ON LOGIN STATUS ----------*/


/*---------- START: USER / COMPANY INFO ----------------------------*/

/* aligns user and company info to the left */
#account-bar-content #user-info,
#account-bar-content #company-info {
    float: left;
}

/* adds space between user and company info */
#account-bar-content #user-info {
    margin-right: 20px;
}

    /* sets height, and removes any unwanted default padding / margins to user and company info lists */
    #account-bar-content #user-info ul,
    #account-bar-content #company-info ul {
        line-height: 37px;
        margin: 0;
        padding: 0;
    }

        /* sets font size and left alignment to user and company info */
        #account-bar-content #user-info ul li,
        #account-bar-content #company-info ul li {
            display: inline-block;
            font-size: .8em;
        }

    /* "User" and "Company" font color */
    #account-bar-content #user-info #user,
    #account-bar-content #company-info #company {
        color: #414549;
    }

    /* Username and Company name dropdown font styling */
    #account-bar-content #user-info #username,
    #account-bar-content #company-info #company-name .company-menu select,
    .company-menu-dropdown {
        color: #2e9801;
        font-weight: bold;
    }

    /* Username and Company name dropdown font styling */
    #account-bar-content #company-info #company-name .company-menu-input {
        font-weight: bold;
    }

/* removes border around select dropdown menu */
/* sets a background color for the select dropdown (was a problem on mobile) */
/* sets a max width to account for long customer names */
#account-bar-content #company-info #company-name .company-menu select {
    border: none;
    background-color: #fff;
    max-width: 600px;
}

/* MOBILE ADJUSTMENTS */

@media (max-width: 576px) {

    /* adds dashed border under user info on phone */
    #account-bar-content #user-info {
        border-bottom: 1px dashed #2e9801;
    }

    /* extends user info and company block to full width of phone */
    #account-bar-content #user-info,
    #account-bar-content #company-info {
        width: 100%;
    }

        /* adds border padding on left and right to align user/company info with all phone content */
        #account-bar-content #user-info ul,
        #account-bar-content #company-info ul {
            padding: 0 15px;
        }
}

@media (max-width:1024px) {
    /* hides User: and Company: labels, which take up too much space on screen when customer name is long */
    #account-bar-content #user-info ul li.desktop-only,
    #account-bar-content #company-info ul li.desktop-only {
        display: none;
    }

    /* sets a max width to account for long customer names */
    #account-bar-content #company-info #company-name .company-menu select {
        max-width: 300px;
    }
}

/*---------- END: USER / COMPANY INFO ------------------------------*/


/*---------- START: MESSAGE INFO -----------------------------------*/

/* pulls message info to the right of the account bar */
#account-bar-content #message-info {
    float: right;
}

    /* sets height, and removes any unwanted default padding / margins to messages */
    #account-bar-content #message-info ul {
        line-height: 37px;
        margin: 0;
        padding: 0;
    }

        /* sets font size and left alignment to message info */
        #account-bar-content #message-info ul li {
            display: inline-block;
            font-size: .8em;
        }

    /* font styling for messages */
    #account-bar-content #message-info a.message {
        color: #2e9801;
        font-weight: bold;
        padding: 0px;
    }

    /* font styling for other hyperlinks */
    #account-bar-content #message-info a {
        color: #2e9801;
        font-weight: bold;
        padding: 5px;
    }

/*---------- END: MESSAGE INFO -------------------------------------*/