/** ****************************************
 *  General
 ** ****************************************/

[v-cloak] {
    display: none;
}

body, .md-body-1 {
    font-size: 16px;
    line-height: 1.5rem;
    padding: 0;
    margin: 0;
    display: flex;
}

body .md-card-content,
body .md-table-cell,
body .md-field .md-input {
    font-size: 16px;
}

h1 {
    display: flex;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 2rem;
}

h1 small {
    font-size: 1.2rem;
    font-weight: 400;
    margin-top: 5px;
    display: block;
}

h2 {
    margin-bottom: 5px;
}

h2, h3, h4, h5, h6 {
    font-weight: 100;
}

.button-link {
    color: #8e0028;
    background: transparent;
    outline: none;
    border: none;
}

.text-success {
    color: #4BB543;
}

.text-danger {
    color: #910027;
}

.text-warning {
    color: #ffae42;
}

.text-danger {
    color: #B33A3A;
}

.text-right {
    text-align: right;
}

.danger-indication {
    color: #B33A3A;
    font-weight: bold;
}

.text-center {
    text-align: center;
}

#app {
    width: 100%;
}

.inverse-container {
    padding: 16px;
    background: #e0e0e0;
    border-radius: 5px;
    margin-bottom: 20px;
}

.inverse-container h1:first-child,
.inverse-container h2:first-child,
.inverse-container h3:first-child {
    margin-top: 0;
    margin-bottom: 15px;
}

.label,
a.label {
    color: rgba(0, 0, 0, .87);
    font-size: .8rem;
    font-weight: bold;
    background: #e0e0e0;
    padding: 0 6px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    margin: 3px;
    display: inline-block;
}

.label.soft {
    font-weight: 400;
}

.label.blank {
    background: transparent;
}

.label.success {
    color: #fff;
    background: #4BB543;
}

.label.info {
    color: #fff;
    background: #3B7BCA;
}

.label.warning {
    color: #fff;
    background: #ffae42;
}

.label.danger {
    color: #fff;
    background: #B33A3A;
}

.bordered-box {
    padding: 8px;
    border: 2px solid #D0D0D0;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

.material-btn-link {
    border: 1px solid #D0D0D0;
    cursor: pointer;
    padding: 8px 12px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    -webkit-transition: all 200ms ease-in-out;
    -moz-transition: all 200ms ease-in-out;
    -ms-transition: all 200ms ease-in-out;
    -o-transition: all 200ms ease-in-out;
    transition: all 200ms ease-in-out;
}

.material-btn-link:hover {
    background: #fff;
    border-color: transparent;
    box-shadow: 0 10px 30px -9px rgba(0,0,0,0.45);
}

.material-btn-link:active {
    box-shadow: 0 8px 20px -9px rgba(0,0,0,0.25);
}

.loading-spinner {
    text-align: center;
    margin: 25px;
}

.loading-spinner-overlay {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .8);
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

.loading-spinner-overlay .spinner-wrapper {
    position: relative;
    top: calc(50% - 50px);
}

.alert {
    color: #fff;
    padding: 20px;
    margin: 15px 0;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    -webkit-box-shadow: 0 5px 15px 0 rgba(0, 0, 0, .15);
    -moz-box-shadow: 0 5px 15px 0 rgba(0, 0, 0, .15);
    box-shadow: 0 5px 15px 0 rgba(0, 0, 0, .15);
}

.alert.alert-success {
    background: #83c985;
}

.alert.alert-danger {
    background: #ed5f5f;
}

.alert.alert-warning {
    background: #fbbb1d;
}

.alert.alert-warning strong {
    color: #7d5a02;
}

.alert.alert-info {
    background: #3B7BCA;
}
/* #5890D7 */
.alert.alert-info strong {
    color: #1B3D66;
}

.alert a {
    color: #fff !important;
}

.alert blockquote {
    margin: 5px 0 8px 0;
    padding: 10px;
    background: rgba(0,0,0,.3);
    border-left: 3px solid rgba(0,0,0, .4);
    border-radius: 3px;
    opacity: .8;
}

.inline-empty-state {
    display: flex;
    flex-direction: row;
    font-size: 1.6rem;
    margin: 50px 0;
}

.inline-empty-state > .state-content {
    display: flex;
    flex-direction: column;
    margin-right: 28px;
    position: relative;
    top: 9px;
}

.inline-empty-state > .state-content .sub {
    font-size: 1.0rem;
    margin-top: 10px;
}

/** ****************************************
 *  Material UI card
 ** ****************************************/

.md-content {
    margin: 25px;
}

a.card-link:hover {
    text-decoration: none !important;
}

a.card-link .md-card {
    -webkit-transition: box-shadow 100ms ease-in-out;
    -moz-transition: box-shadow 100ms ease-in-out;
    -ms-transition: box-shadow 100ms ease-in-out;
    -o-transition: box-shadow 100ms ease-in-out;
    transition: box-shadow 100ms ease-in-out;
}

a.card-link:hover .md-card {
    box-shadow: 0 7px 20px 0 rgba(0, 0, 0, .25);
}

a.card-link:active .md-card {
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, .10);
}

.md-card {
    margin-bottom: 20px;
}

.md-card .md-title {
    font-weight: 100;
}

.md-card.md-theme-default {
    box-shadow: 0 5px 15px 0 rgba(0,0,0,.15);
    border-radius: 5px;
}

.md-tab {
    padding: 0;
}

.md-table .md-content {
    margin: 0;
}

.md-table-actions {
    height: 48px;
    width: 124px;
}

.md-button-content {
    padding: 0 10px;
}

/** ****************************************
 *  Material UI chip
 ** ****************************************/

.md-chip {
    margin-top: 3px;
    margin-bottom: 3px;
}

/** ****************************************
 *  Material UI table
 ** ****************************************/
.flat-table.md-table.md-theme-default,
.flat-table.md-table.md-theme-default .md-table-content {
    font-size: 1.2rem;
    background: transparent;
    overflow: auto;
}

.flat-table.md-table.md-theme-default table {
    overflow: auto;
}

.md-table.flat-table.md-theme-default,
.flat-table .md-table-content.md-scrollbar.md-theme-default {
    overflow: auto;
}

.flat-table .md-table-head-label {
    font-size: 1rem;
    font-weight: bold;
}

.flat-table .md-table-head-container {
    background: #e0e0e0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.flat-table th:first-child .md-table-head-container {
    border-radius: 5px 0 0 0;
}

.flat-table th:last-child .md-table-head-container {
    border-radius: 0 5px 0 0;
}

.flat-table .md-table-row {
    -webkit-transition: none;
    -moz-transition: none;
    -ms-transition: none;
    -o-transition: none;
    transition: none;
}

.flat-table .md-table-row .md-table-cell {
    transition: unset;
}

.flat-table .md-table-row:hover {
    background: #e5e5e5;
    /*box-shadow: 0 4px 15px 3px rgba(0,0,0,.15);*/
}

.flat-table .md-table-row:hover .md-table-cell:first-child {
    border-radius: 5px 0 0 5px;
}

.flat-table .md-table-row:hover .md-table-cell:last-child {
    border-radius: 0 5px 5px 0;
}

.flat-table.md-table.md-theme-default tr.md-table-row:hover td.md-table-cell {
    background-color: transparent;
}

.md-clear-list.md-list.md-theme-default {
    background: transparent;
}

.md-stepper .md-stepper-label {
    font-size: 1.2rem;
}

/** ****************************************
 *  Material UI menu
 ** ****************************************/

.md-menu-content {
    max-width: 330px;
}

/** ****************************************
 *  Dashboard layout
 ** ****************************************/
.dashboard-viewport {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    flex-direction: row;
}

.content-viewport {
    overflow: hidden;
    padding: 20px 50px 150px 50px;
    position: relative;
    flex: 1;
}

.inline-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.margin-v-sm {
    margin-top: 8px;
    margin-bottom: 8px;
}

.margin-v-md {
    margin-top: 16px;
    margin-bottom: 16px;
}

.margin-v-lg {
    margin-top: 24px;
    margin-bottom: 24px;
}

.margin-v-2lg {
    margin-top: 48px;
    margin-bottom: 48px;
}

.margin-v-xlg {
    margin-top: 36px;
    margin-bottom: 36px;
}

.inline-fields {
    display: flex;
}

.inline-fields > .md-field,
.inline-fields > span {
    margin-right: 15px;
}

.inline-fields > .md-field {
    flex: 1;
    width: 0;
}

.inline-fields > span {
    align-self: center;
}

.inline-fields > .md-field:last-child {
    margin-right: 0;
}

.flush-heading {
    margin-top: 0;
}

.content-block-v {
    margin-top: 16px;
    margin-bottom: 16px;
}

.content-block-v:first-child {
    margin-top: 0;
}

.fixed-right {
    position: fixed;
    right: 0;
}

.app-bar {
    margin-bottom: 50px;
    position: relative;
    display: flex;
    z-index: 1;
}

.app-bar .toolbar {
    flex: 1;
}

.app-bar .profile {
    display: flex;
    align-items: center;
}

.app-bar .profile .user-name {
    margin-right: 10px;
}

.app-bar .profile .icon {
    position: relative;
    top: 3px;
}

.sidebar {
    width: 300px;
    background: #1c1e20;
    padding: 20px 15px;
}

.sidebar .sidebar-header {
    margin-bottom: 25px;
}

.sidebar .md-list.md-theme-default {
    background: transparent;
}

.sidebar .md-list.md-theme-default a {
    color: #fff;
    background-color: transparent;
    border-radius: 3px;
}

.sidebar .md-list.md-theme-default a[disabled] {
    color: #aaa;
    cursor: default;
}

.md-list.md-theme-default a.md-list-item-container:not(.md-list-item-default):not([disabled]):hover {
    color: #fff;
    background-color: #303234;
    text-decoration: none;
}

.md-list.md-theme-default .md-list-item.active a.md-list-item-link {
    color: #fff;
    background-color: #910027;
    text-decoration: none;
}

.cfa-md-primary {
    background-color: #8e0028!important;
    border-radius: 18px;
    color: #fff!important;
    margin: 6px 8px;
    min-width: 130px;
}

.cfa-md-success {
    background-color: #4CAF50!important;
    border-radius: 18px;
    color: #fff!important;
    margin: 6px 8px;
    min-width: 130px;
}

.space-around {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.import-page-container {
    height: calc(100% - 145px);
}

.import-container {
    border: 4px dashed;
    border-color: #a6a6a6;
    border-radius: 16px;
    height: 90%;
    transition: border 175ms ease-in-out;
    width: 100%;
    margin-top: 2%;
}

.import-container:hover {
    border-color: hsla(0, 0%, 45%, 1);
}

#dropzone {
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    transition: visibility 250ms, opacity 250ms;
    visibility: hidden;
    width: 100%;
    height: 100%;
    z-index: 9999999999;
}

#dropzone .text {
    color: #fff;
    padding: 175px 280px;
    text-align: center;
}

#dropzone i {
    font-size: 140px;
}

.dropzone-notice {
    font-size: 48px;
    margin-top: 32px;
}

#file-input {
    display: none;
    opacity: 0;
    position: absolute;
}

.upload-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.upload-button-container {
    height: 100%;
    text-align: center;
    width: 100%;
}

.upload-pointer {
    color: hsla(0, 0%, 65%, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    outline: none;
    user-select: none;
}

.upload-pointer-dragging {
    color: hsla(0, 0%, 45%, 1);
}

.upload-pointer h2 {
    background-color: hsla(0, 0%, 88%, 1);
    border-radius: 3px;
    font-size: 28px;
    font-weight: normal;
    margin: 0 0 16px;
    padding: 36px 64px;
    transition: box-shadow 175ms;
}

.import-container:hover h2 {
    box-shadow: 0 6px 9px rgba(0, 0, 0, 0.15);
}

.circle-loader {
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-left-color: #5cb85c;
    animation: loader-spin 0.75s infinite linear;
    position: relative;
    display: inline-block;
    vertical-align: top;
    border-radius: 50%;
    width: 12em;
    height: 12em;
    margin-bottom: 32px;
}

.load-complete {
    -webkit-animation: none;
    animation: none;
    border-color: #5cb85c;
    transition: border 500ms ease-out;
}

.load-complete.error {
    border-color: #B33A3A;
}

.checkmark.draw:after {
    animation-duration: 800ms;
    animation-timing-function: ease;
    animation-name: checkmark;
    transform: scaleX(-1) rotate(135deg);
}

.checkmark:after {
    opacity: 1;
    height: 5.5em;
    width: 2.75em;
    transform-origin: left top;
    border-right: 3px solid #5cb85c;
    border-top: 3px solid #5cb85c;
    content: '';
    position: absolute;
    top: 50%;
    left: 50px;
}

.failed-ico.draw:after {
    animation-duration: 800ms;
    animation-timing-function: ease;
    animation-name: checkmark;
    transform: scaleX(-1) rotate(135deg);
}

.failed-ico {
    position: relative;
    top: 26%;
    left: calc(50% - 43px);
}

.failed-ico:before {
    opacity: 1;
    height: 7.5em;
    width: 3px;
    transform-origin: left top;
    background: #B33A3A;
    content: '';
    position: absolute;
    top: 3px;
    left: 0;
    transform: rotate(-45deg);
}

.failed-ico:after {
    opacity: 1;
    height: 7.5em;
    width: 3px;
    transform-origin: left top;
    background: #B33A3A;
    content: '';
    position: absolute;
    left: 45%;
    top: 1px;
    transform: rotate(45deg);
}

@keyframes loader-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }

    20% {
        height: 0;
        width: 2.75em;
        opacity: 1;
    }

    40% {
        height: 5.5em;
        width: 2.75em;
        opacity: 1;
    }

    100% {
        height: 5.5em;
        width: 2.75em;
        opacity: 1;
    }
}

.importing-notice {
    position: absolute;
    bottom: 30px;
}

.imported-notice {
    position: absolute;
    bottom: -34px;
}

.loading-container {
    position: relative;
    height: 330px;
    width: 360px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    flex-direction: column;
    position: relative;
    bottom: 12%;
}

.upload-animation-complete .upload-animation-notice {
    margin-bottom: 18px;
}

.upload-animation-notice {
    font-size: 24px;
}

.no-border {
    border-color: transparent;
    transition: unset;
}

.no-border:hover {
    border-color: transparent;
}

.cfa-snackbar-button {
    color: #e9a8ba!important;
}

.import-page-container .cfa-md-primary {
    min-width: 36px;
}

.import-page-container .cfa-md-primary .md-button-content {
    padding: 0;
}

.dialog-content {
    padding: 0 24px;
}

/** ****************************************
 *  Projects
 ** ****************************************/
.project-card {
    margin-bottom: 30px;
}

.project-rounds {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.project-rounds .round {
    position: relative;
    margin-bottom: 30px;
    padding-right: 100px;
    flex: 0 1 33.3333%;
    min-height: 148px;
}

.project-rounds .round .md-card .md-card-content {
    min-height: 40px;
}

.project-rounds .round:not(.active) .md-card {
    border: 1px solid #D0D0D0;
    background: transparent;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

.outreach-container {
    margin-top: 50px;
}

.drawer-footer {
    margin-top: 50px;
}

/*
.project-rounds .round:after {
    content: "\f061";
    font-family: "Font Awesome 5 Free";
    position: absolute;
    top: calc(50% - 20px);
    right: calc(-25% + 8px);
    font-size: 2rem;
}
*/

.project-rounds .round .next-icon {
    /*position: absolute;
    top: calc(50% - 20px);
    left: -64px;
    font-size: 2rem;
    color: #d0d0d0;*/
    position: absolute;
    top: calc(40% - 20px);
    right: 10%;
    font-size: 2rem;
    color: #c0c0c0;
}

.project-rounds .round.active .next-icon {
    color: #666;
}

.project-rounds .round:last-child {
    margin-right: 0;
}

@media(max-width: 1300px) {
    .project-rounds .round {
        flex: 0 1 50%;
    }
}

@media(max-width: 1199px) {
    .project-rounds .round {
        flex: 0 1 100%;
        padding-right: 0;
        margin-bottom: 50px;
    }

    .project-rounds .round .next-icon {
        top: 100%;
        right: calc(50% - 14px);
        transform: rotate(90deg);
    }
}

.overlay-panel {
    width: calc(97% - 300px);
    position: fixed;
    display: flex;
    flex-direction: column;
}

.overlay-panel .overlay-panel {
    width: calc(97% - 50px);
}

.project-label {
    font-size: .8rem;
    font-weight: bold;
    background: #e0e0e0;
    padding: 3px 6px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
}

/** ****************************************
 *  Campaign reports
 ** ****************************************/
.report-block {
    margin-bottom: 35px;
}

.campaign-report-group {
    border-radius: 5px;
    border: 2px solid #e1e1e1;
    display: flex;
}

.campaign-report-group .report-metric {
    padding: 20px;
    text-align: center;
    align-self: center;
    border-right: 2px solid #e1e1e1;
    flex: 1;
}

.campaign-report-group .report-metric:last-child {
    border-right: none;
}

.campaign-report-group .report-metric .metric-value {
    color: #8e0028;
    font-weight: 400;
    font-size: 1.5rem;
}

.campaign-report-group .report-metric .metric-label {
    margin-top: 15px;
    font-weight: 300;
}

@media(max-width: 767px) {
    .campaign-report-group {
        flex-direction: column;
    }

    .campaign-report-group .report-metric {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #e1e1e1;
    }
}

.report-status-indicator {
    width: 15px;
    height: 15px;
    margin: 3px;
    border-radius: 50%;
    display: inline-block;
}

.report-status-indicator.good {
    background: #4BB543;
}

.report-status-indicator.neutral {
    background: #3B7BCA;
}

.report-status-indicator.bad {
    background: #B33A3A;
}

.report-advice {
    display: flex;
    align-content: center;
}

.report-advice .report-status-indicator {
    margin-right: 10px;
}

.report-advice .advice-message {
    margin-bottom: 10px;
    flex: 1;
}

/** ****************************************
 *  Account
 ** ****************************************/
.update-avatar {
    margin-bottom: 50px;
    position: relative;
}

.avatar-label-container {
    background-color: #8b8b8b;
    border-radius: 8px;
    color: #f0f0f0;
    cursor: pointer;
    display: inline-block;
    margin: 24px 0;
}

.avatar-label-container i {
    font-size: 195px;
}

.update-avatar form {
    display: inline-block;
    text-align: center;
}

.avatar-heading {
    margin: 0;
}

.avatar-name {
    position: absolute;
    left: 185px;
    top: 8px;
}

.member-avatar {
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 8px;
    height: 200px;
    width: 195px;
}

.member-nav-avatar {
    border-radius: 50%;
    margin-right: 16px;
    height: 35px;
    width: 35px;
}

.revision-key {
    font-weight: bold;
    text-transform: capitalize;
}

.log-revision:not(:last-child) {
    border-bottom: 1px solid hsla(0, 0%, 70%, 1);
    margin-bottom: 24px;
    padding-bottom: 24px;
}

.revision-date, .revision-changes {
    margin: 16px 0;
}

.log-changes:not(:last-child) {
    margin-bottom: 8px;
}

.revision-created {
    margin-top: 16px;
}

.md-content.md-table {
    margin: 0;
}

/** ****************************************
 *  Dashboard project activity
 ** ****************************************/
.activity-item .activity-col {
    flex: 1;
    padding: 0 8px;
    text-align: center;
}

.activity-item .activity-col:first-child {
    flex: 3;
    text-align: left;
    padding: 0;
}

/** ****************************************
 *  Dashboard invalid contacts
 ** ****************************************/
.invalid-contact {
    width: 100%;
    display: flex;
    justify-items: center;
}

.invalid-contact .invalid-contact-col {
    flex: 1;
}

.invalid-contact .invalid-contact-col:first-child {
    text-align: left;
}

.invalid-contact .invalid-contact-col:last-child {
    text-align: right;
}

/** ****************************************
 *  Notes
 ** ****************************************/
.note-preview {
    display: flex;
    margin-bottom: 20px;
}

.note-preview:last-child {
    margin-bottom: 0;
}

.note-preview .note-photo {
    flex: 0 0 75px;
    text-align: center;
    font-size: 1.8rem;
    margin-top: 5px;
}

.note-preview .note-content {
    flex: 1;
}

.note-preview .note-content .preview {
    overflow: hidden;
    -ms-text-overflow: ellipsis;
    text-overflow: ellipsis;
    white-space: normal;
    margin-bottom: 8px;
}

.note-preview .note-labels {
    display: flex;
    flex-wrap: wrap;
}

.note-preview .note-labels .label {
    margin: 0 3px;
}

.notes-full {
    white-space: pre-wrap;
}

/** ****************************************
 *  Expanding panel
 ** ****************************************/
.expanding-panel .toggle {
    margin: 3px 0;
    text-align: center;
    position: relative;
}

.expanding-panel .toggle::after {
    width: 100%;
    height: 1px;
    background: #e1e1e1;
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 0;
}

.expanding-panel .toggle > button {
    font-weight: bold;
    font-size: .8rem;
    border-radius: 3px;
    border: 1px solid #e1e1e1;
    outline: transparent;
    padding: 2px 8px;
    background: #fff;
    position: relative;
    z-index: 1;
    cursor: pointer;
    -webkit-transition: all 100ms ease-in-out;
    -moz-transition: all 100ms ease-in-out;
    -ms-transition: all 100ms ease-in-out;
    -o-transition: all 100ms ease-in-out;
    transition: all 100ms ease-in-out;
}

.expanding-panel .toggle > button:hover {
    background: #f1f1f1;
}

.expanding-panel .panel-content {
    display: none;
}

.expanding-panel.open .panel-content {
    display: block;
    margin: 5px 0;
}

/** ****************************************
 *  Drawer
 ** ****************************************/
.md-drawer.overlay-panel {
    height: 100vh;
}
.v-check {
    color: green;
    text-align: center;
}

.v-x{
    color: #8E0028;
    text-align: center;
}

.table-center {
    text-align: center;
}