﻿/*Top Header*/
.g_header {
    /*background-color: pink;*/
    margin-top: 0px;
    box-shadow: 0px 0px 8px 0px #ccc;
    overflow:hidden;
}

.g_header_contents {
    display: flex;
    font-size: 14px;
    line-height: 1.42857143 !important;
    font-family: proxima-nova, Calibri, 'Franklin Gothic', Arial, sans-serif !important;
}

.g_header_env {
    font-weight: bold !important;
    /*text-overflow: ellipsis;*/
    /*white-space: nowrap;*/
    overflow: hidden;
    /*max-width: 110px;*/
    margin-top: auto;
    margin-bottom: auto;
    height: 50px;
    line-height: 50px;

}
.g_header_env span {
    vertical-align: middle;
    line-height: normal;
    display: inline-block;
}

.headerFont {
    font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
}


#g_header_mobile {
    border-left: 1px solid #bbb;
    padding-left: 5px;
}

#g_header_merchantinfo {
    cursor: pointer;
}

#g_header_merchantinfo_expanded {
    text-align: right;
}

.g_header_merchantinfo_firmtype {
    padding-left: 20px;
}

#g_header_user {
    margin-left: auto;
    
    cursor: pointer;
    display: flex;
    align-items: center;
    text-align: right;
    position: relative;
}

@media (max-width: 475px) {
    .g_header_hidemobile {
        display: none;
    }
}

#g_header_user_info {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

#g_header_user_info * {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

#g_header_user_menu_altroles {
    margin-top: 10px;
    margin-bottom: 10px;
    
}
#g_header_user_menu_altroles_roles {
    max-height: 200px;
    overflow-x: hidden;
    overflow-y: auto;
}
#g_header_user_menu_altroles_roles .g_header_user_menu_detailitem {
    display: flex;
}
.g_header_user_menu_detailitem svg {
    min-width: 16px;
    width: 16px;
    margin-right: 8px;
}
    #g_header_user_menu_altroles svg {
        margin-right: 5px;
    }
.g_header_user_menu_altroles_header {
    padding-left: 5px;
}

@media (min-width: 768px) {
    #g_header_user {
        padding-left: 10px;
    }
}
@media (min-width: 700px) {
    #g_header_merchant {
        padding-right: 10px;
        padding-top: 5px;
        padding-left: 20px;
        flex-grow: 1;
    }

    #g_header_merchant_icon {
        display: none;
    }
}

@media (max-width: 767px) {
    #g_header_user_info {
        display: none;
    }
}
@media (max-width: 699px) {
    #g_header_merchantsearch,
    #g_header_merchantinfo {
        display: none;
    }

    #g_header_merchant {
        margin-left: auto;
        border-left: 1px solid #bbb;
        flex-grow: 0;
        display: flex;
        align-items: center;
        padding: 0 5px;
    }

    #g_header_merchant:hover {
        cursor: pointer;
        color: #4286f4;
    }

    #g_header_spacer {
        flex-grow: 1;
    }
}



@media (max-width: 475px) {
    .g_header_hidemobile {
        display: none;
    }
}

/* Dropdown Modals */
.g_header_dropdown_overlay {
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: calc(100% - 50px);
    background-color: rgba(0,0,0,0.1);
}

.g_header_dropdown_close {
    width: 100%;
    text-align: right;
}
.g_header_dropdown a {
    color: #337ab7 !important;
}

.g_header_dropdown a:hover {
    color: #23527c !important;
    text-decoration: underline !important;
}

#g_header_merchant_menu {
    position: fixed;
    z-index: 1;
    top: 50px;
    width: 100%;
    min-height: 300px;
    padding: 10px;
}

/*#g_header_merchant_menu_services_items {
    padding-left:15px;
}*/



.g_header_merchant_menu_services_item_delconf a, .g_header_merchant_menu_services_item_addconf a {
    padding-left: 5px;
    padding-right: 5px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

.g_header_merchant_menu_services_item_delconf a:hover, .g_header_merchant_menu_services_item_addconf a:hover {
    background-color: #bbb;
    color: #fff;
    text-decoration: underline;
}

.g_header_merchant_menu_services_item_delconf svg, .g_header_merchant_menu_services_item_addconf svg {
    flex-shrink: 0;
}

@media(min-width: 450px) {
    .g_header_merchant_menu_services_item,
    #g_header_merchant_menu_services_new {
        padding: 0 10px 0 15px;
    }

    .g_header_merchant_menu_services_item_delconf,
    .g_header_merchant_menu_services_item_addconf {
        margin-left: -15px;
        margin-right: -10px;
        padding-left: 35px;
    }
}

.g_header_merchant_menu_services_item_row1 {
    display: flex;
    align-items: center;
}

.g_header_merchant_menu_services_item_row2,
.g_header_merchant_menu_services_item_dsp {
    padding-left: 15px;
    display: flex;
    align-items: center;
}

.g_header_merchant_menu_services_item_row2 > input[type=text],
.g_header_merchant_menu_services_item_row2 > textarea {
    flex-grow: 1;
}
.g_header_merchant_menu_services_item_row2 > svg {
    flex-shrink: 0;
}
.g_header_merchant_menu_services_item_row2 > span {
    flex-grow: 1;
}

.g_header_merchant_menu_services_item_row2 > input {
    margin-bottom: 5px;
}

.g_header_merchant_menu_services_item_del,
.g_header_merchant_menu_services_item_edit {
    height: 16px;
    width: 16px;
    margin-left: auto;
    margin-right: 8px;
    font-size: 16px;
    cursor: pointer;
    max-width: 16px;
    color: #bbb;
    display: none;
}

.g_header_merchant_menu_services_item_save,
.g_header_merchant_menu_services_item_cancel,
.g_header_merchant_menu_description_edit,
.g_header_merchant_menu_services_new_save,
.g_header_merchant_menu_services_new_cancel {
    height: 16px;
    width: 16px;
    margin-left: auto;
    margin-right: 8px;
    font-size: 16px;
    cursor: pointer;
    max-width: 16px;
    color: #666;
}

.g_header_merchant_menu_services_item_save img {
    padding-left: 5px;
    padding-right: 5px;
}

.g_header_merchant_menu_headerbutton {
    margin-left: auto;
}

.g_header_merchant_menu_headerbutton:hover {
    text-decoration: underline;
    cursor: pointer;
}

.g_header_merchant_menu_services_item:hover .g_header_merchant_menu_services_item_del,
.g_header_merchant_menu_services_item:hover .g_header_merchant_menu_services_item_edit {
    display: block;
}

.g_header_merchant_menu_services_item_row1 svg,
.g_header_merchant_menu_services_item_row2 svg,
#g_header_merchant_menu_services_new svg,
.g_header_merchant_menu_services_item_dsp svg {
    margin-right: 5px;
    margin-left: 5px;
}

.g_header_merchant_menu_services_item_dsp.red a {
    color: #D6576E !important;
}

.g_header_merchant_menu_services_item_name {
    flex-grow: 1;
    font-weight: bold;
    cursor: pointer;
    max-width: calc(100% - 135px); /* Temp to keep the env icons in line */
}


@media (min-width: 500px) {
    #g_header_apps_menu {
        position: fixed;
        z-index: 1;
        right: 0;
        top: 50px;
        width: 400px;
    }
}

.g_header_apps_item {
    padding-left: 10px;
    padding-right: 10px;
    line-height: 24px;
    display: flex;
}
.g_header_apps_item svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
    margin-right: 10px;
}

.g_header_merchant_menu_services_item_svgicon {
    width: 1em;
    height: 1em;
    vertical-align: -.125em;
}


#g_header_user_menu {
    position: fixed;
    z-index: 1;
    right: 0;
    top: 50px;
    width: 250px;
}

#g_header_user_menu_header {
    display: flex;
    height: 75px;

}

@media (max-width: 425px) {
    #g_header_user_menu {
        width: 100%;
    }
}

#g_header_user_menu_header > div:first-of-type {
    font-size: 40px;
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#g_header_user_menu_header > div:last-of-type {
    width: 70%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.g_header_user_menu_detailitem {
    padding: 3px 10px;
}


.g_header_user_menu_links .g_header_user_menu_detailitem:hover {
    cursor: pointer;
}

.g_header_horiz_separator {
    margin: 0 10px 5px 10px;
    height: 0;
    border-top: 1px solid #ddd;
}

.g_header_dropdown > .g_header_user_menu_detailitem:last-of-type {
    margin-bottom: 10px;
}




#g_header_merchant a:hover {
    text-decoration: underline;
}

.g_header_merchant_opened > #g_header_merchant input[type=text] {
    max-width: unset;
    width: 100%;
}

.g_header_merchant_opened > #g_header_merchant #g_header_merchantinfo {
    display: none;
}

@media (min-width:700px) {
    .g_header_merchant_opened > #g_header_merchant #g_header_merchantinfo_expanded {
        display: block !important;
    }
}

#g_header_merchant_menu_header {
    padding: 10px;
    /*font-size: 60px;*/
}
#g_header_merchant_menu_logo {
    font-size: 60px;
}




#g_header_mobile:hover .g_header_menubutton_line {
    background-color: #4286f4;
}

.g_header_icon {
    font-size: 24px;
    padding-left: 10px;
    padding-right: 10px;
}

#g_header_tasks, #g_header_messages, #g_header_apps {
    margin-left: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 5px;

}

@media (max-width: 499px) {
    #g_header_messages {
        display: none;
    }
}

.g_header_notificationbadge {
    background-color: #fa3e3e;
    border-radius: 10px;
    color: #fff;
    padding: 1px 3px;
    font-size: 10px;
    position: absolute;
    top: 27px;
    right: 4px;
}



#txtMID {
    flex: 1 1 auto;
    background-image: url(/images/search_whitebg_64x64.png);
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 25px;
    box-shadow: none;
    border-radius: 3px;
    width: 100%;
    max-width: 400px;
}

#g_header_signinlink {
    font-weight: bold;
    margin-left: auto;
}

.g_header_padding {
    width: 10px;
    max-width: 10px;
    min-width: 10px;
}







.g_header_contents {
    width: 100%;
}

/*@media (max-width: 767px) {
    .g_header_contents {
        width: 100%;
    }
}
*/

@media (min-width: 768px) {
    .g_header_contents {
        /*width: 750px;*/
        margin: auto;
    }



}

@media (min-width: 992px) {
    .g_header_contents {
        /*width: 970px;*/
        margin: auto;
    }

}

@media (min-width: 1200px) {
    .g_header_contents {
        /*width: 1170px;*/
        margin: auto;
    }

}

@media print {
    .g_header {
        display: none;
    }
}






/*.g_header_login {
    background-color: lightblue;
    text-align: right;
}*/

.g_header_image {
    cursor: pointer;
}


.g_header_menubutton {
    /*border: 1px solid #999;*/
    /*float: right;*/
    border-radius: 6px;
    padding-bottom: 9px;
    padding-top: 4px;
    margin-top: 7px;
    margin-right: 10px;
    margin-left: auto;
    width: 40px;
    cursor: pointer;
}


.g_header_menubutton_line {
    background-color: #999;
    border-radius: 2px;
    margin-top: 4px;
    margin-left: 4px;
    margin-right: 4px;
    height: 4px;
    width: calc(100% - 8px);
}



@media (max-width: 767px) {
    /**************** MOBILE SCREEN ********************/

    .g_header {
        /*height: 50px;*/
        /*position: fixed;*/
        left: 0;
        right: 0;
        top: 0;
        z-index: 9999;
    }

    .g_header_right {
        width: 100%;
    }

    .body-content {
        margin-top: 20px; /*Header is not fixed, so 0 + a 20px padding */
    }

    .g_header_contents {
        height: 50px;
        max-height: 50px;
        margin-bottom:10px;
        padding-left: 0px;
        padding-right: 0px;
    }

    .g_header_image {
        height: 26px;
        padding-bottom: 3px;
        padding-top: 0px;
        width: 167px;
        margin-top: 12px;
        /*padding-bottom: 3px;        
        padding-top: 2px;*/
        margin-right: 15px;
        float: left;
    }

    .g_header_login {
        display: none;
    }

    .g_header_menu {
        z-index: 10000;
        width: 100%;
        /*position: fixed;*/
        /*left: 0;*/
        /*top: 50px;*/
        /*box-shadow: 0 2px 4px 4px rgba(0,0,0,.1);*/
        display: none;
        margin-right: 10px;
    }

    .g_header_menu_ul {
        padding-left: 0px;
        width: 100%;
        list-style: none;
    }

        .g_header_menu_ul > li {
            padding-left: 10px;
            font-size: large;
            line-height: 2em;
            cursor: pointer;
        }

        .g_header_menu_ul li ul {
            width: 100%;
            list-style: none;
            padding-left: 0px;
        }

            .g_header_menu_ul li ul li {
                padding-left: 10px;
            }


        .g_header_menu_ul li:hover > ul {
            background-color: #fff;
        }

    .g_header_menu_dropdown_parentspan {
        /*display: none;*/
        /*padding-left: -10px;*/
        line-height: 2em !important;
        border-bottom: 1px solid #ccc;
    }

    .g_header_menu_itemType1 {
        display: none;
        line-height: 3em !important;
        border-bottom: 1px solid #ccc;
    }

    .g_header_menu_itemType1_first {
        border-top: 1px solid #ccc;
    }

    .g_header_menu_itemType1_last {
        margin-bottom: 30px;
    }

    .g_header_menu_itemType2 {
        font-size: initial !important;
        line-height: 2em !important;
        padding-left: 10px;
    }

    .g_header_menu_itemType2, .parent {
        list-style-type: square;
        line-height: 1.5em !important;
    }

    .child {
        font-size: initial !important;
        list-style-type: none;
        line-height: 1.3em !important;
        padding-left: 20px;
    }

    .g_header_menu_itemType2 a {
        color: #999 !important;
    }



    .menu_level_1 {
        display: none;
    }

    .menu_level_2a {
        display: none;
    }

    .menu_level_2b {
        display: none;
    }
    .menu_level_2c {
        display: none;
    }
}

@media (min-width: 768px) {
    /*************** FULL SIZE SCREEN ********************/
    .g_header {
        position: fixed;
        left: 0;
        right: 0;
        top: 0;
        height: 50px;
        z-index: 1030;
    }

    .body-content {
        margin-top: 55px;
        /*Plus the 45 from bootstrap = 100  (header=80 + padding=20) */
        /*Because the header is fixed, we have to pad past it*/
    }

    

    .g_header_image {
        height: 26px;
        width: 167px;
        margin-top: 25px;
        margin-bottom: 10px;
        margin-right: 15px;
        float: left;
    }

    .g_header_right {
        height: 50px;
        width: calc(100% - 210px);
        /*background-color: orange;*/
    }

    .g_header_menu {
        /*line-height: 4em;*/
        text-align: right;
    }

    .g_header_menu_ul {
        /*background-color: lightgreen;*/
        list-style: none;
        list-style-type: none;
        list-style-image: none;
        list-style-position: outside;
        overflow: hidden;
        /*float: right;*/
    }

        .g_header_menu_ul li {
            display: inline-block;
            font-size: large;
            padding-left: 15px;
            padding-right: 15px;
            /*float: left;*/
            /*position: relative;*/
        }



            .g_header_menu_ul li ul {
                display: none;
                line-height: 2em;
                padding-left: 0px;
                margin-left: 0px;
            }

                .g_header_menu_ul li ul li {
                    display: block;
                    padding-right: 10px;
                    text-align: left;
                }



    .g_header_menu_hide {
        /*background-color: indianred;*/
        display: none !important;
    }

    #g_header_mobile {
        display: none;
    }
    

    .g_header_menu_ul li:hover > ul {
        display: block;
        position: absolute;
        background-color: #fff;
        list-style: none;
        box-shadow: 0 2px 4px 4px rgba(0,0,0,.1);
        z-index: 1;
    }

        .g_header_menu_ul li:hover > ul li {
            display: block;
        }

    .g_header_menu_dropdown_parentspan ul li {
        padding-right: 20px;
    }

    .g_header_menu_dropdownul {
        margin-right: 20px;
        float: left;
    }
}
/****************** Continue **********************/

.g_header_left {
    float: left;
}



.g_header_right {
    float: right;
    /*margin-right: 10px;*/
    white-space: nowrap;
    text-wrap: none;
    overflow: hidden;
}


/*.g_header span {
    padding-left: 20px;
}*/




.g_header a:hover {
    color: #82B4B6;
    text-decoration: none;
}

.top_level {
    margin-right: 10px;
    margin-top: 10px;
    float: right;
}

.level_1_button {
    margin-top: 4px;
    margin-right: 20px;
}

#g_header_merchant_menu_description,
#g_header_merchant_menu_aliases {
    padding-left: 10px;
}

#g_header_merchant_menu_description_edit > input[type=text] {
    flex-grow: 1;
    margin-bottom: 5px;
    margin-right: 5px;
}

#g_header_merchant_menu_description_text span,
#g_header_merchant_menu_description_edit {
    flex-grow: 1;
}

#g_header_merchant_menu_services_new select {
    flex-grow: 1;
    margin-bottom: 5px;
    max-width: 400px;
}

#g_header_merchant_menu_services_new input[type=text] {
    flex-grow: 1;
    margin-bottom: 5px;
}


#g_header_merchant_menu_services_new > .cashflow_flex:last-of-type {
    margin-left: 22px;
}


/*#g_header_merchant_menu_services_new > #g_header_merchant_menu_services_new_save,
#g_header_merchant_menu_services_new > #g_header_merchant_menu_services_new_cancel {
    margin-left: auto;
}*/

#g_header_merchant_menu_header > button {
    margin-left: auto;
    margin-bottom: auto;
}

@media (max-width: 767px) {
    #g_header_merchant_menu_header > button {
        display: none;
    }
}
@media (min-width: 768px) {
    .g_header_merchant_compactonly {
        display: none;
    }
}

.g_header_merchant_menu_contact_item_svgicon {
    height: 16px;
    width: 16px;
    margin-left: 20px;
    margin-right: 10px;
}

#g_header_merchant_menu_contacts_items .cashflow_table_row_data_col1 {
    width: calc(50% - 46px);
}
#g_header_merchant_menu_contacts_items .cashflow_table_row_data_col2 {
    width: 25%;
}
#g_header_merchant_menu_contacts_items .cashflow_table_row_data_col3 {
    width: 25%;
}
#g_header_merchant_menu_contacts_new_fn, #g_header_merchant_menu_contacts_new_ln,
#g_header_merchant_menu_contacts_new_title, #g_header_merchant_menu_contacts_new_email {
    flex-grow: 1;
}
#g_header_merchant_menu_contacts_showmore {
    padding-left: 25px;
}
#g_header_merchant_menu_contacts_expand, #g_header_merchant_menu_services_expand {
    margin-left: 5px;
}
#g_header_merchant_menu_contacts h4:hover, #g_header_merchant_menu_services h4:hover {
    cursor: pointer;
    text-decoration: underline;
}

#g_header_signinlink {
    margin-left: 20px;
    margin-top: auto;
    margin-bottom: auto;
}
#g_header_widget, #g_header_api {
    /*margin: auto 20px;*/
    margin-left: 20px;
    margin-right: 20px;
}
#g_header_widget h4, #g_header_api h4 {
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
}

#g_header_merchant_menu_alias_new {
    display: flex;
    width: 100%;
    margin-bottom: 5px;
}

#g_header_merchant_menu_alias_new input {
    width: 100%;
    margin-right: 5px;
}


#g_header_merchant_menu_alias_list > div {
    float: left;
}

#g_header_merchant_menu_alias_list > div:not(:last-of-type) {
    margin-right: 10px;
}

#g_header_merchant_menu_alias_list > div:not(#g_header_merchant_menu_alias_list_add) > a {
    margin-left: 5px;
}

#g_header_merchant_menu_alias_list > div > span {
    cursor: pointer;
}

#g_header_merchant_menu_alias_list > div > a{
    display: none;
}

#g_header_merchant_menu_alias_list > div > span:hover {
    text-decoration: underline;
}

#g_header_merchant_menu_alias_list_add {
    margin-left: 10px;
}

#g_header_signinlink {
    display: flex;
    cursor: pointer;
}
#g_header_signinlink > h4 {
    margin-top: 3px;
    margin-right: 10px;
}