/* GRAFICI METEOGRUPPO - stile pulito tipo MeteoProject */

.st-graphs-section{
  padding-top:26px;
}

.mg-graphs-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:12px;
}

.mg-graphs-head h2{
  margin:0;
  font-size:24px;
  color:#0d3763;
}

.mg-graphs-kicker{
  margin:0 0 3px;
  color:#648197;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
}

.mg-range-buttons{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  gap:6px;
}

.mg-range-btn,
.mg-custom-apply{
  appearance:none;
  border:1px solid #c7dbe9;
  background:#fff;
  color:#17466f;
  border-radius:6px;
  padding:8px 12px;
  min-height:38px;
  font:700 13px/1 Segoe UI,Arial,sans-serif;
  cursor:pointer;
}

.mg-range-btn:hover{
  border-color:#1689d4;
  color:#1689d4;
}

.mg-range-btn.is-active{
  background:#1689d4;
  border-color:#1689d4;
  color:#fff;
}

.mg-custom-range{
  display:none;
  align-items:flex-end;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:10px;
  padding:12px;
  margin:0 0 10px;
  background:#f7fbfe;
  border:1px solid #dbe9f3;
  border-radius:10px;
}

.mg-custom-range.is-open{
  display:flex;
}

.mg-custom-range label{
  display:flex;
  flex-direction:column;
  gap:5px;
  color:#58738a;
  font-size:12px;
  font-weight:700;
}

.mg-custom-range input{
  min-height:38px;
  padding:7px 9px;
  border:1px solid #c7dbe9;
  border-radius:6px;
  background:#fff;
  color:#0d3763;
  font:inherit;
}

.mg-custom-apply{
  background:#123c69;
  border-color:#123c69;
  color:#fff;
}

.mg-period-label{
  margin:0 0 12px;
  text-align:right;
  color:#6b8497;
  font-size:12px;
  font-weight:700;
}

.mg-graph-message{
  margin:0 0 12px;
  padding:12px 14px;
  border-radius:8px;
  border:1px solid #f0c9c9;
  background:#fff5f5;
  color:#9a3232;
  font-weight:700;
}

.mg-graphs-list{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.mg-graph-card{
  background:#fff;
  border:1px solid #dbe9f3;
  border-radius:12px;
  box-shadow:0 3px 12px rgba(43,91,126,.07);
  overflow:hidden;
}

.mg-graph-card > header{
  min-height:42px;
  display:flex;
  align-items:center;
  padding:9px 14px;
  background:#f7fbfe;
  border-bottom:1px solid #dbe9f3;
}

.mg-graph-card h3{
  margin:0;
  color:#123b61;
  font-size:15px;
  font-weight:800;
}

.mg-chart{
  width:100%;
  height:330px;
}

@media(max-width:850px){
  .mg-graphs-head{
    align-items:flex-start;
    flex-direction:column;
  }

  .mg-range-buttons{
    justify-content:flex-start;
    width:100%;
  }

  .mg-period-label{
    text-align:left;
  }

  .mg-chart{
    height:300px;
  }
}

@media(max-width:560px){
  .mg-range-buttons{
    display:grid;
    grid-template-columns:1fr 1fr;
  }

  .mg-range-btn[data-range="custom"]{
    grid-column:1/-1;
  }

  .mg-custom-range{
    align-items:stretch;
  }

  .mg-custom-range label{
    width:100%;
  }

  .mg-custom-range input,
  .mg-custom-apply{
    width:100%;
  }

  .mg-chart{
    height:270px;
  }
}

.mg-back-station{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:7px;
  color:#fff;
  text-decoration:none;
  font-weight:800;
  font-size:13px;
}
.mg-back-station:hover{background:rgba(255,255,255,.12)}
