/* JDServer-Webs v6.12 — climate_pro_uv_monthly.css
 * Índice UV mensual (año seleccionado)
 * FIX: tokens auto/claro/oscuro + iOS/Safari text-fill + select + th/td seguros
 */

#climate-pro-uv-monthly{
  max-width: 1120px;
  margin: 18px auto 64px;

  color: var(--text, inherit);
  -webkit-text-fill-color: var(--text, currentColor);
  color-scheme: light dark;
}

#climate-pro-uv-monthly .cp-uvm-card{
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 18px;
  padding: 14px 18px 18px;
  box-shadow: var(--shadow-1);

  /* base text: evita herencias raras en auto */
  color: var(--text, inherit);
  -webkit-text-fill-color: var(--text, currentColor);
  color-scheme: light dark;
}

#climate-pro-uv-monthly .cp-uvm-head{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:10px 16px;
  margin-bottom:10px;
}

#climate-pro-uv-monthly .cp-uvm-title{
  margin:0;
  font-size:1.05rem;
  font-weight:600;
  color: var(--text, inherit);
}

#climate-pro-uv-monthly .cp-uvm-sub{
  margin:3px 0 0;
  color:var(--muted);
  font-size:.88rem;
}

#climate-pro-uv-monthly .cp-uvm-controls{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:.86rem;
}

#climate-pro-uv-monthly .cp-uvm-label{
  color:var(--muted);
}

/* FIX iOS/Safari/Android: select legible en auto/oscuro */
#climate-pro-uv-monthly .cp-uvm-controls select{
  border-radius:999px;
  padding:4px 10px;
  border:1px solid var(--border);
  background:var(--card);
  font-size:.9rem;

  color: var(--text, inherit);
  -webkit-text-fill-color: var(--text, currentColor);
  color-scheme: light dark;
  appearance: auto;
}
#climate-pro-uv-monthly .cp-uvm-controls select option{
  background: var(--card);
  color: var(--text, inherit);
}

#climate-pro-uv-monthly .cp-uvm-table-wrap{
  margin-top: 10px;
  overflow-x:auto;
  -webkit-overflow-scrolling: touch;
}

#climate-pro-uv-monthly .cp-uvm-table{
  width:100%;
  border-collapse:collapse;
  font-size:.88rem;
  min-width:520px;

  /* base por si Safari decide ignorar herencias */
  color: var(--text, inherit);
}

#climate-pro-uv-monthly .cp-uvm-table thead th{
  text-align:left;
  padding:6px 8px;
  border-bottom:1px solid var(--border);
  font-weight:600;
  white-space:nowrap;
  color: var(--text, inherit);
}

#climate-pro-uv-monthly .cp-uvm-table tbody td{
  padding:6px 8px;
  border-bottom:1px solid color-mix(in oklab, var(--border) 60%, transparent);
  vertical-align:middle;
  text-align:right;
  color: var(--text, inherit);
}

#climate-pro-uv-monthly .cp-uvm-table tbody td:first-child{
  text-align:left;
}

#climate-pro-uv-monthly .cp-uvm-month{
  font-weight:500;
  color: var(--text, inherit);
}

#climate-pro-uv-monthly .cp-uvm-empty{
  margin-top: 8px;
  font-size:.9rem;
  color:var(--muted);
}

/* Responsive */
@media (max-width: 640px){
  #climate-pro-uv-monthly{
    margin: 16px 0 40px;
  }

  #climate-pro-uv-monthly .cp-uvm-card{
    padding: 14px 12px 18px;
  }

  #climate-pro-uv-monthly .cp-uvm-table{
    min-width:100%;
    font-size:.84rem;
  }

  #climate-pro-uv-monthly .cp-uvm-table thead th{
    white-space:normal;
    line-height:1.15;
    padding:4px 6px;
    font-size:.78rem;
  }

  #climate-pro-uv-monthly .cp-uvm-table tbody td{
    padding:4px 6px;
    font-size:.82rem;
  }

  #climate-pro-uv-monthly .cp-uvm-controls{
    width:100%;
    justify-content:flex-start;
  }
}
