body {
    background: #f7f7f7; /* using a css variable here doesn't work */
    color: var(--color-gray-text);
    font-family: 'Heebo', sans-serif;
    font-size: 14px;
    line-height: 1.375;

    /* Smoothing */
    text-rendering: optimizeLegibility;
    -moz-osx-font-smoothing: grayscale;
    font-smoothing: antialiased;
    -webkit-font-smoothing: antialiased;
}


/* LAYOUT */
/* MAIN SECTION */
.main-wrapper .panel {
    height: 540px;
    position: relative;
    scrollbar-width: thin;
    overflow-y: auto;
    z-index: 1;
}

.main-wrapper .panel::-webkit-scrollbar {
    width: 5px
}

.main-wrapper .panel::-webkit-scrollbar-thumb {
    background-color: var(--color-gray-medium)
}

.main-wrapper {
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}
.main-wrapper .column-single {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 340px;
            flex: 1 1 340px;
    margin-right: 5%;
}
.main-wrapper .column-double {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 calc(95% - 340px);
            flex: 1 1 calc(95% - 340px);
}
.page-content {
    max-width: 960px;
    padding-bottom: 50px;
}

@media screen and (max-width: 1024px) {
    /* Make room for fixed navigation bar on mobile */
    .site {padding-bottom: 90px;}

    .left-panel {
        display: none;
    }
}

@media screen and (min-width: 1025px) {
    .sidebar {
        background: var(--color-white);
        height: 100%;
        left: 0;
        overflow-y: auto;
        position: fixed;
        scrollbar-width: none;
        top: 0;
        width: 280px;
    }
    .sidebar::-webkit-scrollbar {
        width: 0;
    }
    .main {
        margin-left: 280px;
        padding-top: 120px;
    }

    .panel-title + .panel {
        margin-bottom: 60px;
    }
}


/* EDIT PROFILE */
.sidebar-header .profile-actions {
    background: var(--color-white);
    -webkit-box-shadow: 0 2px 8px 0 rgba(0,0,0,0.05);
            box-shadow: 0 2px 8px 0 rgba(0,0,0,0.05);
    height: 100%;
    position: fixed;
    right: 0;
    -webkit-transform: rotateY(90deg);
            transform: rotateY(90deg);
    -webkit-transform-origin: right;
        -ms-transform-origin: right;
            transform-origin: right;
    -webkit-transition: -webkit-transform .3s;
    transition: -webkit-transform .3s;
    -o-transition: transform .3s;
    transition: transform .3s;
    transition: transform .3s, -webkit-transform .3s;
}
.sidebar-header .profile-actions.open {
    -webkit-transform: rotateY(0);
            transform: rotateY(0);
    width: 260px;
    z-index: 500;
}
.sidebar-header .profile-actions .container {
    width: 80%;
}
.close-profile {
    position: absolute;
    right: 0;
    top: 50px;
}
.close-profile svg {
    width: 18px;
}
.sidebar-header .profile-info .image-round {
    margin-bottom: 1em;
}
.sidebar-header .profile-info h4 {
    margin-bottom: 1em;
}
.sidebar-header .profile-info p {
    margin-bottom: 1.5em;
}
.sidebar-header .profile-info hr {
    margin-bottom: 2em;
}

/* COMPONENTS */
/* Alerts */
.alert-global {
    left: 0;
    padding: 20px 0;
    position: absolute;
    right: 0;
    -webkit-transform: rotateX(90deg) scale(.8);
            transform: rotateX(90deg) scale(.8);
    -webkit-transform-origin: top;
        -ms-transform-origin: top;
            transform-origin: top;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}
.alert-global.open {
    position: relative;
    -webkit-transform: rotateX(0) scale(1);
            transform: rotateX(0) scale(1);
}
.alert-global .container {
    width: 80%;
}
.alert-global .close {
    position: absolute;
    right: 0;
    top: 0;
}
.alert-global h1::before {
    background: var(--color-green-highlight) url(../images/ico-alert-green-active.png) center no-repeat;
    background-size: 13px;
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 35px;
    margin-right: 20px;
    -webkit-transform: rotate(-24deg);
        -ms-transform: rotate(-24deg);
            transform: rotate(-24deg);
    vertical-align: middle;
    width: 35px;
}

@media screen and (min-width: 1025px) {
    .main .alert-global {
        margin-bottom: 60px;
    }
    .main .alert-global h1::before {
        background-size: 22px;
        height: 60px;
        width: 60px;
    }
    .main .alert-global .container {
        width: 90%;
    }
}
@media screen and (min-width: 1200px) {
    .main .alert-global .container {
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
    }
    .main .alert-global .close {
        top: 1.25em;
    }
    .main .alert-global h1 {
        -webkit-box-flex: 1;
            -ms-flex: 1 0 30%;
                flex: 1 0 30%;
    }
    .main .alert-global .alert-content {
        -webkit-box-flex: 0;
            -ms-flex: 0 1 60%;
                flex: 0 1 60%;
        margin-right: 5%;
    }
}
/* Alerts layout */
.mobile-alert {
    margin: -90px auto 20px;
}

/* Alert icons */
.ico-alert {
    background-position: center;
    background-repeat: no-repeat;
    display: inline-block;
    height: 24px;
    width: 24px;
}
.sidebar-header .ico-alert {
    background-image: url(../images/ico-alert-white.png);
    background-size: 18px;
}
.sidebar-header .ico-alert.new-alert {
    background-image: url(../images/ico-alert-white-active.png);
}

.main-header .ico-alert {
    background-image: url(../images/ico-alert-green.png);
    background-size: 15px;
}
.main-header .ico-alert.new-alert {
    background-image: url(../images/ico-alert-green-active.png);
}

/* Other icons */
.mark-ok {
    background: var(--color-white);
    border: 1px solid var(--color-gray-medium);
    border-radius: 50%;
    display: inline-block;
    height: 20px;
    position: relative;
    -webkit-transition: background .3s;
    -o-transition: background .3s;
    transition: background .3s;
    width: 20px;
}
.mark-ok svg {
    fill: var(--color-gray-medium);
    left: 50%;
    position: absolute;
    top: 50%;
    -webkit-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
    width: 10px;
}
.mark-ok:hover,
.mark-ok.marked {
    background: var(--color-green-light);
    border-color: var(--color-green-light);
}
.mark-ok:hover svg,
.mark-ok.marked svg {
    fill: var(--color-white);
}
/* email icons */
.envelope svg {
    border: 1px solid var(--color-gray-medium);
    border-radius: 2px;
    fill: var(--color-gray-medium);
    width: 18px;
}
.envelope:hover svg,
.mobile-client-actions .envelope svg {
    border-color: var(--color-green-light);
    background: var(--color-green-light);
    fill: var(--color-white);
}

/* Close links */
.close svg {
    fill: var(--color-gray-medium);
}
.close:hover svg {
    fill: var(--color-gray-text);
}
.mobile .close-alert svg {
    width: 14px;
}
.desktop .close-alert svg {
    width: 16px;
}
.close-mobile-actions {
    background: var(--color-gray-light);
    border-radius: 5px;
    display: block;
    height: 5px;
    margin: auto auto 24px;
    width: 100px;
}

/* Progress bars */
.progress,
.progress span {
    border-radius: 5px;
    display: inline-block;
    height: 6px;
}
.progress {
    background: rgba(66,204,217, .3);
    position: relative;
    vertical-align: middle;
    width: 72px;
}
.progress span {
    background: var(--color-blue);
    display: inline-block;
    left: 0;
    position: absolute;
    top: 0;
}
.progress.p-100 {
    background: rgba(0,201,128, .3);
}
.progress.p-100 span {
    background: var(--color-green-light);
}
@media screen and (min-width: 1025px) {
    .progress {width: 120px;}
    .progress,
    .progress span {height: 10px;}
}

/* Up and down growth indicators */
.client-summary #cgNum::before,
.transaction span::before {
    background-position: left center;
    background-repeat: no-repeat;
    background-size: 7px;
    content: "";
    display: inline-block;
    height: .8em;
    width: 1em;
}
.client-summary #cgNum.up::before,
.transaction span.credit::before {
    background-image: url(../images/ico-up.svg);
}
.client-summary #cgNum.down::before,
.transaction span.debit::before {
    background-image: url(../images/ico-down.svg);
}

/* Mobile client actions bar */
.mobile-client-actions {
    background: var(--color-white);
    border-radius: 16px 16px 2px 2px;
    -webkit-box-shadow: 0 2px 8px 0 rgba(0,0,0,0.05);
            box-shadow: 0 2px 8px 0 rgba(0,0,0,0.05);
    bottom: 0;
    padding: 0 0 1em;
    position: fixed;
    -webkit-transform: rotateX(90deg);
            transform: rotateX(90deg);
    -webkit-transform-origin: bottom;
        -ms-transform-origin: bottom;
            transform-origin: bottom;
    -webkit-transition: -webkit-transform .3s;
    transition: -webkit-transform .3s;
    -o-transition: transform .3s;
    transition: transform .3s;
    transition: transform .3s, -webkit-transform .3s;
    width: 100%;
}
.mobile-client-actions.open {
    -webkit-transform: rotateX(0);
            transform: rotateX(0);
}
.mobile-client-actions .container {
    padding: 1em 0;
    width: 80%;
}
.mobile-client-actions svg {
    margin-right: 16px;
    vertical-align: middle;
}

/* OPTION SELECT LIST (hide client, select chart view) */
.option-select {
    list-style: none;
    margin: 0 auto;
    padding: 0;
}
.option-select a {
    display: block;
}
.select-multi .hide-select,
.range-select {
    position: relative;
}
.range-select {
    border: 1px solid var(--color-gray-medium);
    border-radius: 2px;
    font-size: 12px;
    height: 26px;
    line-height: 26px;
    text-align: center;
    width: 122px;
}
.select-multi .option-select,
.range-select .option-select {
    background: #FFFFFF;
    border-radius: 3px;
    -webkit-box-shadow: 0 2px 8px 0 rgba(0,0,0,0.15);
            box-shadow: 0 2px 8px 0 rgba(0,0,0,0.15);
    padding: 6px 0;
    position: absolute;
    -webkit-transform: rotateX(90deg);
            transform: rotateX(90deg);
    -webkit-transform-origin: top;
        -ms-transform-origin: top;
            transform-origin: top;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
    white-space: nowrap;
    z-index: 10;
}
.select-multi .option-select {
    top: 80%;
}
.range-select .option-select {
    top: 30px;
    width: 100%;
}
.select-multi .option-select li a,
.range-select .option-select li a {
    display: block;
    padding: 3px 12px;
}
.option-select.open {
    -webkit-transform: rotateX(0);
            transform: rotateX(0);
}
.select-multi .option-select a {
    padding: 4px 0;
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
}
.select-multi .option-select a:hover {
    color: var(--color-green-dark);
}
.range-select .option-select a:hover {
    background: var(--color-gray-light);
}
/* pad anchors in mobile actions */
.mobile-client-actions .option-select a {
    padding: 1em 0;
}

/* Options list opener */
.show-select {
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
    white-space: nowrap;
}
.select-multi .show-select:hover {
    color: var(--color-green-dark);
}
.show-select svg {
    fill: var(--color-gray-text);
    margin-left: 5px;
    -webkit-transform: rotate(90deg);
        -ms-transform: rotate(90deg);
            transform: rotate(90deg);
    -webkit-transition: .3s;
    -o-transition: .3s;
    transition: .3s;
    width: 6px;
}
.select-multi .show-select:hover svg {
    fill: var(--color-green-dark);
}

/* CHART CONTROLS AND LEGENDS */
.chart-view-options {
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}
.chart-controls a {
    background: var(--color-gray-light);
    border-radius: 2px;
    display: inline-block;
    font-size: 16px;
    line-height: 26px;
    height: 26px;
    text-align: center;
    width: 26px;
}
@media screen and (min-width: 1025px) {
    .column-double .chart-controls,
    .column-full .chart-controls {display: none;}
}
.chart-keys {
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    padding: 2em 0;
}
.key {
    font-size: 11px;
    margin-bottom: 2em;
    width: auto;
}
.key tr {border-bottom: none;}
.key td {padding-left: 0;}
.key caption {
    text-align: left;
    padding-bottom: 16px;
}
.key .num {
    text-align: center;
}
.key .num span {
    background: var(--color-gray-medium);
    border-radius: 50%;
    margin: auto;
    display: block;
}
.key .num-lt-5 span {
    height: 10px;
    width: 10px;
}
.key .num-5-10 span {
    height: 20px;
    width: 20px;
}
.key .num-gt-10 span {
    height: 30px;
    width: 30px;
}

.goal-progress td {
    padding-bottom: 0;
    padding-top: 0;
}
.key .prog span {
    display: block;
    height: 20px;
    width: 20px;
}
.key .prog-gt-81 span {
    background: var(--color-green-light);
}
.key .prog-61-80 span {
    background: var(--color-blue);
}
.key .prog-41-60 span {
    background: var(--color-yellow);
}
.key .prog-21-40 span {
    background: var(--color-orange);
}
.key .prog-0-20 span {
    background: var(--color-red);
}
@media screen and (min-width: 1025px) {
    .column-double .key .prog span,
    .column-full .key .prog span {
        height: 25px;
        width: 25px;
    }
    .column-double .chart-keys,
    .column-full .chart-keys {
        display: block;
    }

}
/* SIDEBAR ELEMENTS */
/* Client Summary */
.client-summary {
    margin-bottom: 30px;
    text-align: center;
}
.client-summary .container {
    padding: 20px 0;
}
.client-summary .clients-total,
.client-summary .cgrowth-stats {
    margin-bottom: 12px;
}
.client-summary .clients-total::before {
    background: url(../images/ico-user.png) left center no-repeat;
    background-size: 12px;
    content: "";
    display: inline-block;
    height: 22px;
    vertical-align: middle;
    width: 26px;
}
.client-summary .clients-number,
.client-summary .clients-growth {
    display: inline-block;
}
.client-summary .clients-number {
    font-size: 40px;
    font-weight: 700;
    margin-right: 16px;
}
.client-summary .clients-growth {
    font-size: 12px;
    text-align: left;
}

@media screen and (min-width: 1025px) {
    .client-summary {
        border-bottom: 1px solid var(--color-gray-light);
        padding: 10px 0;
    }
    .client-summary .panel {
        -webkit-box-shadow: none;
                box-shadow: none;
    }
    .client-summary .button {
        width: 180px;
    }
    .client-summary .button.secondary {
        margin-bottom: 10px;
    }
    .client-summary .clients-number,
    .client-summary .clients-growth {
        display: block;
    }
    .client-summary .clients-number {
        font-size: 50px;
    }
    .client-summary .clients-growth {
        margin-bottom: 16px;
        text-align: center;
    }
}

/* Client birthday list */
.client-birthdays {
    margin: 0 auto 30px;
}
.client-birthday-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
}
.client-birthday {
    display: block;
    background: var(--color-white);
}
.client-birthday .container {

}
.client-birthday h4,
.client-birthday h5,
.client-birthday a {
    font-size: 12px;
}
.client-birthday h4,
.client-birthday h5 {
    margin-bottom: 4px;
}
.client-birthday .image-round {
    margin: 0 auto 8px;
}
/* Client birthdays on mobile */
@media screen and (max-width: 1024px) {
    .client-birthday-list {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        overflow-x: auto;
        -ms-scroll-snap-type: x mandatory;
            scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    .client-birthday {
        -ms-flex-negative: 0;
            flex-shrink: 0;
        height: 150px;
        margin: 0 5px;
        scroll-snap-align: start;
        text-align: center;
        width: 150px;
    }
    .client-birthday .container {
        height: 140px;
        padding: 14px 0;
        width: 130px;
    }
    .client-birthday .send-email {
        bottom: 0;
        left: 0;
        position: absolute;
        right: 0;
    }
}
@media screen and (min-width: 1025px) {
    .client-birthday {
        padding: 10px 0;
    }
    .client-birthday .container {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    .client-birthday .image-round {
        -webkit-box-flex: 0;
            -ms-flex: 0 1 35px;
                flex: 0 1 35px;
        margin: 0;
    }
    .client-birthday .bday-info {
        -webkit-box-flex: 1;
            -ms-flex: 1 1 calc(100% - 75px);
                flex: 1 1 calc(100% - 75px);
        padding: 0 16px;
    }
    .client-birthday .send-email {
        -webkit-box-flex: 0;
            -ms-flex: 0 1 40px;
                flex: 0 1 40px;
        margin: 0;
        text-align: center;
    }
}

/* PLAID STATUS */
.plaid-status-table td {
    padding-bottom: 16px;
    padding-top: 16px;
}
.logo-plaid {
    text-align: center;
    width: 80px;
}
.logo-plaid img {
    border-radius: 5px;
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
            box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
    width: 40px;
}
.indicator {
    width: 40px;
}
.indicator span {
    border-radius: 50%;
    display: block;
    height: 10px;
    width: 10px;
}
.indicator .green {
    background: var(--color-green-light);
}
.indicator .yellow {
    background: var(--color-yellow);
}
.indicator .orange {
    background: var(--color-orange);
}
.indicator .red {
    background: var(--color-red);
}


/* MEDIA */
.image-round {
    border-radius: 50%;
}
.image-round-xsmall {
    height: 26px;
    width: 26px;
}
.image-round-small {
    height: 35px;
    width: 35px;
}
.image-round-med {
    height: 40px;
    width: 40px;
}
.image-round-large {
    height: 65px;
    width: 65px;
}

/* Embedded media */
img,
svg,
embed,
iframe,
object {
    height: auto;
    max-width: 100%;
}
/* Responsive Embeds */
.embed-wrapper {
    float: left;
    height: 0;
    margin-bottom: 1em;
    padding-top: 56.25%;
    position: relative;
    width: 100%;
}
.embed-wrapper iframe,
.embed-wrapper object,
.embed-wrapper embed {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}


/* ALIGNMENTS */
.aligncenter {
    clear: both;
    margin: 0 auto 1.5em;
}

/* don't float anything on phone, tablet */
.alignleft, *[align="left"],
.alignright, *[align="right"] {
    display: block;
    float: none;
    margin: 0 auto 1em;
}

/* float > 768 */
@media screen and (min-width: 768px) {
    .alignleft,
    *[align="left"] {
        float: left;
        margin: .3em 2em 1em 0;
    }

    .alignright,
    *[align="right"] {
        float: right;
        margin: .3em 0 1em 2em;
    }
}


/* Helper classes */
.clear {clear: both;}
.desktop {display: none;}
@media screen and (min-width: 1025px) {
    .mobile {display: none;}
    .desktop {display: block;}
}
.container {
    margin-left: auto;
    margin-right: auto;
    position: relative;
}
.container::after {
    clear: both;
    content: '';
    display: table;
}
.flex-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}
.w90 {
    width: 90%;
}
.panel {
    background: var(--color-white);
    border-radius: 3px;
    -webkit-box-shadow: 0 2px 20px 0 rgba(0,0,0,0.05);
            box-shadow: 0 2px 20px 0 rgba(0,0,0,0.05);
}
.padded-1em {
    padding: 1em;
}
.padded-2em {
    padding: 2em;
}
.screen-reader-text {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
.location {
    line-height: 14px;
}
.location::before {
    background: url(../images/ico-map-pin.png) left bottom no-repeat;
    background-size: 10px;
    content: "";
    display: inline-block;
    height: 14px;
    vertical-align: bottom;
    width: 20px;
}
.clearfix::before,
.clearfix::after {
    content: " "; display: table;
}
.clearfix::after {
    clear: both;
}
.textcenter {
    text-align: center;
}
.textleft {
    text-align: left;
}
textright {
    text-align: right;
}
