.irrigation-tracker-graphs-stack{
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  gap: 8px;              /* optional spacing between graphs */
  min-height: 0;         /* IMPORTANT: allows children to shrink + scroll properly */
}

/* Each visible graph shares height equally */
.irrigation-tracker-graph-wrap{
  flex: 1 1 0;
  min-height: 0;         /* IMPORTANT so dcc.Graph can size correctly */
}

/* Make the Plotly graph fill its wrapper */
.irrigation-tracker-graph-wrap .js-plotly-plot,
.irrigation-tracker-graph-wrap .plotly,
.irrigation-tracker-graph-wrap .plot-container{
  height: 100% !important;
}

.irrigation-tracker-body{
  height: calc(100vh - 130px); /* adjust 90px if your top bar is different */
  min-height: 0;
  padding-top: 6px;
}

.irrigation-tracker-statistics-unit-statistics{
    width: 100%;
    height: 8vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 3px;
    
    font-weight: var(--font-width);
    box-sizing: border-box; 
}

.irrigation-tracker-statistics-unit-statistics-item{
    width: 5vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    margin: 3px;
    font-size: 90%;
    
    color: var(--text-color);
    border-radius: 5px;    
    /* background-color: #d5efdd; */
    box-sizing: border-box; 
}

.irrigation-tracker-statistics-unit-statistics-item-title{
    font-size: 100%;
    font-weight: bold;
}

.irrigation-tracker-statistics-unit-statistics-item-value{
    font-size: 130%;
    font-weight: bold;
}

.irrigation-tracker-statistics-unit-div{
    width: 25vw;
    height: 97%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    
    margin: 3px;
    padding-top: 2px;
    border: 1px solid #083655;
    border-radius: 5px;    
    box-sizing: border-box; 
}
.irrigation-tracker-statistics-unit-head{
    width: 100%;
    height: 4vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 110%;
    color: #1D3557;
    font-weight: bold;
    border-bottom: 1px solid #1b1a1a;
    box-sizing: border-box; 
}

.irrigation-tracker-severity-index{
    width: 1.5vw;
    height: 95%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 3px;
    font-size: 90%;
    
    border-radius: 5px;    
    box-sizing: border-box; 
}

.irrigation-tracker-statistics-unit-statistics-item-title{
    font-size: 100%;
    font-weight: bold;
}

.irrigation-tracker-statistics-unit-statistics-item-value{
    font-size: 130%;
    font-weight: bold;
}

.irrigation-tracker-statistics-unit-hist{
    width: 100%;
    height: 26vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 2px;
    font-weight: var(--font-width);
    box-sizing: border-box; 
}

.irrigation-tracker-statistics-unit-hist-title{
    width: 100%;
    height: 3vh;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    font-size: 100%;
    font-weight: bold;
    font-style: italic;
}