.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    font-size: 16px;
    min-width: 1080px;
    overflow-y: hidden;
    position: relative;
    width: 100%;
}

body, html {
    height: 100%;
    margin: 0px;
    padding: 0px;
}

@media (min-width: 768px) {
    html {
        font-size: 14px;
    }
}

h3 {
    margin: 5px 0 1px 10px;
    font-size: 14px;
}

h4 {
    margin: 5px 0 1px 10px;
    font-size: 12px;
}

header {
    position: fixed;
    height: 50px;
    width: 100%;
    top: 0px;
    z-index: 3;
}

.navbar {
    height: inherit;
}

.nav-item:hover {
    background-color: #f0f0f0; 
}

.dropdown a, .nav-item a {
	height: -webkit-fill-available;
	height: -moz-fill-available;
}

.dropdown-menu a:hover {
    background-color: #f0f0f0; 
}


footer {
    position: fixed;
    width: 100%;
    height: 30px;
    bottom: 0px;
}

#containerSearch {
    background-color: white;
    height: 100%;
    overflow: hidden;
    position: absolute;
    width: 90%;
}

#indexLeftColumn {
    min-width: 200px;
    padding-left: 6px;
    padding-right: 12px;
    width: min(20vw, 300px);
}

#indexRightColumn {
    height: 100%;
    width: 100%;
    padding: 0px 6px 0px 2px;
}

.downloadAnchor {
    margin: auto;
}

.fullColumn {
    float: left;
    -webkit-column-width: 100%; 
    -moz-column-width: 100%; 
    width: 100%;
}

.fullColumn_300 {
    float: left;
    -webkit-column-width: 300px; 
    -moz-column-width: 300px; 
    width: 1fr;
}

.clearfix::after { 
    content: "";
    display: table;
    clear: both;
}

.modal-lg {
    max-width: 80%; 
}

a {
    color: black;
}

.tagFilterButton {
    background-color: #eef0f0;
    border: solid 1px black;
    color: black;
    cursor: pointer;
    font-size: 10px;
    font-weight: bold;
}

    .tagFilterButton:hover {
        background-color: #d0e4ee;
    }

    .tagFilterButton:active {
        background-color: #808080;
    }

.searchButton, .asearchButton {
    background-color: #eef0f0;
    border: solid 1px black;
    color: black;
    cursor: pointer;
}

    .searchButton:hover {
        background-color: #d0e4ee;
    }

    .searchButton:active {
        background-color: #808080;
    }

.asearchButton {
    padding: 3px 3px 3px 3px;
}

#abstractContent {
    width: min-content;
}

#abstractModalBody {
    max-height: 40vh;
    min-width: 500px;
    overflow-y: auto;
    text-align: justify;
    width: min(70vw, 1000px);
}

.modal-content {
    margin: auto;
}

.smallFont {
    font-size: 12px;
    font-weight: bold;
}

.pageContent {
    top:50px;
    bottom:30px;
    position: fixed;
}

main {
    height: 100%;
}

main > * {
    height: 100%;
}

.containerWithColumn {
    background-color: #aba9a9;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto;
    grid-template-areas:"side mains";
}

.container_an {
    background-color: #aba9a9;
    display: grid;
    height: 90vh;
    grid-template-columns: .25fr 1fr;
    grid-template-rows: auto;
    grid-template-areas:"side mainlevel1";
}

.headerlogos {
   
    float: right;
}

.sidebar {
    background-color: #aba9a9;
    display: grid;
    grid-area: side;
    grid-template-columns: auto;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "cs1"
        "cs2";
    gap: 10px;
    min-width: 200px;
    overflow-y: hidden;
    padding: 7px;
    width: min(15vw, 275px);
}

#sidebarlevel1 {
    grid-template-areas:
        "cs1"
        "cs2"
        "cs3";
    grid-template-rows: auto auto 1fr;
}

.purpose {
    height: 35vh;
}

.mains {
    background-color: #aba9a9;
    padding: 7px;
    grid-area: mains;
    display: grid;
    grid-template-rows: auto min-content;
    grid-template-areas:
        "c1"
        "c2";
    gap: 10px;
}

.mainlevel1 {
    background-color: #aba9a9;
    padding: 7px;
    grid-area: mains;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr auto;
    grid-template-areas:
        "c1 c1 c2 c2"
        "c1 c1 c2 c2"
        "c3 c3 c4 c4";
    gap: 10px;
    height: inherit;
}

.mainlevel2 {
    background-color: #aba9a9;
    padding: 7px;
    grid-area: mains;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    grid-template-areas:
        "c1 c2 "
        "c1 c3 ";
    gap: 10px;
}

.card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
}

    .card:nth-child(1) {
        grid-area: c1;
    }

    .card:nth-child(2) {
        grid-area: c2;
    }

    .card:nth-child(3) {
        grid-area: c3;
    }

    .card:nth-child(4) {
        grid-area: c4;
    }

    .card:nth-child(5) {
        grid-area: c5;
    }

    .card:nth-child(6) {
        grid-area: c6;
    }

    .card.collapsed {
        height: 5px; 
        width: 5px;
    }

.sidecard {
    background-color: #ffffff;
    border-radius: 10px;
}

    .sidecard:nth-child(1) {
        grid-area: cs1;
    }

    .sidecard:nth-child(2) {
        grid-area: cs2;
    }

    .sidecard:nth-child(3) {
        grid-area: cs3;
    }

    .sidecard:nth-child(4) {
        grid-area: cs4;
    }
.icon-bar {
    height: 100%;
    background-color: #555;
    border-radius: 10px;
}

    .icon-bar a {
        display: block;
        text-align: center;
        padding: 16px;
        transition: all 0.3s ease;
        color: white;
        font-size: 22px;
    }

    .icon-bar h2 {
        display: block;
        text-align: center;
        padding: 16px;
        margin: 0 0 0 0;
        transition: all 0.3s ease;
        color: white;
        font-size: 24px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .icon-bar a:hover {
        background-color: #000;
    }

.active {
    background-color: #8ea3b3;
}

.object {
    border-radius: 10px;
}

.object_t {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

@media (min-width: 1280px) {
    .button-group {
        white-space: nowrap; 
    }
}

.button-group {
    white-space: initial;
}

.layerButtonGroup {
    display: flex;
    gap: 5px;
    margin: 5px;
    flex-wrap: wrap;
}

.climateLayerButton {
    background-color: #8a8a8a;
    border: none;
    color: whitesmoke;
    padding: 2px 4px 3px 4px; 
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    cursor: pointer;
    width: max-content;
}

    .climateLayerButton:hover {
        background-color: #555;
    }

.activeMapLayer {
    -webkit-box-shadow: inset 0px 0px 0px 4px #00619b;
    -moz-box-shadow: inset 0px 0px 0px 4px #00619b;
    box-shadow: inset 0px 0px 0px 4px #00619b;
}

.buttonts {
    border: none;
    background-color: #395a72;
    height: 70px;
    width: 100%;
    border-radius: 10px;
    color: white;
    font-size: 26px;
    text-align: center;
    cursor: pointer;
}

    .buttonts:hover {
        background-color: #75a1c2;
    }

.sidebarbtn {
    background-color: #f1fcfe;
    float: left;
    border: 1px double #ccc;
    outline: none;
    cursor: pointer;
    padding: 5px 5px;
    transition: 0.3s;
}

.tab {
    overflow: hidden;
    border: 1px solid #ccc;
    background-color: white;
    padding: 1px;
}

    .tab button {
        background-color: #f1fcfe;
        float: left;
        border: 1px double #ccc;
        outline: none;
        cursor: pointer;
        padding: 5px 5px;
        transition: 0.3s;
    }

        .tab button:hover {
            background-color: #ddd;
        }

        .tab button.active {
            background-color: #ccc;
        }

.tabcontent {
    display: none;
    border: 1px solid #ccc;
    border-top: none;
    height: 100%;
    width: 100%;
}

.tabcontentmap {
    display: none;
    border: 1px solid #ccc;
    border-top: none;
    height: 100%;
    width: 100%;
}

.tabcontentmaps {
    display: inline-block;
    border: 1px solid #ccc;
    border-top: none;
    height: 100%;
    width: 100%;
}

.coordinateInformation {
    margin: 1px 3px;
}

.tabcontentgcenter {
    display: none;
    border: 1px solid #ccc;
    border-top: none;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

#tcMapHeader {
    height: 35px;
    padding: 1px;
}

.tabcontentganalog {
    display: none;
    border: 1px solid #ccc;
    border-top: none;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

#analogCard {
    overflow: hidden; 
}

.tabs {
    display: flex;
    max-width: 100%; 
    background-color: white;
}

    .tabs button {
        flex: 1; 
        background-color: #f1fcfe;
        border: 1px double #ccc;
        border-radius: 10px;
        cursor: pointer;
        transition: background-color 0.3s;
    }

        .tabs button:hover {
            background-color: #ddd;
        }
        .tabs button.active {
            background-color: #ccc;
        }

.tabscontent {
    display: none;
    border-radius: 5px;
    margin: 5px;
}

.tabcontentgcenter img {
    max-width: 97%;
    height: auto;
}

.tabcontentganalog img {
    max-width: 97%;   
    height: auto;
}

mapc {
    height: auto;
}

.item-row {
    display: flex;
    justify-content: space-between;   
}

    .item-row h4 {
        flex: 0 0 48%; 
        text-align: center; 
        cursor: pointer; 
        margin: 0; 
    }

    .item-row img {
        vertical-align: middle; 
    }
div#viewDiv {
    height: 100%;
    margin: 0;
    overflow: hidden;
    padding: 0;
    width: 100%;
}

.esri-legend.esri-widget.esri-widget--panel {
    width: 200px;
}

.esri-component.esri-attribution.esri-widget {
        display: none;
}

.sidebarlevel1 {
    background-color: #aba9a9;
    grid-area: side;
    padding: 7px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto 1fr;
    grid-template-areas:
        "cs1"
        "cs2"
        "cs3";
    gap: 10px;
}
.splashCardRow {
    display: flex;
    gap: inherit;
    height: min-content;
    width: 100%;
}

.test-center {
    align-items: center;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    border-color: grey;
    cursor: pointer;
    display: grid;
    gap: 0.25rem;
    grid-template-columns: min-content auto;
    margin: 2px;
    padding: 3px;
}

    .test-center:hover {
        transition: 0.3s;
        background-color: lightgray;
    }

    .test-centers img {
        width: 20px;
        height: auto;
    }

    .test-centers div {
        padding-top: 10px;
    }
    
    h4.test-center {
        cursor: default;
    }

    #testcenter.buttonts {
        height: 80px;
    }

.aorcard {
    flex: auto;
    width: -moz-available;
    width: -webkit-fill-available;
}

.aorCardContent {
    display: flex;
    flex-direction: row;
    height: 100%;
}
    .aorCardContent h4 {
        align-items: center;
        cursor: pointer;
        display: flex;
        white-space: nowrap;
    }

    #aorCardContentLeft{
        flex: 1; 
    }

        #aorCardContentLeft h4 {
            margin: 1px 0px 0px 5px;
        }

        .aorrows {
            align-items: center;
            display: grid;
            gap: 4px;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            height: inherit;
        }

        .aor {
            border-radius: 4px;
            padding: 0.25rem;
            margin: 1px;
            display: grid;
            grid-template-columns: 30px auto;
        }

            .aor:hover {
                transition: 0.3s;
                background-color: lightgray;
            }

        .active-aor {
            border: solid;
            border-width: 1px;
            background-color: lightgray;
        }

        .aorIconWrapper {
            margin: auto;
        }

    #aorCardContentRight {        
        display: flex;
        flex-direction: column;
        width: 220px;
    }

        #aorCardContentRight .item {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }

        #aorCardContentRight h4 {
            margin: unset;
        }

        #aorCardContentRight img {
            max-width: 100%;
            align-self: center;
        }

        #aorCardContentRight button {
            text-align: left;
        }

    .rightCardTestCenter {
        display: flex;
        gap: 3px;
    }

        .rightCardTestCenter button {
            width: 100%;
            background-color: inherit;
            border: none;
            border-radius: 3px;
        }

            .rightCardTestCenter button:hover {
                transition: 0.3s;
                background-color: lightgray;
            }

.filters {
    display: flex;
    height: 100%;
    justify-content: right;
    margin-left: auto;
    margin-right: 0px;
}

.tab.analogs {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
}

.sidecard .tabs {
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    column-gap: 1px;
    margin: 1px;
}

.mains .card {
    padding: 3px;
}

#tAnalogs {
    row-gap: 25px;
    padding-top: 10px;
}

.pageDetails {
    text-align: justify;
    padding: 0px 10px 10px 10px;
    overflow-y: auto;
    height: calc(100% - 60px);
}

@media (max-width: 1366px) {
    .pageDetails {
        hyphens: auto;
    }
}

.popupWrapper {
    display: flex;
    justify-content: right;
    margin: 3px;
    height: 100%;
}

.tcGraphHeader {
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.tcGraphHeader h3 {
    width: 70%;
}

div#graphModalBody {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    grid-template-columns: minmax(auto, 300px) minmax(auto, 3fr);
    min-width: 800px;
    text-align: start;
}

.radioSelectCombo {
    display: grid;
    gap: 10px;
    grid-template-columns: min-content 1fr;
    margin: 2px;
}

.radioSelectCombo label {
    display: inline-flex;
    gap: 5px;
}

div#modalChartDiv {
    min-width: 500px;
    height: 100%;
}

.card.filterSelections {
    width: 100%;
}

input.yearRange {
    width: 55px;
}

.modalSelect {
    height: 30px;
}

div.chartDiv {
    height: 100%;
    width: 100%;
}

div.chartAreaWrapper {
    align-items: center;
    display: flex;
    width: 100%;
}

#modalChartWrapper {
    display: grid;
    grid-template-rows: auto min-content;
}

button.openModalButton {
    border-radius: 5px;
    height: 25px;
}

.modalFiltersCard {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 5px;
    min-width: 150px;
    max-width: 300px;
    gap: 10px;
    
    display: flex;
    flex-direction: column;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: 1px solid rgba(0, 0, 0, .125);
    border-radius: .25rem;
}

.card.graphCard {
    grid-template-rows: 31px min-content minmax(0, 1fr);
    grid-template-columns: minmax(0,1fr);
    display: grid;
    height: auto;
    max-height: 30vh;
    min-height: 30vh;
}

@media (min-height: 1200px) {
    .card.graphCard {
        max-height: 20vh;
        min-height: 20vh;
    }
}

span.disclaimer {
    margin-left: 0.5rem;
    font-size: .8em;
}

.dataAvailability {
    justify-content: center;
    place-self: center;
    width: 100%;
}

div.modalFiltersSubcard {
    background-color: inherit;
    border-radius: inherit;
    border: inherit;
    padding:inherit;
}

#submitButton {
    border-radius: 5px;
}

#submitButtonWrapper {
    display: grid;
    justify-content: center;
}

.modalFiltersSubcard h4 {
    margin: auto;
}

.modalSettings {
    row-gap: 10px;
    display: grid;
}

#modalFilterSelections .filterGroup {
    height: min-content;
}

#monthSelect {
    margin: 1px 1px 1px 1.25rem;
}

#submitButtonWrapper {
    padding: 10px;
}

.graphSettings {
    display: flex;
}

.climateButtons {
    width: auto;
}

.loadingIndicator {
    margin: auto;
    place-self: center;
}

#tcPageGraphCard {
    max-height: 45vh;
}

.inlineTitlesm {
    display: flex;
    align-items: center;
}

    .inlineTitlesm img {
        margin-left: 5px;
    }

.inlineTitle {
    display: flex;
    align-items: center;
}

    .inlineTitle img {
        margin-left: 5px;
    }

.reportComponent {
    display: grid;
    grid-template-columns: 9fr 1fr;
    column-gap: 1px;
    width: 100%;
}

#searchWidget .reportComponent {
    margin: auto;
}

#reportListIndexPage {
    bottom: 50px;
    height: calc(100% - 75px);
    margin: 0px;
    position: absolute;
    top: 55px;
    width: fit-content;
}

.reportList {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    height: calc(100% - 100px);
    margin: 5px 0px 5px 0px;
    overflow-y: auto;
}

.reportCard {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

#searchWidget {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#searchContent {
    display: flex;
    width: 100%;
}

#tSearch {
    height: 100%;
    display: flex;
}

.pageNumbers {
    display: flex;
    align-self: center;
    gap: 0.2rem;
    width: 100%;
    margin: auto 2px 0px 2px;
}

.pageNumbers > * {
    flex: 1 1 auto;
    text-align: center;
}


.paginationArrow, .pageNumbers > *{
    transition: 0.3s;
    border-radius: 5px;
}

    .paginationArrow:hover, .pageNumbers > *:hover {
        cursor: pointer;
        background-color: #d3d3d351;
    }

#queryText {
    width: 100%;
}

.titleLink {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    width: calc(95%);
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    overflow: hidden;
}

.pageHeader {   
    margin: 0.25rem auto 0.25rem 10vw;
    align-self: center;
    }

.pageHeader h3 {
    text-align: center;
    margin: 0 auto;
}

.paginationLink.active {
    border-radius: 5px;
    background: #8ea3b354;
}
.paginationLink {
    padding: 1px;
}
.paginationLink:hover {
    cursor: pointer;
}

#indexFilters {
    display: grid;
    gap: 8px;
}

#indexQueryForm {
    display: grid;
    gap: 16px;
}

#tagsDiv {
    margin-top: 2px;
    margin-bottom: 2px;
    border-width: 1px;
    border-color: lightgrey;
    border-radius: 3px;
    border-style: solid;
    padding: 4px;
}

#tagsDiv legend {
    float: unset;
    font-size: unset;
    line-height: unset;
    margin-bottom: unset;
    padding: unset;
    width: unset;
}

#activeTags {
    display: inline-block;
    padding-bottom: 6px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2196F3;
    -webkit-transition: .4s;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 16px;
        width: 18px;
        left: 4px;
        bottom: 4px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(22px);
    -ms-transform: translateX(22px);
    transform: translateX(22px);
}

.slider.round {
    border-radius: 34px;
}

    .slider.round:before {
        border-radius: 50%;
    }

.sliderLabel {
    transition: 0.4s;
}

.sliderGroup {
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: 1fr auto 1fr;
    place-content: center;
    text-align: center;
}

#modalSliders .filterGroup {
    text-align: center;
}

.modal-overlay {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); 
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 20px;
    width: 200px;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

    .modal-content input {
        width: 100%;
        padding: 8px;
        margin: 8px 0;
        border: 1px solid #ccc;
        border-radius: 5px;
    }

    .modal-content button {
        width: 100%;
        padding: 10px;
        margin-top: 10px;
    }

.overlay-content {
    filter: blur(5px);  Blurs background when login is required 
    pointer-events: none;  Disables clicks until login 
}

.modal-overlay {    
    position: flex;
    top: 0;
    left: 0;
    height: 100dvh; 
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1055;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    max-height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    position: relative;
}

    .modal-content input {
        width: 100%;
        padding: 8px;
        margin: 8px 0;
        border: 1px solid #ccc;
        border-radius: 5px;
    }
   
    .modal-content button {
        width: 100%;
        padding: 10px;
        margin-top: 10px;
    }



.modal-dialog.login-dialog {    
    width: 30vw;
    max-width: 400px;
    min-width: 300px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}


.modal-dialog.register-dialog {
    width: 45vw;
    max-width: 600px;
    min-width: 350px;
    height: auto;
    max-height: 85vh;
}

#accountModal .modal-content {
    width: 400px;
    max-width: 90vw;
    height: auto;
    max-height: 90vh;
}

.authenticated .overlay-content {
    filter: none;
    pointer-events: all;
}

.admin-dashboard-dialog .modal-content {
    max-width: none;
}

#adminDashboardModal .modal-content {
    width: 100%;
    height: 100%;
    max-height: 100%;
    padding: 1rem;
}

#adminTabs {
    display: flex;
    flex-wrap: nowrap; 
    gap: 10px;
    justify-content: space-evenly;
}

    #adminTabs .nav-link {
        flex-shrink: 1;
        white-space: nowrap;
        font-size: 0.95rem; 
    }


.modal-dialog.admin-dashboard-dialog {
    width: 55vw !important;
    max-width: 55vw !important;
    height: 65vh !important;
    max-height: 65vh !important;
    margin: auto;
}

body.modal-open #mainContent {
    filter: blur(5px);
    pointer-events: none;
}

.g-recaptcha {
    transform: scale(0.85);
    transform-origin: 0 0;
}

#usersGrid {
    overflow: visible !important;
}

.position-relative {
    position: relative;
}

.password-container {
    position: relative;
}

    .password-container input.form-control {
        padding-right: 2.75rem;
    }

.toggle-password {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 10;
    color: #888;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

    .toggle-password i {
        pointer-events: none; 
    }

.progress-bar.weak {
    background-color: red;
}

.progress-bar.fair {
    background-color: orange;
}

.progress-bar.good {
    background-color: yellowgreen;
}

.progress-bar.strong {
    background-color: green;
}

input.is-valid {
    border-color: #198754;
    background-image: url('data:image/svg+xml;base64,...'); 
}

input.is-invalid {
    border-color: #dc3545;
    background-image: url('data:image/svg+xml;base64,...'); 
}


.recaptcha-wrapper {
    transform-origin: 0 0;
    width: 100%;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .recaptcha-wrapper {
        transform: scale(0.85);
        height: 56px; 
    }
}

@media (max-width: 425px) {
    .recaptcha-wrapper {
        transform: scale(0.75);
        height: 50px;
    }
}

@media (max-width: 375px) {
    .recaptcha-wrapper {
        transform: scale(0.65);
        height: 44px;
    }
}

.toast.bg-success {
    background-color: #198754 !important; 
    color: white;
}

.toast.bg-danger {
    background-color: #dc3545 !important; 
    color: white;
}

.jqgrid-row-alt-even {
    background-color: lightcyan !important;
}

.jqgrid-row-alt-odd {
    background-color: #ffffff !important;
}

:root {
    --analog-h: 28px;
}

.analog-footer {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: nowrap;
}

.analog-toolbar {
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: nowrap;
}

.btn-compact {
    height: var(--analog-h);
    padding: 0 .55rem;
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    gap: .35rem; 
    white-space: nowrap; 
    line-height: 1;
    font-size: .85rem;
    border-radius: .35rem;
}

    .btn-compact .chev,
    .btn-compact .ic {
        line-height: 1;
        display: inline-block;
        transform: translateY(-0.5px); 
    }

.select-compact,
.analog-modal .form-select.form-select-sm {
    height: var(--analog-h);
    padding-top: .125rem;
    padding-bottom: .125rem;
    font-size: .85rem;
    line-height: 1.1;
    vertical-align: middle;
}

.btn-group .btn + .btn {
    margin-left: -1px;
}

.toolbar-sep {
    width: 1px;
    height: 20px;
    background: var(--bs-border-color, #dee2e6);
    margin: 0 .25rem;
}

.analog-note {
    white-space: nowrap;
}

.analog-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%; 
}

#tiffImg {
    width: 100%;
    height: 100%;
    object-fit: contain; 
}

#analogLabels.analog-labels {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.country-text {
    font: 600 12px/1.1 system-ui,Arial,sans-serif;
    fill: #fff;
    stroke: rgba(0,0,0,.9);
    stroke-width: 2.5px;
    paint-order: stroke;
}

.analog-rail {
    position: absolute;
    width: 84px; 
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: flex-start;
    pointer-events: none;
}

.rail-label {
    padding: 2px 0px 8px 4px;
    margin: 26px 0px 14px 20px;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.analog-vars {
    text-align: center;
    font-size: 0.75rem;
    font-weight:bold;
    line-height: 1.4;
    max-width: 90%;
    margin: 0 auto;
}
.ratio > #analogVars {
    position: absolute !important;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto !important; /* undo Bootstrap's top:0 */
    width: 100% !important;
    height: auto !important; /* undo Bootstrap's height:100% */
    padding: .4rem .6rem;
    text-align: center;
    font-size: .875rem;
    line-height: 1.25;
    z-index: 4; /* above the image/labels */
    background: linear-gradient( to bottom, rgba(255,255,255,0), rgba(255,255,255,.9) 45%); /* subtle fade so it reads over the map */
    pointer-events: none; /* optional: don’t block clicks */
}