/* HOY EN ABASTO SELECTO — Slice 1. Estilos aislados del centro operativo diario.
   Mobile-first; usa los tokens existentes del ERP con fallbacks. Sin colores alarmistas:
   la severidad se marca con un borde y una etiqueta, no con bloques gritones. */

#todayPanel {
  margin-bottom: 18px;
}

.today-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 12px;
  margin-bottom: 10px;
}

.today-heading h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.today-heading p {
  margin: 0;
  color: var(--muted, #5f6f68);
  font-size: 0.85rem;
}

.today-asof {
  color: var(--muted, #5f6f68);
  font-size: 0.75rem;
  margin-bottom: 10px;
}

.today-notice {
  border: 1px solid var(--line, rgba(34, 69, 58, 0.16));
  border-radius: 12px;
  padding: 14px 16px;
  background: var(--surface-soft, #f7faf8);
}

.today-notice strong { display: block; margin-bottom: 4px; }
.today-notice p { margin: 0 0 8px; color: var(--muted, #5f6f68); font-size: 0.85rem; }
.today-notice.is-unavailable { border-style: dashed; }
.today-notice.is-clear { border-color: var(--accent, #1f7a5c); }

.today-group { margin-bottom: 14px; min-width: 0; }

.today-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.today-group-heading h3 { margin: 0; font-size: 0.95rem; }
.today-group-heading p { margin: 0; color: var(--muted, #5f6f68); font-size: 0.78rem; }

.today-count {
  min-width: 28px;
  text-align: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 0.8rem;
  border: 1px solid var(--line, rgba(34, 69, 58, 0.16));
}

.today-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.today-card {
  border: 1px solid var(--line, rgba(34, 69, 58, 0.16));
  border-left-width: 4px;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  min-width: 0;
}

.today-card.sev-critical { border-left-color: #b3552e; }
.today-card.sev-attention { border-left-color: #b3872e; }
.today-card.sev-today { border-left-color: var(--accent, #1f7a5c); }
.today-card.sev-info { border-left-color: var(--line, rgba(34, 69, 58, 0.3)); }

.today-card h4 { margin: 6px 0 2px; font-size: 0.95rem; }
.today-card p { margin: 0; font-size: 0.84rem; color: var(--muted, #4c5a54); overflow-wrap: anywhere; }

.today-card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.72rem;
}

.today-sev,
.today-role {
  border: 1px solid var(--line, rgba(34, 69, 58, 0.16));
  border-radius: 999px;
  padding: 1px 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.today-when { color: var(--muted, #5f6f68); margin-left: auto; }

.today-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  min-width: 0;
}

.today-card-actions small {
  color: var(--muted, #7a8781);
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.today-card-actions .small-button {
  flex-shrink: 0;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
}

.today-card-actions .small-button:focus-visible,
.today-notice button:focus-visible {
  outline: 2px solid var(--accent, #1f7a5c);
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .today-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  .today-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
