/* JDServer-Webs v6.9 — climate_pro_days.css
 * Dies de glaçada, dies d’estiu i nits tropicals per any
 */

#climate-pro-days {
  margin: 16px 0 28px;
}

/* ===== capçalera ===== */

.cpdays-head h3 {
  margin: 0 0 4px;
}

.cpdays-sub {
  margin: 0;
  opacity: 0.8;
  font-size: 0.95rem;
}

.cpdays-range {
  margin-top: 6px;
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ===== layout principal ===== */

.cpdays-body {
  margin-top: 14px;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr);
}

@media (max-width: 900px) {
  .cpdays-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== chips de rècords ===== */

.cpdays-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cpdays-chip {
  border-radius: 999px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  background: var(--card-soft, rgba(255, 255, 255, 0.02));
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.cpdays-chip-label {
  font-size: 0.85rem;
  opacity: 0.8;
}

.cpdays-chip-value {
  font-weight: 600;
}

.cpdays-chip-year {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ===== taula ===== */

.cpdays-table-wrap {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow-2);
  padding: 10px 12px;
  /* abans hi havia overflow-x:auto + min-width -> eliminats
     per evitar scroll horitzontal en mòbil */
}

.cpdays-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;    /* columnes equilibrades */
}

.cpdays-table th,
.cpdays-table td {
  padding: 6px 8px;
  font-size: 0.9rem;
}

/* capçalera */
.cpdays-table thead th {
  font-weight: 600;
  border-bottom: 1px solid var(--border-soft, rgba(255, 255, 255, 0.08));
}

/* alineació: any a l'esquerra, valors centrats */
.cpdays-table th:first-child,
.cpdays-table td:first-child {
  text-align: left;
  width: 28%;
}

.cpdays-table th:nth-child(n+2),
.cpdays-table td:nth-child(n+2) {
  text-align: center;
}

/* zebra suau */
.cpdays-table tbody tr:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

/* ===== estat sense dades ===== */

.cpdays-empty {
  padding: 12px 0 4px;
}

.cpdays-empty h3 {
  margin: 0 0 4px;
}

.cpdays-empty p {
  margin: 0 0 4px;
}

.cpdays-empty .cpdays-sub {
  opacity: 0.8;
  font-size: 0.95rem;
}

/* ===== ajustos mòbil ===== */

@media (max-width: 600px) {
  .cpdays-table-wrap {
    padding: 8px 10px;
  }

  .cpdays-table th,
  .cpdays-table td {
    font-size: 0.8rem;
    padding: 4px 6px;
  }
}
