/* JDServer-Webs v6.9 — climate_pro_solar_monthly.css
 * Radiació solar mensual (any seleccionat)
 * Estètica alineada amb la resta de mòduls climate_pro_*
 */

#climate-pro-solar-monthly{
  max-width:1120px;
  margin:18px auto 0;
}

.climatepro-solar-monthly{
  border-radius:18px;
  border:1px solid var(--border);
  background:var(--card);
  box-shadow:var(--shadow-1);
  padding:14px 18px 18px;
}

/* Capçalera */

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

.cpsm-title{
  margin:0;
  font-size:1.05rem;
  font-weight:600;
}

.cpsm-sub{
  margin:3px 0 0;
  font-size:.88rem;
  color:var(--muted);
}

.cpsm-year{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:.86rem;
}

.cpsm-year label{
  color:var(--muted);
}

.cpsm-year select{
  padding:4px 10px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--card);
  font-size:.9rem;
}

/* Xips de resum */

.cpsm-summary{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:8px;
}

.cpsm-chip{
  padding:3px 9px;
  border-radius:999px;
  font-size:.8rem;
  background:color-mix(in oklab, var(--brand) 12%, transparent);
}

/* Taula */

.cpsm-table-wrap{
  margin-top:6px;
  overflow-x:auto;
}

.cpsm-table{
  width:100%;
  border-collapse:collapse;
  font-size:.88rem;
  min-width:520px;
}

.cpsm-table thead th{
  text-align:left;
  padding:6px 8px;
  border-bottom:1px solid var(--border);
  white-space:nowrap;
}

.cpsm-table tbody td{
  padding:6px 8px;
  border-bottom:1px solid color-mix(in oklab, var(--border) 60%, transparent);
  vertical-align:middle;
}

.cpsm-month{
  font-weight:500;
}

/* Responsive */

@media (max-width: 640px){
  #climate-pro-solar-monthly{
    margin-top:16px;
  }

  .climatepro-solar-monthly{
    padding:14px 12px 18px;
  }

  .cpsm-table{
    min-width:100%;
    font-size:.84rem;
  }

  .cpsm-table thead th{
    line-height:1.15;
    padding:4px 6px;
    font-size:.78rem;
  }

  .cpsm-table tbody td{
    padding:4px 6px;
  }
}
