/************************************************/
/* New Grid / Flexbox layout stuff */

.w100{
    width: 100%;
}

.w90per{
    width: 90%;
}

.w95per{
    width: 95%;
}

.w80p{
    width: 80px;
}

.w100p{
     width: 100px;
 }

.w120p{
    width: 120px;
}

.mw80p{
    min-width: 80px;
}

.w150p{
    width: 150px;
}

.w200p{
    width: 200px;
}

.w220p{
    width: 220px;
}

.row{
    display: flex;
}

.main-content{
    flex: 1;
    background: #ffffff;
    padding: 32px 20px;
}

.main-row{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.row-cell{
    flex: 1;
}

.foot-row{
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
}

.foot-item {
    flex: 0 0 180px;
    text-align: left;
    margin: 0 16px 32px 16px;
}

.flex-column{
    flex-direction: column;
}

.vert-center{
    align-items: center;
}

.cell-1{
    flex: 1; /* 1 times the width of other cells in a row. */
}

.cell-3{
    flex: 3; /* 3 times the width of other cells in a row. */
}

/* for ordering modules in mobile view - works with javascript combining of columns*/
#container {
    display: flex;
    flex-wrap: wrap; /* to get a single column full width - Global Warning */
    flex: 1;
    padding: 32px 0 0 20px;
}
#container .column1,
#container .column2 {
    display: flex;
    margin: 0 20px 32px 0;
}

.single-column,
.second-column {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.second-column {
    width: 0;
}
.first {
    order: 1;
}
.second {
    order: 2;
}
.third {
    order: 3;
}
.fourth {
    order: 4;
}
.fifth {
    order: 5;
}
.sixth {
    order: 6;
}

#full-container{
    flex-direction: column;
    flex: 1;
    margin-right: 20px;
    margin-bottom: 32px;
}

/************************************************/
/* Media Queries */

@media (max-width: 1280px) { /* custom break point for hiding username when top menu is long */
    .UserLogin {
        display: none;
    }
}

@media (max-width: 1200px){ /* custom break point for tablet and below */

    .UserLogin{
        display: inline-block;
    }

    .provider-logo{
        width: 110px;
        min-width: 110px;
        float: left;
        margin-top: 0;
    }

    .provider-img-large {
        margin-top: 0px;
    }

    .provider-img{
        width: 100%; /* Makes the image responsive inside its container */
    }

    #provider-img { /* This kills any transparency and shadow on the left side of the provider logo */
        max-width: 114px;
        margin-left: -2px;
    }


    #program-logo-slim, .left-icon-container-slim{
        display: block;
    }

    .left-full{
        width: 110px;
        min-width: 110px;
        background: #065577;
        color: #ffffff;
        position: relative;
        padding-top: 32px; /* to get below the provider logo */
    }

    /*#progress-content, #gathering-content, #contacts-content,*/
    .left-headers, #left-toggle-slim, #left-toggle-full, #program-logo{
        display: none;
    }

    .resource-block {
        margin: 0 0 16px 0;
        min-width: 100%;
    }

    .navbutton {
        margin-right: 16px;
        font-size: 15px;
    }

    .pay-mobile-only{
        display: inline-block;
        text-align: right;
        width: 35%;
    }

    .desc-mobile-only{
        width: 55%;
    }

    .payment-sub-head{
        display: none;
    }

    .payment-row{
        flex-direction: column;
    }

    .pay-cell{
        flex: unset;
        margin-left: 0;
    }

    .pay-input {
        height: 30px;
        margin-top: 4px;
    }

    .money-cell {
        width: 80px;
        margin: 8px 32px 0 0px;
    }

    #ProgramSelect{
        width: 100px;
    }

    #amount-head{
        display: none;
    }
}

@media (max-width: 960px) { /* custom break point for hiding username when top menu is long */
    .UserLogin{
        display: none;
    }
}

@media screen and (min-width: 861px) { /* 2 column widths works with column combining and splitting Javascript */
    .single-column {
        width: 58%;
    }
    .second-column {
        width: 42%;
    }
}

@media (max-width: 860px){

    h1{
        font-size: 26px;
    }

    .main{
        padding-top: 0px;
        position: relative;
    }

    #full-container {
        margin-top: 64px;
    }

    .single-column {
        flex: 1;
        padding-right: 0;
        /*margin-top: 64px;*/
    }

    #container{
        margin-top: 64px;
    }

    .left-full {
        width: 90%;
        min-width: 320px;
        position: fixed;
        right: 0;
        box-shadow: 0px 0px 3px 3px rgba(0,0,0,0.4);
        z-index: 5;
        margin-top: 64px;
        display: none;
        overflow-y: scroll;
        overflow-x: hidden;
        height: 75%;
        padding-top: 48px;
    }

    .foot-item{
        text-align: center;
    }

    .provider-logo-mobile{
        display: block;
        margin: 0 auto;
    }

    .provider-logo {
        width: 100px;
        float: left;
        margin-left: 4px;
        margin-top: 0;
    }

    .provider-img-large {
        margin-top: 0px;
    }

    #provider-img {
        max-width: 100px;
        margin-left: 0;
    }

    #program-logo, #program-logo-slim, .left-icon-container-slim, .nav-menu, #left-toggle-slim, #left-toggle-full, #pa-prev-arrow, #pa-next-arrow, #pa-avatar, .header-right, #logo-text{
        display: none;
    }

    .left-headers, .foot-row, #mobile-menu, .menu-toggle, .mobile-top-title{
        display: block;
    }

    .dropdown-menu-profile {
        right: 8px;
    }

    .pa-content {
        margin: 0 16px;
    }

    .dropdown-menu-profile:before {
        right: 118px;
    }

    .dropdown-menu-program {
        left: 110px;
    }

    .fieldInput, .form-row {
        width: 100%;
    }

    .menu-select-input{
        width: 95%;
    }

    .status-title {
        display: block;
        margin-top: 8px;
    }

    .navbutton {
        margin-right: 0px;
        font-size: 18px;
        text-transform: none;
        color: #000000;
    }

    .popup{
        width: 75%;
    }

    .pop-content {
        overflow: auto;
    }
    
    #amount-head {
      display: inline-block;
    }

    .pay-btn{
        float: right;
        margin-bottom: 8px;
        clear: both;
    }

    .pay-input{
        width: 74px;
    }

    .h4-mobile{
        font-size: 14px;
        font-weight: 700;
        margin-top: 5px;
    }

    #ProgramSelect{
        width: auto;
    }

    #amount-head{
        display: inline-block;
    }
}

@media (max-width: 480px){
    .page-numbers{
        display: inline-block;
        margin-left: 8px;
        margin-top: 8px;
        float: left;
    }

    .notification-wrapper {
        margin-right: 0px;
    }

    .dropdown-menu-notify {
        right: -50px;
    }

    .dropdown-menu-notify:before {
        right: 73px;
    }

    .col50per{
        width: 100%;
    }
}