.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;
}
/* =========================================================
   PROFESSIONAL POLISH — matching agro insights style
   ========================================================= */


/* Graphs: rounded corners and subtle shadow */
.irrigation-tracker-graph-wrap {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(15,23,42,0.07);
  background: #ffffff;
}

/* Stat cards: cleaner borders */
.irrigation-tracker-statistics-unit-div {
  border: 1px solid #dde2ea !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 4px rgba(15,23,42,0.07);
  overflow: hidden;
}

/* Stat card header: cleaner */
.irrigation-tracker-statistics-unit-head {
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  border-bottom: 1px solid #dde2ea !important;
  background: rgba(255,255,255,0.6);
}

/* Stat items: rounder, more padding */
.irrigation-tracker-statistics-unit-statistics-item {
  border-radius: 8px !important;
  padding: 4px !important;
  box-shadow: 0 1px 2px rgba(15,23,42,0.06);
}

.irrigation-tracker-statistics-unit-statistics-item-title {
  font-size: 0.75rem !important;
  color: #64748b;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.irrigation-tracker-statistics-unit-statistics-item-value {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #1f2a37;
}

/* Severity index badge */
.irrigation-tracker-severity-index {
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  padding: 0 8px !important;
  min-width: 36px !important;
  width: auto !important;
}

/* Hist title */
.irrigation-tracker-statistics-unit-hist-title {
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-style: normal !important;
}

/* Total values text */
#irrigation-tracker-total-irrigation-values,
#irrigation-tracker-total-area {
  font-size: 0.85rem;
  color: #1f2a37;
  font-weight: 500;
  background: #f0f4f8;
  border: 1px solid #dde2ea;
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
}