@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');

:root {
    --green: #6e7d1a;

    --ut-header-height: 132px;
    --ut-header-logo-height: 5rem;
    font-size: 18px;

    --ut-app-icon-background-color: white;

    --ut-footer-background-color: rgba(0, 61, 76, 1);
    --ut-footer-text-color: white;

    @media screen and (max-width: 600px) {
        --ut-body-content-padding-x: 0;
    }
}

html, body {
    font-family: 'Lato', sans-serif;
    overflow-x: hidden;
}


.t-Header-navBar {
    @media screen and (max-width: 600px) {
        display: none;
    }
}

header {
    max-width: var(--ut-body-content-max-width);
    width: 100%;
    margin-inline: auto;
}

footer.t-Footer#t_Footer {
    padding: 0;
    border-top: none;
    background-color: transparent;
    
    /* this hides the scroll to top button */
    gap: 0;
    .t-Footer-top {
        display: none;
    }
}

.t-Footer-body {
    max-width: var(--ut-body-content-max-width);
    margin-inline: auto;
    width: 100%;

    background-color: var(--ut-footer-background-color);
    display: flex;
    align-items: center;
    padding: 2rem 2rem;


    .t-Footer-version {
        text-wrap: pretty;
    }
    a {
        --ut-link-text-color: white;
        text-decoration: underline;
    }
}

/* green buttons on comboboxes */
a-select .apex-item-comboselect .a-Button--comboSelect {
    background-color: var(--a-button-state-background-color,var(--a-button-type-background-color,var(--a-button-background-color,transparent)));
}

/* green bottom border on header */
.t-Header {
    border-bottom-width: 4px;
    border-bottom-style: solid;
    border-color: var(--ut-footer-top-background-color,var(--a-button-background-color, #76881D))
}

/* special outlined buttons within dynamic content */
a.button.outline {
    box-sizing: border-box;
    outline-color: var(--ut-focus-outline-color, -webkit-focus-ring-color);
    margin: 0;
    appearance: button;
}
a.button.outline,
button.outline {    
    border: 2px solid var(--green);
    padding: 0.5rem 2.5rem;
    background-color: white;
    color: var(--green);
    font-size: 1.125rem;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    &:hover {
        background-color: var(--green);
        color: white;
        border-color: white;
    }
}

/* spacing around help icon should be consistent */
.t-Form-helpButton {
    --a-button-padding-x: 0.75rem;
}

.t-Header-controls {
    @media screen and (min-width: 601px) {
        display: none;
    }
}
.t-Body-nav {
    @media screen and (min-width: 601px) {
        display: none;
    }
}
.t-NavigationBar {
    justify-content: flex-end;
    flex-wrap: wrap;
    align-items: center;
    --a-button-font-size: 1rem;
    --a-button-line-height: 1.25rem;
    @media screen and (max-width: 600px) {
        display: none;
    }



    .t-NavigationBar-item {
        & > a > span.t-Icon {
            display: none;
        }
        .t-Button {
            --a-button-state-background-color: transparent;
            .t-Button-label:hover::after {
                content: '';
                position: absolute;
                bottom: 0;
                left: 0;
                width: 100%;
                height: 4px;
                background-color: var(--green);
            }
        }
        &.loginButton {

            .t-Button {
                background-color: var(--green);
                /* margin: 8px; */
                
                padding: 0.75rem 1.5rem;
                font-weight: 700;
                font-size: 1.125rem;
                
                color: white;
                
                text-decoration: none;
                
                display: flex;
                align-items: center;
                &:hover {
                    background-color: #4a4a4a;
                    transition: background-color 0.2s;
                }
            }
        }
    }

    .t-NavigationBar-menu {
        --a-menu-font-size: 1rem;
        --a-menu-line-height: 1.25rem;
        --a-menu-border-radius: 0;
    }
}

.noUi-horizontal {
    margin-block: 40px 0;
}
.noUi-pips-horizontal {
    transform: translateY(-2rem) rotateX(180deg);
    .noUi-value {
        transform: translate(-50%, 50%) rotateX(180deg);
    }
}

/* scenario rates container */
.t-MediaList-value {
    font-size: 1rem;
    --ut-base-line-height: 0;
}

/* tooltips used on calculator and scenario pages */
.tooltip {
    position: relative;
    display: inline-block;
    padding-inline: 0.5rem;
    align-self: center;
}

/* interactive grid hamburger row buttons */
.a-Button.a-Button--actions {
    --a-button-text-color: black;
}

.location-information-button {
    position: fixed;
    bottom: 1rem;
    right: 35px;
    @media screen and (max-width: 480px) {
        right: 1rem;
    }
    margin-bottom: 1rem;
    border-radius: 32px;
    z-index: 9;
}

.location-information-button.no-show {
    display: none;
}

.location-information-popup {
  position: fixed;
  right: 35px;
  bottom: 90px;
  width: 420px;

  @media screen and (max-width: 480px) {
    width: calc(100% - 2rem);
    right: 1rem;
  }
  overflow: hidden;
  background: #fff;
  border-radius: 15px;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.2);
  transform-origin: bottom right;
  box-shadow: 0 0 128px 0 rgba(0, 0, 0, 0.1),
    0 32px 64px -48px rgba(0, 0, 0, 0.5);
  transition: all 0.1s ease;
  z-index: 9;

  .t-AVPList-label {
    white-space: normal;
  }
}

.location-information-popup.active {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.location-information-popup.no-show {
    display: none;
}

.location-header {
  display: flex;
  align-items: center;
  padding: 15px 22px;
  background: rgb(110, 126, 27);
  justify-content: space-between;
}

.location-header .header-info {
  display: flex;
  gap: 10px;
  align-items: center;
}

.header-info .logo-text {
    color: #fff;
    font-weight: 600;
    font-size: 1.31rem;
    letter-spacing: 0.02rem;
    margin: 0;
}
.location-header #close-location-information {
  border: none;
  color: #fff;
  height: 40px;
  width: 40px;
  font-size: 1.9rem;
  margin-right: -10px;
  padding-top: 2px;
  padding-left: 3px;
  cursor: pointer;
  border-radius: 50%;
  background: none;
  transition: 0.2s ease;
}
.location-header #close-location-information:hover {
  background: var(--a-button-hover-background-color);
}

.location-information-body {
  padding: 25px 22px;
  gap: 20px;
  display: flex;
  overflow-y: auto;
  @media screen and (min-width: 768px) {
    margin-bottom: 35px;
  }

  flex-direction: column;
  scrollbar-width: thin;

  .t-AVPList--hideNulls dt:has(+ .t-AVPList-value:empty) {
    display: block;
    width: 100%;
    font-weight: bold;
  }

  ul {
    margin: 0 0 0 1rem;
  }

}

.location-information-body dt:nth-of-type(even),
.location-information-body dt:nth-of-type(even) + dd {
    background-color: #ebebeb;
}

.location-information-body .nodatafound {
    font-size: 1.25rem;
    text-align: center;
}


/* Hide the "Location Selected" label and style its value */
.location-information-body .t-AVPList-label:first-of-type {
    /* display: none; */
    width: 30% !important;
    /* font-weight: bold; */
}

.location-information-body .t-AVPList-value:first-of-type {
    width: 70% !important;
    /* text-align: center; */
}

/* Set label/value widths for all other cells (except Precipitation Information) */
.location-information-body .t-AVPList-label:not(:first-of-type):not(:nth-of-type(3)) {
    width: 70%;
}

.location-information-body .t-AVPList-value {
    width: 30%;
}

/* Override for first value (Location Selected) and Precipitation Information value */
.location-information-body .t-AVPList-value:first-of-type,
.location-information-body .t-AVPList-label:nth-of-type(3) + .t-AVPList-value {
    width: auto;
}

.faq-location-info {
    .a-IRR-container {
        margin-top: 1rem;
    }
}