/* Variables */
.primary-color {
    color: var(--primary);
}

.success-color {
    color: var(--success-medium);
}

.alert-color {
    color: var(--alert) !important;
}

.blue {
    color: var(--primary);
}

.primary-dark {
    color: var(--primary-dark);
}

.primary-med-dark {
    color: var(--primary-med-dark);
}

.primary-soft {
    color: var(--primary-soft-medium);
}

.gray {
    color: var(--gray-medium-400);
}

.light-gray {
    color: var(--gray-light-300);
}

.dark-gray {
    color: var(--gray-medium-500);
}

.gray-600 {
    color: var(--gray-medium-600);
}

.green {
    color: var(--green-light);
}

.orange {
    color: var(--orange-dark);
}

.red {
    color: var(--red-medium) !important;
}

.yellow {
    color: var(--yellow-light) !important;
}

.white {
    color: var(--white);
}

/* Bootstrap Overrides */
html {
    overflow-y: scroll;
    min-height: 100%;
    position: relative;
}

body {
    background: linear-gradient(180deg, rgba(233, 236, 238, 0) 0%, rgba(233, 236, 238, 0) 0.01%, #E9ECEE 47.4%, #CFD3D7 100%);
    background-attachment: fixed;
}

.no-marginLR {
    margin-left: 0;
    margin-right: 0;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--primary) !important;
}

@media (max-width: 364px) {
    #fundraiser-dashboard .col-xs-6 {
        width: 100% !important;
    }
}

@media (max-width: 992px) {
    .nav-container .navbar-primary {
        height: auto;
    }

    #body-container {
        margin-left: 0;
        padding-top: 40px;
        padding-bottom: 40px;
        padding-left: 60px;
        padding-right: 30px;
    }

    #body-container .dash-container {
        padding-right: 0;
    }

    #fundraiser-dash {
        padding-right: 0;
    }
}

@media (min-width: 768px) {

    .seven-cols .col-sm-1,
    .seven-cols .col-lg-1 {
        width: 100%;
        *width: 100%;
    }

    .form-inline {
        margin-right: 0px !important;
    }

    .f-d-element {
        height: 200px !important;
    }

    .fundraiser-dashboard label {
        width: 100% !important;
    }
}

@media (max-width: 450px) {
    #fundraiser-dash .report-container tr td {
        padding-left: 10px;
        padding-right: 10px;
    }

    #fundraiser-dash .report-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    #footer {
        padding-left: 60px !important;
        padding-right: 35px !important;
    }
}


@media (max-width: 1050px) {
    .heatmap #donor-card .well {
        padding-bottom: 40px;
    }

    #donor-card .well .request_fd_preview {
        position: relative;
        margin-top: 25px;
    }
}

@media (min-width: 992px) {

    .seven-cols .col-md-1,
    .seven-cols .col-sm-1,
    .seven-cols .col-lg-1 {
        width: 14.285714285714285714285714285714%;
        *width: 14.285714285714285714285714285714%;
    }

    .form-inline {
        margin-right: 20px !important;
    }

    .donor_detail_top_photo {
        margin-left: 0px !important;
        margin-bottom: 0px !important;
    }

    #ask_amount_div {
        padding-left: 0px;
    }

    .f-d-element {
        height: 190px !important;
    }

    .nav-container .navbar-header {
        display: none;
    }
}

@media (min-width: 1200px) {
    #ask_amount_div {
        padding-left: 15px;
    }

    .f-d-element {
        /*fundraiser-dashboard*/
        height: 220px !important;
    }
}

.alert {
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.alert-warning {
    background-image: none !important;
}

.btn-default,
.btn-primary,
.btn-success,
.btn-info,
.btn-warning,
.btn-danger {
    background-repeat: no-repeat !important;
    background-image: none !important;
    border: 1px solid var(--gray-light-300) !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    text-shadow: none !important;
}

.btn-success {
    background-color: var(--success) !important;
}

button:focus {
    outline: 0 !important;
    outline: none !important;
    border: 1px solid var(--gray-light-300);
}

.form-control {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    border: 1px solid var(--gray-light-300) !important;
}

.list-group {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.modal-content {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.navbar-brand {
    color: #999 !important;
    font-weight: 400;
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-shadow: none !important;
    text-transform: uppercase;
}

.navbar-default {
    background-image: none !important;
    border-radius: 0px !important;
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
    border: 1px solid var(--gray-light-200) !important;
}

.panel {
    box-shadow: none !important;
    -webkit-box-shadow: none !important;
}

.panel-heading {
    background-image: none !important;
}

.table>thead>tr>th {
    border-bottom: none;
}

.well {
    background-image: none !important;
}

.navbar-nav .dropdown-menu {
    position: absolute;
}

@media (min-width: 992px) {
    .form-inline .twitter-typeahead {
        width: auto !important;
    }
}

/* Heatmap */
.heatmap {
    min-height: 530px !important;
}

.heatmap-q1 {
    background-color: var(--red-light);
}

.heatmap-q2 {
    background-color: var(--orange-light);
}

.detail-node.heatmap-q2 {
    background-color: var(--orange-medium);
}

.heatmap-q3 {
    background-color: var(--yellow-medium);
}

.heatmap-q4 {
    background-color: var(--green-light);
}

.heatmap-q1.selected,
.heatmap-table-row.selected .heatmap-q1 {
    border: 4px solid var(--red-dark);
    opacity: 1;
}

.heatmap-q2.selected,
.heatmap-table-row.selected .heatmap-q2 {
    border: 4px solid var(--orange-dark);
    opacity: 1;
}

.heatmap-q3.selected,
.heatmap-table-row.selected .heatmap-q3 {
    border: 4px solid var(--yellow-dark);
    opacity: 1;
}

.heatmap-q4.selected,
.heatmap-table-row.selected .heatmap-q4 {
    border: 4px solid var(--green-medium);
    opacity: 1;
}

.followup-future.selected {
    border: 4px solid var(--gray-medium-500);
    opacity: 1;
}

.detail-node {
    height: 20px;
    margin-right: 10px;
    width: 20px;
    display: inline-block;
}

button.heatmap-node {
    border: none;
    padding: 0;
    margin: 2px;
}

button.favorite {
    border: none;
    padding: 0;
    margin: 2px;
    background: transparent;
}

.heatmap-node {
    border-radius: 50px !important;
    -moz-border-radius: 50px;
    -webkit-border-radius: 50px;
    color: var(--white);
    cursor: pointer;
    font-size: 16px;
    height: 40px;
    margin: 2px;
    opacity: 1;
    width: 40px;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heatmap-node:hover {
    color: var(--white);
    opacity: 0.8;
    text-decoration: none;
}

#heatmap-table .heatmap-table-row:not(.selected) {
    background-color: var(--white) !important;
}

#heatmap-table .heatmap-table-row.selected td {
    background-color: var(--white);
    border-top: 2px solid var(--gray-light-300);
    border-bottom: 2px solid var(--gray-light-300);
}

#heatmap-table .heatmap-table-row.selected td:first-child {
    border-left: 2px solid var(--gray-light-300);
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

#heatmap-table .heatmap-table-row.selected td:last-child {
    border-right: 2px solid var(--gray-light-300);
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

#heatmap-table .heatmap-node-table {
    border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    font-size: 14px;
    height: 38px;
    width: 38px;
}

#heatmap-table td {
    cursor: pointer;
    vertical-align: middle !important;
}

#heatmap-table th>.fa-star {
    color: var(--gray-medium-350);
}

.view-toggle .btn {
    background-color: var(--white) !important;
    border: 1px solid var(--gray-light-300) !important;
}

.view-toggle .btn:hover {
    background-color: #eee !important;
}

.btn-primary.nohover {
    background-color: var(--primary) !important;
}

/* Heatmap Node */
.deactive {
    opacity: .2;
}

.followup-future {
    background-color: var(--gray-medium-350);
}

.followup-missed {
    color: var(--alert) !important;
}

/* Misc Custom Styles */
.circle-header {
    background: var(--gray-light-100);
    border-radius: 50%;
    height: 100px;
    padding-top: 20px;
    text-align: center;
    width: 100px;
}

.delete-button,
.read-button {
    background: none;
    border: none;
    box-shadow: none;
}

.note-time {
    font-size: 10px;
}

.unread-note {
    background-color: #d9edf7;
}

.welcome-circle {
    border-radius: 50%;
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    height: 10px;
    padding-left: 14px;
    margin-right: 10px;
    width: 10px;
}

.welcome-circle-followup-future {
    background-color: var(--gray-medium-350);
}

/* Detai Page */
#check-meeting,
#check-follow-up,
#check-custom-follow-up,
#check-note {
    color: var(--success-light);
    display: none;
}

#fup-comment {
    color: grey;
}

/* Donor Card */

#donor-card .well {
    position: relative;
    padding-bottom: 60px;
}

#donor-card i {
    color: #7f8c8d;
    font-size: 16px;
}

#donor-card h5,
#donor-card .h5 {
    margin-bottom: 0px;
}

.donor-card-caption {
    font-size: 12px;
}

#donor-card-photo-blank {
    border: 0;
    border: none;
    box-shadow: none;
    height: 100px;
    outline: none;
    width: 100px;
}

#donor-card .card-accountname {
    margin-bottom: 5px;
}

#donor-card a {
    cursor: pointer;
    text-decoration: underline;
}

#donor-card .relationship-history {
    position: absolute;
    bottom: 8px;
    right: 15px;
}

#donor-card .request_fd_preview {
    position: absolute;
    bottom: 8px;
    left: 10px;
    font-size: 10px;
}

/* Fundraiser Dashboard */
.fundraiser-dashboard label {
    margin-right: 50px;
    text-align: center;
    width: 100%;
}

#meetingChart {
    cursor: pointer;
}

.pct-text {
    font-size: 80px;
}

.stat-block {
    text-align: center;
    vertical-align: center;
}

.stat-circle {
    background-color: var(--primary-dark);
    border-radius: 50%;
    display: table;
    margin: 10px auto;
}

.stat-circle p {
    display: table-cell;
    font-weight: bold;
    font-size: 70px;
    text-align: center;
    color: var(--white);
    font-weight: 900;
    vertical-align: middle;
}

/* Table Overrides */
.dataTables_filter {
    text-align: right !important;
}

.sortable thead {
    cursor: pointer;
}

.sortable th:hover,
.sorting_desc,
.sorting_asc {
    background-color: var(--gray-light-100);
}

table.dataTable thead .sorting:after {
    opacity: 0.6 !important;
}

table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after {
    color: var(--primary) !important;
    opacity: 0.9 !important;
}

/* Manager Module */
.checked {
    background-color: #d9edf7;
}

.checked:hover {
    background-color: #d9edf7;
}

.fundraiser {
    cursor: pointer;
}

.fundraiser:hover {
    background-color: var(--gray-light-100);
}

.heatmap-node:active,
.heatmap-node:link {
    color: white;
    text-decoration: none;
}

.heatmap-node.active {
    border: 1px solid #dcdcdc;
}

/* Override Date Picker */
.ui-datepicker {
    z-index: 3 !important;
}

.ui-datepicker-header {
    background: white !important;
    border: none !important;
}

a.ui-state-default {
    background: #e6e6e6 !important;
    border: none !important;
}

a.ui-state-default:hover {
    background: #dcdcdc !important;
    border: none !important;
}

a.ui-state-active {
    background-color: #d9edf7 !important;
}

td.ui-state-disabled {
    border: none !important;
}

td.ui-state-disabled span.ui-state-default {
    border: none !important;
}

a.ui-state-highlight {
    background-color: #e6e6e6 !important;
    border: none !important;
    color: #555555 !important;
}

a.ui-datepicker-next-hover,
a.ui-datepicker-prev-hover {
    cursor: pointer !important;
    background: #f6f6f6 !important;
}

/* Registration */
.logo {
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.registration .input-group-addon {
    background-color: #F4F6F9;
}

/* Type Ahead */
.tt-query {
    /* UPDATE: newer versions use tt-input instead of tt-query */
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}

.tt-hint {
    color: #999;
}

.tt-menu {
    /* UPDATE: newer versions use tt-menu instead of tt-dropdown-menu */
    background-color: var(--white);
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, .2);
    margin-top: 12px;
    padding: 8px 0;
    width: 422px;
}

.tt-dataset p {
    margin: 0px !important;
}

.tt-suggestion {
    color: #C4C4C4;
    cursor: pointer;
    line-height: 24px;
    padding: 5px 20px;
}

.tt-suggestion strong {
    color: #999;
}

.tt-highlight {
    color: var(--gray-dark-800) !important;
}

.tt-suggestion:hover {
    background-color: var(--gray-light-100);
}

.tt-suggestion.tt-is-under-cursor {
    /* UPDATE: newer versions use .tt-suggestion.tt-cursor */
    background-color: var(--primary-light);
    color: var(--white);
}

.tt-suggestion p {
    margin: 0;
}

.twitter-typeahead {
    z-index: 1001;
}

.disabled-input {
    background-color: #E0E0E0;
    width: 100%;
}

/* Volunteer */
.overlayed {
    background: rgba(0, 0, 0, 0.5);
    content: " ";
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1031;
}

/* Knowledge Center */
.knowledge a {
    cursor: pointer;
    font-size: 50px;
}

.knowledge i {
    margin-top: 50px;
}

.knowledge .thumbnail:hover {
    background-color: #dcdcdc;
}

/* Portfolio Management */
.active-step {
    background-color: var(--primary-soft) !important;
}

.badge-portfolio-management {
    background-color: var(--primary-soft);
}

.portfolio-management-step {
    background-color: var(--gray-medium-350);
    height: 20px;
    margin-right: 10px;
    transition: background-color .2s ease-in-out;
    width: 20px;
}

.portfolio-management-step-editable {
    cursor: pointer;
}

.portfolio-management-tooltip {
    display: inline;
    position: relative;
}

.portfolio-management-tooltip:hover:after {
    background: var(--gray-dark-800);
    background: var(--primary-soft);
    opacity: 0.93;
    border-radius: 5px;
    bottom: -40px;
    color: var(--white);
    content: attr(data-title);
    left: 5%;
    padding: 5px 15px;
    position: absolute;
    text-align: center;
    width: 140px;
    z-index: 98;
}

/* Two Factor Auth */
#id_understand {
    margin: 0px 0px 10px 20px !important;
}

ul#id_method-method,
ul#id_setup-method {
    list-style: none !important;
}

ul#id_method-method li,
ul#id_setup-method li {
    margin-left: -40px !important;
}

/* Map */
#map {
    height: 600px;
}

.marker-cluster-green {
    background-color: var(--green-max-light);
}

.marker-cluster-orange {
    background-color: var(--orange-max-light);
}

.marker-cluster-red {
    background-color: var(--red-max-light);
}

.marker-cluster-yellow {
    background-color: var(--yellow-light);
}

.marker-cluster-green div {
    background-color: var(--green-light);
}

.marker-cluster-orange div {
    background-color: var(--orange-light);
}

.marker-cluster-red div {
    background-color: var(--red-light);
}

.marker-cluster-yellow div {
    background-color: var(--yellow-medium);
}

.leaflet-popup-close-button {
    color: var(--gray-light-200) !important;
}

.dropdown-menu {
    z-index: 9999;
}

/* Favorite */
.favorite {
    cursor: pointer;
    color: var(--gray-medium-350);
    font-size: 16px;
    margin-left: 10px;
}

.favorite:hover {
    color: var(--gray-light-300);
}

.favorite-tooltip {
    display: inline;
    position: relative;
}

.favorite-tooltip:hover:after, 
.favorite-tooltip:focus-visible:after {
    background: var(--primary-soft);
    opacity: .93;
    border-radius: 5px;
    bottom: -40px;
    color: var(--white);
    content: attr(data-title);
    font-size: 14px;
    left: 5%;
    padding: 5px 15px;
    position: absolute;
    text-align: center;
    width: 140px;
}

.is-favorite {
    color: var(--primary-light) !important;
    transition: color .2s ease-in-out;
}

.badge-unread-count {
    background-color: var(--white);
    color: var(--primary-dark);
}

/* Footer */
#footer {
    background-color: #f8f8f8;
    border-top: 1px solid var(--gray-light-200);
    bottom: 0;
    height: 60px;
    margin-top: 40px;
    padding: 15px 0px 20px 0px;
    position: absolute;
    width: 100%;
}

.donor_detail_top {
    margin-bottom: 20px;
}

.donor_detail_top_photo {
    margin-left: auto;
    margin-right: auto;
    display: block;
    margin-bottom: 70px;
}

.ask_amount-tooltip {
    display: inline-block;
    position: relative;
}

.ask_amount-tooltip .ask_amount-tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #555;
    color: var(--white);
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
}

.ask_amount-tooltip .ask_amount-tooltiptext::after {
    content: '';
    position: absolute;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.ask_amount-tooltip:hover .ask_amount-tooltiptext,
.ask_amount-tooltip:focus .ask_amount-tooltiptext {
    visibility: visible;
    opacity: 1;
}

.popover {
    width: 200px;
}

.btn-popover {
    width: 40px;
    margin-left: 33px;
    margin-top: 5px;
    border-radius: 10px;
}

.heatmap-email {
    padding-left: 10.5px;
}

.heatmap-phone {
    padding-left: 11.5px
}

.heatmap-in-person-event {
    padding-left: 10px
}

/* Manual First Draft */
.manual-firstdraft-field {
    width: 750px !important;
}

#button-offset {
    display: inline-block;
}

#profile_info .btn {
    margin-top: 15px;
}

#request_fd_modal .modal-header {
    background-color: var(--primary);
    color: var(--white);
}

#request_fd_modal .modal-header h4 {
    margin: 0;
    font-size: 20px;
    padding-left: 10px;
    padding-right: 10px;
}

#request_fd_modal .modal-header .close {
    margin-top: -24px;
    opacity: 0.7;
}

#request_fd_modal .modal-header .close:hover {
    opacity: 1;
}

#request_fd_modal .modal-header span {
    color: var(--white);
}

#request_fd_modal .modal-dialog {
    margin-top: 300px;
}

/* Loading Animation */
.loading-donut {
    width: 2.4rem;
    height: 2.4rem;
    margin: 2.4rem;
    border-radius: 50%;
    border: 0.4rem solid rgba(21, 72, 115, 0.3);
    border-top-color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
    animation: 1.5s spin infinite linear;
    position: absolute;
    top: -15px;
    right: -15px;
    visibility: hidden;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}