/* ========================================================
   abastecimiento.css  —  Módulo Abastecimiento Inteligente
   Scope: #abastecimientoRoot  (no contamina el resto del SPA)
   ======================================================== */

#abastecimientoRoot {
  font-family: inherit;
  color: #1E293B;
}

#abastecimientoRoot .aba-wrap {
  padding: 10px 4px;
  max-width: 100%;
  box-sizing: border-box;
}

/* ── Header ─────────────────────────────────────────────── */
#abastecimientoRoot .aba-title {
  font-size: 20px;
  font-weight: 800;
  color: #1A3C8F;
  margin: 0 0 2px;
}
#abastecimientoRoot .aba-sub {
  font-size: 13px;
  color: #64748B;
  margin: 0 0 14px;
}

/* ── Semáforo cards ──────────────────────────────────────── */
#abastecimientoRoot .aba-semaforo-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
#abastecimientoRoot .aba-sem-card {
  flex: 1;
  min-width: 90px;
  background: #fff;
  border: 2px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, transform .1s;
  user-select: none;
}
#abastecimientoRoot .aba-sem-card:hover {
  border-color: #1A3C8F;
  transform: translateY(-1px);
}
#abastecimientoRoot .aba-sem-card.aba-sem-activo {
  border-width: 3px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
#abastecimientoRoot .aba-sem-num {
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
}
#abastecimientoRoot .aba-sem-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: 3px;
  color: #475569;
}

/* Color variants */
#abastecimientoRoot .aba-sem-rojo     { border-color: #EF4444; }
#abastecimientoRoot .aba-sem-rojo     .aba-sem-num { color: #991B1B; }
#abastecimientoRoot .aba-sem-naranja  { border-color: #F97316; }
#abastecimientoRoot .aba-sem-naranja  .aba-sem-num { color: #9A3412; }
#abastecimientoRoot .aba-sem-amarillo { border-color: #F59E0B; }
#abastecimientoRoot .aba-sem-amarillo .aba-sem-num { color: #854D0E; }
#abastecimientoRoot .aba-sem-verde    { border-color: #22C55E; }
#abastecimientoRoot .aba-sem-verde    .aba-sem-num { color: #166534; }
#abastecimientoRoot .aba-sem-azul     { border-color: #3B82F6; }
#abastecimientoRoot .aba-sem-azul     .aba-sem-num { color: #1E40AF; }

/* ── Badges en tabla ─────────────────────────────────────── */
#abastecimientoRoot .aba-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
#abastecimientoRoot .aba-badge-rojo     { background: #FEE2E2; color: #991B1B; }
#abastecimientoRoot .aba-badge-naranja  { background: #FFEDD5; color: #9A3412; }
#abastecimientoRoot .aba-badge-amarillo { background: #FEF3C7; color: #854D0E; }
#abastecimientoRoot .aba-badge-verde    { background: #DCFCE7; color: #166534; }
#abastecimientoRoot .aba-badge-azul     { background: #DBEAFE; color: #1E40AF; }

/* ── Pill-nav interno ────────────────────────────────────── */
#abastecimientoRoot .aba-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
#abastecimientoRoot .aba-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid #E2E8F0;
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  white-space: nowrap;
}
#abastecimientoRoot .aba-pill:hover {
  border-color: #93A8D2;
  background: #F8FAFC;
}
#abastecimientoRoot .aba-pill.active {
  border-color: #1A3C8F;
  background: #1A3C8F;
  color: #fff;
}
#abastecimientoRoot .aba-pill-badge {
  display: inline-block;
  background: #EF4444;
  color: #fff;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  margin-left: 2px;
}

/* ── Filtros ─────────────────────────────────────────────── */
#abastecimientoRoot .aba-filtros {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-end;
  margin-bottom: 12px;
}
#abastecimientoRoot .aba-fg {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#abastecimientoRoot .aba-fg label {
  font-size: 11px;
  font-weight: 600;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: .3px;
}
#abastecimientoRoot .aba-fg input,
#abastecimientoRoot .aba-fg select {
  height: 34px;
  padding: 0 8px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  color: #1E293B;
  outline: none;
  transition: border-color .15s;
}
#abastecimientoRoot .aba-fg input:focus,
#abastecimientoRoot .aba-fg select:focus {
  border-color: #1A3C8F;
}

/* ── Tabla ───────────────────────────────────────────────── */
#abastecimientoRoot .aba-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid #E2E8F0;
}
#abastecimientoRoot .aba-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
#abastecimientoRoot .aba-table th {
  background: #F1F5F9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}
#abastecimientoRoot .aba-table th:hover { background: #E2E8F0; }
#abastecimientoRoot .aba-table th.sorted-asc::after  { content: ' ▲'; }
#abastecimientoRoot .aba-table th.sorted-desc::after { content: ' ▼'; }
#abastecimientoRoot .aba-table td {
  padding: 7px 10px;
  border-top: 1px solid #F1F5F9;
  vertical-align: middle;
}
#abastecimientoRoot .aba-table tr:hover td { background: #F8FAFC; }
#abastecimientoRoot .aba-table .col-nombre { max-width: 220px; }
#abastecimientoRoot .aba-table .nombre-txt { font-weight: 600; }
#abastecimientoRoot .aba-table .cod-txt    { font-size: 11px; color: #94A3B8; }
#abastecimientoRoot .aba-table .num        { text-align: right; font-variant-numeric: tabular-nums; }
#abastecimientoRoot .aba-table .tendencia-pos { color: #16A34A; font-weight: 700; }
#abastecimientoRoot .aba-table .tendencia-neg { color: #DC2626; font-weight: 700; }
#abastecimientoRoot .aba-table .col-acc { white-space: nowrap; }

/* Filas críticas con fondo sutil */
#abastecimientoRoot .aba-table tr.row-rojo    td:first-child { border-left: 3px solid #EF4444; }
#abastecimientoRoot .aba-table tr.row-naranja td:first-child { border-left: 3px solid #F97316; }
#abastecimientoRoot .aba-table tr.row-amarillo td:first-child { border-left: 3px solid #F59E0B; }

/* ── Botones de acción en tabla ──────────────────────────── */
#abastecimientoRoot .aba-btn-ico {
  background: none;
  border: 1px solid #CBD5E1;
  border-radius: 5px;
  padding: 3px 7px;
  font-size: 13px;
  cursor: pointer;
  color: #475569;
  transition: background .12s, color .12s;
  margin-left: 3px;
}
#abastecimientoRoot .aba-btn-ico:hover { background: #E2E8F0; color: #1E293B; }
#abastecimientoRoot .aba-btn-ico.verde:hover { background: #DCFCE7; color: #166534; border-color: #22C55E; }

/* ── Modal historial de costos ───────────────────────────── */
#abaModalOverlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 2000;
  display: flex; align-items: flex-end; justify-content: center;
}
#abaModalBox {
  background: #fff;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 20px 16px 30px;
  animation: abaSlideUp .25s ease;
}
@keyframes abaSlideUp {
  from { transform: translateY(60px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
#abaModalBox .modal-title {
  font-size: 16px; font-weight: 800; color: #1A3C8F; margin: 0 0 12px;
}
#abaModalBox .modal-close {
  float: right; background: none; border: none; font-size: 20px;
  cursor: pointer; color: #94A3B8; margin-top: -4px;
}

/* ── Cotizador ───────────────────────────────────────────── */
#abastecimientoRoot .aba-cot-staged {
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
#abastecimientoRoot .aba-cot-staged .aba-cot-title {
  font-size: 14px; font-weight: 700; color: #854D0E; margin-bottom: 8px;
}
#abastecimientoRoot .aba-cot-staged .aba-cot-vacio {
  font-size: 13px; color: #92400E; font-style: italic;
}

#abastecimientoRoot .aba-cot-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
#abastecimientoRoot .aba-cot-card .cot-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px;
}
#abastecimientoRoot .aba-cot-card .cot-nombre {
  font-weight: 700; font-size: 14px; color: #1A3C8F;
}
#abastecimientoRoot .aba-cot-card .cot-meta {
  font-size: 12px; color: #64748B;
}

#abastecimientoRoot .aba-cot-estado {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 700;
}
#abastecimientoRoot .estado-BORRADOR   { background: #F1F5F9; color: #475569; }
#abastecimientoRoot .estado-ENVIADA    { background: #DBEAFE; color: #1E40AF; }
#abastecimientoRoot .estado-RESPONDIDA { background: #FEF3C7; color: #854D0E; }
#abastecimientoRoot .estado-CONVERTIDA { background: #DCFCE7; color: #166534; }
#abastecimientoRoot .estado-ANULADA    { background: #FEE2E2; color: #991B1B; }

/* Inline form para respuesta proveedor */
#abastecimientoRoot .aba-resp-form {
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: 8px;
  padding: 10px 12px;
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-end;
}
#abastecimientoRoot .aba-resp-form input {
  height: 30px;
  padding: 0 7px;
  border: 1px solid #CBD5E1;
  border-radius: 5px;
  font-size: 12px;
  width: 130px;
}

/* ── Orden de compra imprimible ───────────────────────────── */
#abastecimientoRoot .aba-oc-group {
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}
#abastecimientoRoot .aba-oc-group .oc-prov-header {
  background: #1A3C8F;
  color: #fff;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 14px;
}

/* ── Loading / empty states ─────────────────────────────── */
#abastecimientoRoot .aba-loading {
  text-align: center; padding: 40px 20px;
  color: #64748B; font-size: 14px;
}
#abastecimientoRoot .aba-empty {
  text-align: center; padding: 30px;
  color: #94A3B8; font-size: 13px;
}

/* ── Dashboard BI ───────────────────────────────────────── */
#abastecimientoRoot .aba-dash-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
#abastecimientoRoot .aba-dash-card {
  flex: 1;
  min-width: 150px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
#abastecimientoRoot .aba-dash-card .dash-val {
  font-size: 24px;
  font-weight: 800;
  color: #1E293B;
}
#abastecimientoRoot .aba-dash-card .dash-label {
  font-size: 11px;
  color: #64748B;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#abastecimientoRoot .aba-dash-card.dash-green  { border-left: 4px solid #22C55E; }
#abastecimientoRoot .aba-dash-card.dash-red    { border-left: 4px solid #EF4444; }
#abastecimientoRoot .aba-dash-card.dash-blue   { border-left: 4px solid #3B82F6; }
#abastecimientoRoot .aba-dash-card.dash-gold   { border-left: 4px solid #F59E0B; }
#abastecimientoRoot .aba-dash-card.dash-yellow { border-left: 4px solid #EAB308; }

/* ABC cards */
#abastecimientoRoot .aba-abc-card {
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  flex: 1;
  min-width: 120px;
}
#abastecimientoRoot .aba-abc-A { background: linear-gradient(135deg, #FEF3C7, #FDE68A); border: 1px solid #F59E0B; }
#abastecimientoRoot .aba-abc-B { background: linear-gradient(135deg, #F1F5F9, #E2E8F0); border: 1px solid #94A3B8; }
#abastecimientoRoot .aba-abc-C { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); border: 1px solid #FB923C; }

/* Health bar */
#abastecimientoRoot .aba-health-bar {
  display: flex;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
}
#abastecimientoRoot .aba-health-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  min-width: 30px;
}

/* Top tables */
#abastecimientoRoot .aba-dash-tables {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 900px) {
  #abastecimientoRoot .aba-dash-tables { grid-template-columns: 1fr; }
}
#abastecimientoRoot .aba-dash-tbl {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  overflow: hidden;
}
#abastecimientoRoot .aba-dash-tbl-title {
  background: #1A3C8F;
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
}
#abastecimientoRoot .aba-dash-tbl table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
#abastecimientoRoot .aba-dash-tbl th {
  background: #F1F5F9;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 6px 8px;
  text-align: left;
}
#abastecimientoRoot .aba-dash-tbl td {
  padding: 6px 8px;
  border-top: 1px solid #F1F5F9;
}
#abastecimientoRoot .aba-dash-tbl tr:hover td { background: #F8FAFC; }

/* Dashboard section title */
#abastecimientoRoot .aba-dash-section {
  font-size: 13px;
  font-weight: 700;
  color: #1A3C8F;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Dashboard fallback message */
#abastecimientoRoot .aba-dash-fallback {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #854D0E;
  margin-bottom: 16px;
}

/* ── Alertas ────────────────────────────────────────────── */
#abastecimientoRoot .aba-alerta-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
#abastecimientoRoot .aba-alerta-card.alerta-critica { border-left: 4px solid #EF4444; }
#abastecimientoRoot .aba-alerta-card.alerta-alta    { border-left: 4px solid #F97316; }
#abastecimientoRoot .aba-alerta-card.alerta-media   { border-left: 4px solid #3B82F6; }
#abastecimientoRoot .aba-alerta-ico { font-size: 24px; flex-shrink: 0; }
#abastecimientoRoot .aba-alerta-body { flex: 1; }
#abastecimientoRoot .aba-alerta-titulo { font-weight: 700; font-size: 13px; color: #1E293B; }
#abastecimientoRoot .aba-alerta-msg { font-size: 12px; color: #64748B; margin-top: 2px; }
#abastecimientoRoot .aba-alerta-accion { font-size: 11px; color: #1A3C8F; font-weight: 600; margin-top: 4px; }

/* ── Simulador ──────────────────────────────────────────── */
#abastecimientoRoot .aba-sim-controls {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}
#abastecimientoRoot .aba-sim-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#abastecimientoRoot .aba-sim-field label {
  font-size: 11px;
  color: #64748B;
  font-weight: 600;
}
#abastecimientoRoot .aba-sim-field input,
#abastecimientoRoot .aba-sim-field select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  font-size: 13px;
}
#abastecimientoRoot .aba-sim-compare {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
#abastecimientoRoot .aba-sim-vs {
  flex: 1;
  min-width: 200px;
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
#abastecimientoRoot .aba-sim-vs .sim-label {
  font-size: 11px;
  color: #64748B;
  text-transform: uppercase;
}
#abastecimientoRoot .aba-sim-vs .sim-val {
  font-size: 22px;
  font-weight: 800;
  margin: 4px 0;
}
#abastecimientoRoot .aba-sim-vs .sim-diff {
  font-size: 13px;
  font-weight: 700;
}
#abastecimientoRoot .sim-diff-pos { color: #EF4444; }
#abastecimientoRoot .sim-diff-neg { color: #22C55E; }

/* ── Action Buttons (professional) ──────────────────────── */
#abastecimientoRoot .aba-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1.5px solid #CBD5E1;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
  white-space: nowrap;
}
#abastecimientoRoot .aba-action-btn:hover {
  border-color: #1A3C8F;
  color: #1A3C8F;
  background: #F8FAFC;
  box-shadow: 0 1px 4px rgba(26,60,143,.10);
}
#abastecimientoRoot .aba-action-btn.aba-action-primary {
  background: #1A3C8F;
  color: #fff;
  border-color: #1A3C8F;
}
#abastecimientoRoot .aba-action-btn.aba-action-primary:hover {
  background: #153278;
  box-shadow: 0 2px 6px rgba(26,60,143,.25);
}

/* ── Help bar & button ──────────────────────────────────── */
#abastecimientoRoot .aba-help-bar {
  margin-bottom: 10px;
}
#abastecimientoRoot .aba-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid #DBEAFE;
  background: #EFF6FF;
  font-size: 12px;
  font-weight: 600;
  color: #1E40AF;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
#abastecimientoRoot .aba-help-btn:hover {
  background: #DBEAFE;
  border-color: #93C5FD;
  box-shadow: 0 1px 4px rgba(30,64,175,.12);
}

/* ── Help modal ─────────────────────────────────────────── */
.aba-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.aba-help-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  animation: abaSlideUp .25s ease;
}
.aba-help-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #E2E8F0;
  font-size: 16px;
  font-weight: 800;
  color: #1A3C8F;
}
.aba-help-header button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #94A3B8;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background .12s;
}
.aba-help-header button:hover {
  background: #F1F5F9;
  color: #1E293B;
}
.aba-help-body {
  padding: 16px 20px 24px;
}
.aba-help-section {
  margin-bottom: 16px;
}
.aba-help-section:last-child {
  margin-bottom: 0;
}
.aba-help-section h4 {
  font-size: 14px;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 6px;
}
.aba-help-section p {
  font-size: 13px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 6px;
}
.aba-help-section ul {
  margin: 4px 0 0;
  padding-left: 20px;
  font-size: 13px;
  color: #475569;
  line-height: 1.7;
}
.aba-help-section li {
  margin-bottom: 2px;
}

/* ── Dashboard interactive cards ────────────────────────── */
#abastecimientoRoot .aba-dash-clickable {
  cursor: pointer;
  transition: all .15s;
  position: relative;
}
#abastecimientoRoot .aba-dash-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
#abastecimientoRoot .aba-dash-clickable:active {
  transform: translateY(0);
}
#abastecimientoRoot .dash-clic-hint {
  font-size: 9px;
  color: #94A3B8;
  margin-top: 4px;
  opacity: 0;
  transition: opacity .15s;
}
#abastecimientoRoot .aba-dash-clickable:hover .dash-clic-hint {
  opacity: 1;
}

/* Dashboard clickable table rows */
#abastecimientoRoot .aba-dash-tbl-row {
  cursor: pointer;
  transition: background .1s;
}
#abastecimientoRoot .aba-dash-tbl-row:hover td {
  background: #EFF6FF !important;
}

/* ── KPI Explanation panel ──────────────────────────────── */
#abastecimientoRoot .aba-dash-explica {
  background: linear-gradient(135deg, #F0F4FF, #E8F0FE);
  border: 1.5px solid #BFDBFE;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  animation: abaSlideDown .2s ease;
}
@keyframes abaSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
#abastecimientoRoot .aba-explica-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 800;
  color: #1A3C8F;
}
#abastecimientoRoot .aba-explica-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (max-width: 700px) {
  #abastecimientoRoot .aba-explica-grid { grid-template-columns: 1fr; }
}
#abastecimientoRoot .aba-explica-item {
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  border: 1px solid #E2E8F0;
}
#abastecimientoRoot .aba-explica-tag {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .4px;
  color: #1A3C8F;
  margin-bottom: 4px;
}
#abastecimientoRoot .aba-explica-item p {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}

/* ── Card activo (alertas filter) ──────────────────────── */
#abastecimientoRoot .aba-card-activo {
  box-shadow: 0 0 0 3px rgba(26,60,143,.25), 0 2px 8px rgba(0,0,0,.1);
  transform: scale(1.03);
  transition: all .15s;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 600px) {
  #abastecimientoRoot .aba-sem-card { min-width: 60px; padding: 8px 4px; }
  #abastecimientoRoot .aba-sem-num  { font-size: 20px; }
  #abastecimientoRoot .aba-filtros  { flex-direction: column; }
  #abastecimientoRoot .aba-fg       { width: 100%; }
  #abastecimientoRoot .aba-fg input,
  #abastecimientoRoot .aba-fg select { width: 100%; box-sizing: border-box; }
}
