@import url(https://fonts.googleapis.com/css?family=Raleway);
@import url(https://fonts.googleapis.com/css2?family=Raleway:ital,wght@1,900&display=swap);


/* ================================= NAVBAR ================================ */

*:not(#navbar-turnleaf-brand-text, i) {
    font-family: "Raleway"!important;
}

#navbar{
    -webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);
}

@media (max-width: 1299px) {
    #navbar-links .navbar-menu-link { display: none !important; }
    #navbar-links #sidebar-menu-button { display: block !important; }
    #sidebar-links .navbar-menu-link  { display: block !important; }
}

@media (min-width: 1300px) {
    #navbar-links .navbar-menu-link { display: block !important; }
    #navbar-links #sidebar-menu-button { display: none !important; }
    #sidebar-links .navbar-menu-link  { display: none !important; }
}

#navbar-turnleaf-brand{
    display: inline-flex;
}

#navbar-turnleaf-brand-text{
    font-family: "Raleway"!important;
    font-size: 1em;
    font-style: italic;
    color: #000;
    margin-top: 5px;
    margin-left: 5px;
    font-weight: 900!important;
}

@media (min-width: 768px) {
    .navbar-expand-md #sidebar-links .nav-link {
        padding-right: 0!important;
        padding-left: 0!important;
    }
}

.navbar-menu-link{
    padding: 5px;
}

.navbar-link-accordion{
    padding: 5px 20px;
    width: 230px;
}

.navbar-menu-link > .nav-link{
    background-color: transparent!important;
}

.navbar-menu-link > .accordion-item{
    background-color: transparent!important;
    border: 0!important;
}

.navbar-menu-link .accordion-body{
    padding: 0!important;
}

.navbar-menu-link .accordion-body .nav-item{
    padding:  0 0 0 20px!important;
}

.navbar-menu-link .accordion-button{
    background-color: transparent!important;
    height: 40px;
    color:rgba(0, 0, 0, .55)!important;
    padding: 0!important;
}

.navbar-menu-link .accordion-button:focus{
    border: 0!important;
    box-shadow: none!important;
}

.navbar-menu-link .accordion-button:not(.collapsed){
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125)!important;
}

/* ================================ SIDEBAR ================================ */

#sidebar{
    -webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2)
}

#sidebar-mobile{
    visibility: inherit;
    transition: transform .2s ease-in-out!important;
}

#sidebar-links .nav-item{
    padding: 5px 20px;
}

@media (min-width: 1700px) and (max-width: 1800px){
    #sidebar{
        width: 14%
    }
}

@media (min-width: 1800px) and (max-width: 2000px){
    #sidebar{
        width: 12%
    }
}

@media (min-width: 2000px){
    #sidebar{
        width: 10%;
    }
}

/* ============================ PAGE CONTAINERS ============================ */

.page-content-container{
    max-width: 1520px!important;
}

.page-content-container-fullwidth{
    max-width: 99vw!important;
}

/* main grid of pages */

.page-main-grid{
    margin: 0!important;
}

/* ================================ UTILITIES ============================== */

/**/

.fullwidth-element{
    width: 100%!important;
}

/* make the contents of a card behave like a grid */

.grid-card{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    -moz-box-pack: start;
    align-items: stretch;
    -moz-box-align: stretch;
}

/**/

.hidden-element{
    display: none!important;
}

.center-text{
    text-align: center;
}

/* =========================== GENERAL COMPONENTS ========================== */

.clipboard-button{
    display: inline-block;
    background-color: rgb(76, 110, 245);
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

/* fix for select elements, especially on mozilla */

.select-holder{
    overflow: visible!important;
    z-index: 100;
}

.mantine-Select-item[data-selected]{
    background-color: transparent;
    color:black;
}
.mantine-Select-item[data-selected]:hover{
    background-color: transparent;
    color:black;
}

.mantine-Select-item[data-hovered] {
    background-color: rgb(34, 139, 230)!important;
    color: white!important; /* Change this to your desired color */
}

/* small fix for dash mantine cards */

.mantine-Card-root{
    margin-bottom: 15px;
}

/* elements that are supposed to stick in position */

.sticky {
    position: -webkit-sticky;
    position: sticky;
    top: 75px;
    z-index: 500;
}

.sticky-full-menu{
    position: -webkit-sticky;
    position: sticky;
    top: 50px;
    z-index: 500;
}

@media only screen and (max-width: 767px) {
    .sticky-full-menu{
        position: inherit;
    }
}

/* overwrite the styling of the alert notifications */

.mantine-Notification-body{
    max-height: 250px;
    overflow-y: auto;
    padding-top: 5px;
}

/* gridstack */

.grid-stack-item{
    padding: 10px!important;
}

/* Figure Card */

.chart-tooltips {
    position: absolute;
    text-align: center;
    width: auto;
    padding: 2px;
    font-size: 10px;
    background: lightgrey;
    border: 0px;
    border-radius: 4px;
    pointer-events: none;
    z-index:1001;
    max-width: 400px;
}

.figure-card-content{
    padding-bottom: 15px;
}

.figure-card-chart-container{
    height:100%!important;
    flex-grow: 1;
    flex-direction: column;
}

.figure-card-responsive-chart-container{
    margin-bottom: 0px;
}

.figure-card-responsive-title{
    margin-bottom: 15px;
}

.figure-card-chart-container > .dash-graph{
    min-height: 300px;
    flex-grow: 1;
}

.figure-card-base-chart-container .svg-container{
    height:100%!important;
}

.widget-card{
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.widget-card-tooltip-modal{
    margin-top: 100px;
}

.widget-card-tooltip-modal .mantine-Modal-body{
    max-height: calc(-285px + 100vh);
}

.widget-card-tooltip-divider{
    height: 10px;
}

.card-table-title{
    margin-bottom: 15px;
}

/* =============================== LOGIN PAGE ============================== */

.auth-body{
    width: 100%;
    margin: 0 auto;
}

.container-auth{
    width: 100%;
    min-height: 100vh;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: #f2f2f2;
}

.auth-card{
    width: 400px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    padding: 66px 55px 44px 55px;
    box-shadow: 0 5px 10px 0 rgba(0,0,0,.1);
    -moz-box-shadow: 0 5px 10px 0 rgba(0,0,0,.1);
    -webkit-box-shadow: 0 5px 10px 0 rgba(0,0,0,.1);
    -o-box-shadow: 0 5px 10px 0 rgba(0,0,0,.1);
}

.auth-form-title{
    display: block;
    font-family: 'Raleway';
    font-size: 30px;
    color: #333;
    line-height: 1.2;
    text-align: center;
}

.auth-logo{
    width: 100%;
    padding-bottom: 50px;
}

.auth-form{
    width: 100%;
    margin-top: 50px;
}

.auth-input-wrap{
    border-bottom: 2px solid #adadad;
    margin-bottom: 37px;
}

.auth-form > .auth-input-wrap > input{
    font-family: 'Raleway';
    width: 100%;
    font-size: 15px;
    color: #555555;
    line-height: 1.2;
    display: block;
    height: 45px;
    background: transparent;
    outline: none;
    border: none;
    padding: 0 35px 0 5px;
}

.form-input-icon{
    float: right;
    margin-top: -35px;
    margin-right: 15px;
}

.auth-form-button-container{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding-top: 13px;
}

.wrap-auth-form-button{
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 25px;
    overflow: hidden;
    margin: 0 auto;
}

.auth-form-button{
    font-size: 15px;
    color: #fff;
    line-height: 1.2;
    text-transform: uppercase;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    height: 50px;
    outline: none !important;
    border: none;
    background-color: #333988;
}

.login-forgot-password-text{
    padding-top: 100px;
    text-align: center;
}

.login-support-text{
    text-align: center;
    padding-top: 20px;
}

.g-recaptcha{
    margin-bottom: 20px;
}

/* =============================== OAuth PAGE ============================== */

.mcp-login-support-text{
    padding-top: 15px;
}

.mcp-consent-user-info {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.mcp-consent-app-info {
    background-color: #e7f3ff;
    padding: 15px;
    border-radius: 4px;
    margin: 20px 0;
    border-left: 4px solid #007bff;
}

.mcp-consent-permissions {
    margin: 20px 0;
}
.mcp-consent-permissions h3 {
    font-size: 16px;
    margin-bottom: 10px;
}
.mcp-consent-permissions ul {
    list-style: none;
    padding: 0;
}
.mcp-consent-permissions li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.mcp-consent-permissions li:before {
    content: "✓ ";
    color: #28a745;
    font-weight: bold;
    margin-right: 8px;
}

.mcp-consent-btn-approve {
    background-color: #28a745!important;
    color: white;
}
.mcp-consent-btn-approve:hover {
    background-color: #218838!important;
}
.mcp-consent-btn-deny {
    background-color: #6c757d!important;
    color: white;
}
.mcp-consent-btn-deny:hover {
    background-color: #5a6268!important;
}

/* ================================ NEWS PAGE ============================== */
.custom-card{
    -webkit-box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2);
    box-shadow: 0 2px 2px 0 rgba(0,0,0,0.14),0 3px 1px -2px rgba(0,0,0,0.12),0 1px 5px 0 rgba(0,0,0,0.2)
}

.news-pagination{
  align-items: center;
  justify-content: center;
}

@media only screen and (min-width: 900px) {
    .news-pagination > button{
        height: 32px;
        min-width: 32px;
        padding: 0 8px;
        font-size: 16px;
    }
}

@media only screen and (min-width: 750px) {
    .news-pagination{
        margin-top: 15px;
    }
}

.news-item-card{
    width: 100%;
    align-self: stretch;
    display: flex;
    flex-wrap: wrap;
}

/* ============================== FORECASTS PAGE =========================== */

.forecasts-right-menu{
    z-index:100!important;
}

#forecasts-forecast-status-alert{
    font-weight: bold;
}

#forecasts-forecast-date-val-label{
    font-weight: 900;
    text-decoration: underline;
    color:red;
    margin-bottom: 7px;
}

#forecasts-forecast-fig-responsive{
   margin-left: -15px;
}

#forecasts-forecast-fig-modal-responsive{
    margin-left: -15px;
    margin-bottom: 15px;
}

.bolded-title > .mantine-Accordion-label{
    font-weight: bold!important;
}

.selected-indicator{
    text-decoration: underline;
}

.policy-adjustment-list-item {
    display: block;
    flex-wrap: wrap;
    align-items: baseline;
}

@media only screen and (min-width: 768px) {
    .policy-adjustment-list-item{
        display: flex;
    }
}

.wordcloud-tabs{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.wordcloud-tabs .mantine-Tabs-tabLabel{
    color: #00842c;
    font-size: 16px;
    font-weight: bold;
}

.wordcloud-tabs .mantine-123gri0[data-active]{
    border-color: #00842c;
    border-width: 2px 2px 2px;
    border-style: solid solid solid;
}

@media only screen and (min-width: 320px) and (max-width: 340px) {
    #forecasts-model-progression-fig-responsive-title{
        margin-bottom: 0px;
    }
    #forecasts-bench-progression-fig-responsive-title{
        margin-bottom: 0px;
    }

    #forecasts-contribute-stacked-fig-responsive-title{
        margin-bottom: 50px;
    }
}

@media only screen and (min-width: 1024px) {
    #forecasts-model-progression-fig-responsive-title{
        margin-bottom: 50px;
    }
    #forecasts-bench-progression-fig-responsive-title{
        margin-bottom: 50px;
    }
}

/* ======================== FORECASTS CATEGORIES PAGE ====================== */

#forecast-category-indicator-val{
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

#forecast-category-forecast-table .cell-markdown > p{
    text-align: left;
    margin-bottom: 0px;
}

/* ============================= FILE UPDATE PAGE ========================== */

.file-update-status-item-header{
    word-break: break-all;
}


/* =========================== USER MANAGEMENT PAGE ======================== */

.clear-mcp-key-button{
    display: inline-block;
    background-color: rgb(76, 110, 245);
    color: white;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    height: 100%;
    border: 0;
    border-left: 1px solid white;
}

.clear-mcp-key-button:disabled {
    background-color: #ccc;
    color: #666;
    border-left: 1px solid #aaa;
    opacity: 0.6;
}



/* ================================== UNKNOWN ============================== */

.full-screen-div{
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    width: 100vw;
    height: 100vh!important;
}

.dash-table-container .row {
  display: block;
  margin: 0;
}

.dash-table-container .dash-spreadsheet-container .dash-spreadsheet-inner td{
    white-space: normal!important;
}


/* =============================== PLOTLY JS =============================== */
/* plotly.js's modebar's z-index is outta the roof by default - lower it down */
.js-plotly-plot .plotly .modebar {
    z-index: 1;
}

/* Grid */
.column,
.columns {
  width: 100%;
  float: left;
  box-sizing: border-box; }

/* For devices larger than 550px */
@media (min-width: 550px) {
  .column,
  .columns {
    margin-left: 4%; }
  .column:first-child,
  .columns:first-child {
    margin-left: 0; }

  .one.column,
  .one.columns                    { width: 4.66666666667%; }
  .two.columns                    { width: 13.3333333333%; }
  .three.columns                  { width: 22%;            }
  .four.columns                   { width: 30.6666666667%; }
  .five.columns                   { width: 39.3333333333%; }
  .six.columns                    { width: 48%;            }
  .seven.columns                  { width: 56.6666666667%; }
  .eight.columns                  { width: 65.3333333333%; }
  .nine.columns                   { width: 74.0%;          }
  .ten.columns                    { width: 82.6666666667%; }
  .eleven.columns                 { width: 91.3333333333%; }
  .twelve.columns                 { width: 100%; margin-left: 0; }

  .one-third.column               { width: 30.6666666667%; }
  .two-thirds.column              { width: 65.3333333333%; }

  .one-half.column                { width: 48%; }

  /* Offsets */
  .offset-by-one.column,
  .offset-by-one.columns          { margin-left: 8.66666666667%; }
  .offset-by-two.column,
  .offset-by-two.columns          { margin-left: 17.3333333333%; }
  .offset-by-three.column,
  .offset-by-three.columns        { margin-left: 26%;            }
  .offset-by-four.column,
  .offset-by-four.columns         { margin-left: 34.6666666667%; }
  .offset-by-five.column,
  .offset-by-five.columns         { margin-left: 43.3333333333%; }
  .offset-by-six.column,
  .offset-by-six.columns          { margin-left: 52%;            }
  .offset-by-seven.column,
  .offset-by-seven.columns        { margin-left: 60.6666666667%; }
  .offset-by-eight.column,
  .offset-by-eight.columns        { margin-left: 69.3333333333%; }
  .offset-by-nine.column,
  .offset-by-nine.columns         { margin-left: 78.0%;          }
  .offset-by-ten.column,
  .offset-by-ten.columns          { margin-left: 86.6666666667%; }
  .offset-by-eleven.column,
  .offset-by-eleven.columns       { margin-left: 95.3333333333%; }

  .offset-by-one-third.column,
  .offset-by-one-third.columns    { margin-left: 34.6666666667%; }
  .offset-by-two-thirds.column,
  .offset-by-two-thirds.columns   { margin-left: 69.3333333333%; }

  .offset-by-one-half.column,
  .offset-by-one-half.columns     { margin-left: 52%; }

}
