/* KOVRA — panel de alertas compacto y condicional.
   Solo presentación: no modifica cálculos, pagos ni lógica de cobranza. */

/* El aviso explicativo y el estado vacío ya no ocupan espacio. */
.info-banner,
#emptyState{
  display:none !important;
}

.alerts-panel{
  width:100%;
  margin:0 0 9px;
  overflow:hidden;
  border:1px solid var(--theme-border);
  border-radius:13px;
  background:var(--theme-surface);
  box-shadow:0 10px 24px rgba(0,0,0,.14);
}

.alerts-panel[hidden]{
  display:none !important;
}

.alerts-panel > summary{
  min-height:42px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  list-style:none;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
}

.alerts-panel > summary::-webkit-details-marker{
  display:none;
}

.alerts-panel-title{
  color:var(--theme-text);
  font-size:12.5px;
  line-height:1.1;
  font-weight:850;
  letter-spacing:.01em;
}

.alerts-panel-count{
  min-width:24px;
  height:24px;
  display:grid;
  place-items:center;
  padding:0 6px;
  border-radius:999px;
  background:var(--theme-accent-soft);
  color:var(--theme-accent);
  font-size:12px;
  line-height:1;
  font-weight:900;
}

.alerts-panel-chevron{
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
  color:var(--theme-muted);
  font-size:15px;
  line-height:1;
  transition:transform .16s ease,color .16s ease;
}

.alerts-panel[open] .alerts-panel-chevron{
  transform:rotate(180deg);
  color:var(--theme-accent);
}

.alerts-panel[open] > summary{
  border-bottom:1px solid var(--theme-border);
  background:var(--theme-surface-2);
}

.alerts-panel-body{
  padding:7px 8px 8px;
}

.alerts-panel .filters{
  margin:0 0 7px !important;
  gap:4px !important;
}

.alerts-panel .filter{
  min-height:32px !important;
}

.alerts-panel .alert-list{
  gap:6px !important;
}

@media(max-width:520px){
  .alerts-panel{
    margin-bottom:8px;
    border-radius:12px;
  }
  .alerts-panel > summary{
    min-height:40px;
    padding:7px 9px;
  }
  .alerts-panel-title{
    font-size:12px;
  }
  .alerts-panel-body{
    padding:6px 7px 7px;
  }
}
