.tab-panel { animation: fadein .15s ease-in; }
@keyframes fadein { from { opacity: 0 } to { opacity: 1 } }

#comboResultados .combo-item {
  cursor: pointer;
  padding: .55rem .75rem;
  border-bottom: 1px solid #e2e8f0;
}
#comboResultados .combo-item:last-child {
  border-bottom: none;
}
#comboResultados .combo-item:hover {
  background: rgba(245, 158, 11, .1);
}
html.dark #comboResultados .combo-item {
  border-bottom-color: #334155;
}

.sensor-row {
  cursor: pointer;
  transition: background-color .15s ease;
}
.sensor-row:hover {
  background: rgba(245, 158, 11, .08);
}

.sensor-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(100, 116, 139, .12);
  color: #64748b;
}
html.dark .sensor-icon {
  background: rgba(148, 163, 184, .12);
  color: #94a3b8;
}

.dia-pronostico {
  min-width: 4.25rem;
}

/* Dashboard visual de mediciones por defecto */
.dash-tile {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem;
  border-radius: .65rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: box-shadow .15s ease;
}
.dash-tile:hover {
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}
html.dark .dash-tile {
  border-color: #334155;
  background: rgba(17, 24, 39, .5);
}

.dash-icon {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, .12);
  color: #f59e0b;
}
html.dark .dash-icon {
  background: rgba(234, 179, 8, .15);
  color: #eab308;
}
.dash-icon-viento svg {
  transition: transform .3s ease;
}

.dash-label {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #64748b;
}
html.dark .dash-label {
  color: #94a3b8;
}
.dash-valor {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
}
.dash-unidad {
  font-size: .7rem;
  font-weight: 400;
  color: #64748b;
  margin-left: .15rem;
}
html.dark .dash-unidad {
  color: #94a3b8;
}
.dash-hora {
  font-size: .65rem;
  color: #94a3b8;
  min-height: .9rem;
}

.dash-alerta-btn {
  position: absolute;
  top: .4rem;
  right: .4rem;
  padding: .25rem;
  border-radius: .375rem;
  color: #cbd5e1;
}
.dash-alerta-btn:hover {
  color: #f59e0b;
  background: rgba(245, 158, 11, .1);
}
html.dark .dash-alerta-btn {
  color: #475569;
}

.rango-btn {
  padding: .4rem .85rem;
  border-radius: 9999px;
  font-size: .75rem;
  font-weight: 500;
  border: 1px solid #e2e8f0;
  background: transparent;
  color: inherit;
}
.rango-btn.activo {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}
html.dark .rango-btn {
  border-color: #334155;
}
html.dark .rango-btn.activo {
  background: #eab308;
  color: #111827;
  border-color: #eab308;
}

.fuente-btn {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 9999px;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .02em;
  border: 1px solid #e2e8f0;
  background: transparent;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}
.fuente-btn.activo {
  background: #f59e0b;
  color: #fff;
  border-color: #f59e0b;
}
html.dark .fuente-btn {
  border-color: #334155;
  color: #94a3b8;
}
html.dark .fuente-btn.activo {
  background: #eab308;
  color: #111827;
  border-color: #eab308;
}

@media print {
  canvas { filter: invert(0) !important; }
}
