html {
    height: 100%;
}
body {
    position: relative;
    min-height: 100%;
    height: 100%;
    background: #5db14f url(/assets/images/background.png) no-repeat fixed center center;
    overflow: auto;
    font-size: 0.95em;
}
#loading-overlay {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}
#loading-overlay-spinner {
    width: 60px;
    height: 60px;
    display: block;
    position: fixed;
    z-index: 100;
    top: 50%;
    right: 50%;
    margin-top: -30px;
    margin-right: -30px;
}

/*Bootstrap overrides*/
:root {
    --bs-primary: #227722 !important;
    --bs-primary-rgb: 0,130,0;
}
#toasts-container {
    z-index: 11;
}
.nav-link {
    color: #0c4128;
}
.nav-link:hover {
    color: #555b55;
}
.toast-body {
    max-height: 500px;
    overflow: auto;
}
.dropdown-item:active {
    background-color: #a1c9ae;
    color: rgb(33, 37, 41);
    border-color: darkgreen;
}
.btn-primary:focus {
    background-color: #a1c9ae;
    color: rgb(33, 37, 41);
    border-color: darkgreen;
}
.btn-primary:active:focus {
    background-color: #a1c9ae;
    color: rgb(33, 37, 41);
    border-color: darkgreen;
}
.btn-primary {
    background-color: #4b854b;
    border-color: #2a692a;
}
.btn-primary:hover {
    background-color: #4c8a4c;
    border-color: #4c8a4c;
}
.text-primary {
    color: darkgreen;
    border-color: darkgreen;
}
.btn-secondary {
    background-color: rgb(236, 173, 7);
    border-color: rgb(203, 152, 0);
}
.btn-secondary:hover {
    background-color: #e59f33;
    border-color: #986a20;
}
.text-secondary {
    color: #ED9205 !important;
    border-color: #ED9205 !important;
}
.text-current {
    color: #80a961 !important;
}
.text-current-alt-1 {
    color: #43AA8B !important;
}
.text-current-alt-2 {
    color: #28795A !important;
}
.text-current-alt-3 {
    color: #577590 !important;
}
.text-current-alt-4 {
    color: #277DA1 !important;
}

.text-minus-year {
    color: #ecb42f !important;
}
.text-minus-year-alt-1 {
    color: #F9844A !important;
}
.text-minus-year-alt-2 {
    color: #F8961E !important;
}
.text-minus-year-alt-3 {
    color: #C25925 !important;
}
.text-minus-year-alt-4 {
    color: #F94144 !important;
}
.bg-primary {
    background-color: #519d51 !important;
}
.bg-lightgrey {
    background-color: #eee;
}
.btn-secondary:focus {
    background-color: #dc9c40;
    color: rgb(40, 41, 33);
    border-color: #9d5e00;
}
.btn-secondary:active:focus {
    background-color: #dc9c40;
    color: rgb(40, 41, 33);
    border-color: #9d5e00;
}

/*General*/
.custom-graph-legend-ul {
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.custom-graph-legend-li {
    align-items: center;
    cursor: pointer;
    margin-left: 10px;
    display: flex;
    flex-direction: row;
}
.custom-graph-legend-text-container {
    margin: 0;
    padding: 0;
    font-size: 12px;
}
.custom-graph-legend-box {
    -webkit-background-clip: padding-box !important;
    background-clip: padding-box !important;
    display: inline-block;
    margin-right: 10px;
    width: 40px;
    height: 15px;
}
.selected-dropdown-item {
    background-color: lightblue;
}
.selected-dropdown-item:hover {
    background-color: #8bbece;
}
.iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 77.25%;
}
.responsive-iframe {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}
footer {
    text-align: center;
    color: white;
    width: 100%;
    font-weight: bold;
    padding: 1em;
    margin-top: auto;
}
.footer-push {
    display: flex;
    min-height: 100vh;
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
}
.ad-img-thumbnail {
    max-width: 100px;
    max-height: 100px;
}
.chart-container {
    position: relative;
}
.chart-click-to-zoom-label {
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
    width: fit-content;
    margin-left: auto;
    border-radius: 5px;
    padding: 0.2em 0.4em;
    background-color: #eee;
}
.chart-click-to-zoom-label.zoom-enabled {
    background-color: #c8e7be;
}
.table-container {
    overflow-x: auto;
}
table > thead > tr > th {
    font-size: 0.9em;
}
table > tbody > tr > td {
    font-size: 0.85em;
}
.totals {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
}
.total {
    color: #fff;
    background-color: #47792f;
    flex-grow: 1;
    flex-basis: 0;
    margin: 1em;
    border-radius: 3px;
}
.total-info {
    font-size: 12px;
    color: #dfdfdf;
}
.total-sub {
    border: 1px solid #ddd;
    background-color: #2e561b;
    border-radius: 3px;
    margin: 0.2em;
    padding: 0.2em;
    flex: 1;
}
.total-sub-title {
    color: #e7f6e9;
    font-size: 0.9em;
}
.total .total-name {
    font-size: 0.9em;
    padding: 0.3em 0.5em;
}
.total .total-value {
    font-size: 1.2em;
    text-align: center;
    padding: 1em;
}

.total-sm {
    color: #fff;
    background-color: #47792f;
    border: 1px solid #6ead4f;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-basis: 0;
    margin: 0.5em;
    border-radius: 3px;
    text-align: center;
}
.total-sm .total-name {
    display: inline-block;
    font-size: 0.9em;
    padding: 0.2em 0.4em;
    text-align: left;
}
.total-sm .total-value {
    display: inline-block;
    font-size: 1.1em;
    text-align: center;
    padding: 0.5em;
}

.choices__inner {
    min-height: 0px;
    background-color: white;
}
.choices {
    overflow: visible;
    text-align: left;
}
.choices__input {
    background-color: white;
}
.choices__item {
    font-size: 12px;
}
.choices__list--dropdown .choices__item, .choices__list[aria-expanded] .choices__item {
    font-size: 12px;
}
.choices__list--multiple .choices__item {
    background-color: #fff;
    border: 1px solid #d5d9d9;
    border-radius: 8px;
    box-shadow: rgba(213, 217, 217, .5) 0 2px 5px 0;
    box-sizing: border-box;
    color: #0f1111;
    cursor: pointer;
    display: inline-block;
    font-family: "Amazon Ember",sans-serif;
    font-size: 12px;
    line-height: 29px;
    padding: 0 10px 0 11px;
    position: relative;
    text-align: center;
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    vertical-align: middle;
}
.choices__list--multiple .choices__item:hover {
    background-color: #f7fafa !important;
}
.choices__list--multiple .choices__item:focus {
    border-color: #008296;
    box-shadow: rgba(213, 217, 217, .5) 0 2px 5px 0;
    outline: 0;
}
.choices__list--multiple .choices__item.is-highlighted {
    background-color: #fff;
}
.choices__button {
    background-size:12px !important;
    background-image: url("data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjMDAwMDAwIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciICB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNHB4IiBoZWlnaHQ9IjI0cHgiPjxwYXRoIGQ9Ik0gNC43MDcwMzEyIDMuMjkyOTY4OCBMIDMuMjkyOTY4OCA0LjcwNzAzMTIgTCAxMC41ODU5MzggMTIgTCAzLjI5Mjk2ODggMTkuMjkyOTY5IEwgNC43MDcwMzEyIDIwLjcwNzAzMSBMIDEyIDEzLjQxNDA2MiBMIDE5LjI5Mjk2OSAyMC43MDcwMzEgTCAyMC43MDcwMzEgMTkuMjkyOTY5IEwgMTMuNDE0MDYyIDEyIEwgMjAuNzA3MDMxIDQuNzA3MDMxMiBMIDE5LjI5Mjk2OSAzLjI5Mjk2ODggTCAxMiAxMC41ODU5MzggTCA0LjcwNzAzMTIgMy4yOTI5Njg4IHoiLz48L3N2Zz4=") !important;
}
.module-block {
    transition: height 1s ease;
    height: auto;
}
.module-block.loaded {
    height: 0;
}

/*Nav*/
button.nav-link {
    border: none;
}
.nav-logo {
    max-height: 45px;
}
.nav-icon {
    max-height: 35px;
}
.vendor-icon-sm {
    max-height: 25px;
    max-width: 25px;
}
.dropdown-item-active {
    background-color: #c7ecc7;
}
.dropdown-item-active:hover {
    background-color: #d4ecd4;
}

/*PDF Print*/
@page {
    size: 8.5in 11in;
    margin: 0;
    height: 100%;
}
@media print {
    body {
        background: none;
        width: 11in;
        print-color-adjust: exact;
        -webkit-print-color-adjust: exact;
    }
    .module-block-container {
        background-color: #fff !important;
    }
    .module-block-container .avoid-page-break {
        break-inside: avoid;
    }
    .page-break-after {
        page-break-after: always;
    }
    .page-break-before {
        page-break-before: always;
    }
    ::-webkit-scrollbar {
        display: none;
    }
    .total {
        background-color: #eee;
        border-radius: 5px;
        color: black;
    }
    .total-info {
        font-size: 12px;
        color: #555;
    }
    .total-sub {
        background-color: #e5f1e4;
    }
    .total-sub-title {
        color: #2c382f;
        font-size: 0.9em;
    }
    .table-container table {
        page-break-inside: auto;
    }
    .table-container tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
    .table-container thead {
        display: table-header-group;
    }
    .table-container tfoot {
        display: table-footer-group;
    }
}
body.pdf-body {
    zoom: 80%;
    width: 11in;
    background: none;
}
.pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1em 0em 1em;
    margin: 0 1em 0em 3em;
    position: relative;
    top: -35px;
    width: 90%;
}
.pdf-header-img {
    width: 100%;
    margin-bottom: 20px;
}

/*Ranking Summary*/
#ranking-table tr.odd {
    background-color: #eee !important;
}
#custom-ranking-selects {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 1em;
    width: 100%;
}
#custom-ranking-selects > div {
    margin: 0.6em;
}
.custom-ranking-selects select {
    border-radius: 3px;
    padding: 4px;
    border: 1px solid #aaa;
    background-color: transparent;
}