:root{
  --bg-delfin: #f3f5f8;

  --surface-delfin: rgba(255,255,255,.90);
  --surface2-delfin: rgba(255,255,255,.72);
  --border-delfin: rgba(0,0,0,.10);
  --border2-delfin: rgba(0,0,0,.08);

  --text-delfin: #111318;
  --muted-delfin: rgba(17,19,24,.62);

  --blue-delfin: #0a84ff;
  --blue-soft-delfin: rgba(10,132,255,.12);

  --green-delfin: #34c759;
  --green-soft-delfin: rgba(52,199,89,.14);

  --amber-delfin: #ff9f0a;
  --amber-soft-delfin: rgba(255,159,10,.16);

  --red-delfin: #ff3b30;
  --red-soft-delfin: rgba(255,59,48,.16);

  --radius-delfin: 18px;
  --radius2-delfin: 14px;

  --focus-ring-delfin: 0 0 0 3px rgba(10,132,255,.20);
}

/* Base */
.table-root-delfin{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  color: var(--text-delfin);
}

/* ✅ Iconos visibles SIEMPRE */
.table-root-delfin i,
.table-root-delfin .bi{
  color: rgba(17,19,24,.82) !important;
}

.table-shell-delfin{
  background: var(--surface-delfin);
  border: 1px solid var(--border-delfin);
  border-radius: var(--radius-delfin);
  overflow: hidden;
}

/* Header */
.table-headerbar-delfin{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 14px 14px 12px 14px;
  border-bottom: 1px solid var(--border-delfin);
}

.header-left-delfin{
  display:flex;
  flex-direction:column;
  gap: 4px;
  min-width: 0;
}

.table-title-delfin{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 1000;
  letter-spacing: -0.03em;
  font-size: 16px;
  line-height: 1.1;
}

.table-title-delfin i{
  color: rgba(10,132,255,.98) !important;
}

.table-subtitle-delfin{
  font-size: 12px;
  color: var(--muted-delfin);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 72ch;
}

.header-right-delfin{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: nowrap;
  justify-content:flex-end;

  background: #919eab33; 
  border: 1px solid rgba(10,132,255,.18);
  border-radius: 999px;
  padding: 7px 8px;
}

.month-pill-delfin{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.month-pill-delfin i{
  color: rgba(10,132,255,.98) !important;
}

.icon-btn-delfin{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.78);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.icon-btn-delfin i{
  font-size: 19px;
  color: rgba(17,19,24,.90) !important;
}

.icon-btn-delfin:hover{
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.icon-btn-delfin:hover > i{
  color: #fff !important;
}
.icon-btn-delfin:active{ transform: translateY(0px) scale(.98); }
.icon-btn-delfin:focus{ outline:none; box-shadow: var(--focus-ring-delfin); }

/* Table */
.table-responsive-delfin{
  width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.table-delfin{
  margin: 0;
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;        
  font-size: 14px;
  padding: 8px 10px 12px 10px;
}

.table-delfin thead th{
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border-delfin);
  color: rgba(17,19,24,.88);
  font-weight: 1000;
  letter-spacing: -0.01em;
  padding: 12px 14px;
  white-space: nowrap;
  font-size: 16px;
}

.table-delfin tbody tr{
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  overflow: hidden;
}

.table-delfin tbody td{
  border-top: 1px solid rgba(0,0,0,.06);
  border-bottom: 1px solid rgba(0,0,0,.06);
  padding: 8px 8px;
  vertical-align: middle;
  background: rgba(255,255,255,.78);
}

.table-delfin tbody td:first-child{
  border-left: 1px solid rgba(0,0,0,.06);
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}

.table-delfin tbody td:last-child{
  border-right: 1px solid rgba(0,0,0,.06);
  border-top-right-radius: 16px;
  border-bottom-right-radius: 16px;
}

.table-delfin tbody tr:hover td{
  background: rgba(10,132,255,.06);
}

/* ========= Chips / Badges ========= */
.badge-base-delfin,
.client-id-badge-delfin,
.badge-cp-delfin,
.badge-remito-delfin{
  width: fit-content !important;
  max-width: 100%;
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.88);
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}

.badge-base-delfin i,
.client-id-badge-delfin i,
.badge-cp-delfin i,
.badge-remito-delfin i{
  color: rgba(17,19,24,.78) !important;
}

/* Estados */
.badge-success-delfin{
  border-color: rgba(52,199,89,.35) !important;
  background: var(--green-soft-delfin) !important;
  color: #0b6b2a !important;
}
.badge-success-delfin i{ color: #0b6b2a !important; }

.badge-amber-delfin{
  border-color: rgba(255,159,10,.35) !important;
  background: var(--amber-soft-delfin) !important;
  color: #7a4a00 !important;
}
.badge-amber-delfin i{ color: #7a4a00 !important; }

.badge-danger-delfin{
  border-color: rgba(255,59,48,.40) !important;
  background: var(--red-soft-delfin) !important;
  color: #7a1310 !important;
}
.badge-danger-delfin i{ color: #7a1310 !important; }

.badge-clickable-delfin{
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.badge-clickable-delfin:hover{ transform: translateY(-1px); filter: brightness(1.02); }
.badge-clickable-delfin:active{ transform: translateY(0px) scale(.98); }

.badge-remito-delfin{
  border-color: rgba(10,132,255,.28) !important;
  background: var(--blue-soft-delfin) !important;
  color: rgba(10,132,255,.98) !important;
}
.badge-remito-delfin i{ color: rgba(10,132,255,.98) !important; }

/* Cliente */
.client-wrap-delfin{
  display:flex;
  flex-direction:column;
  gap: 10px;
  min-width: 220px;
}

.client-name-delfin{
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  max-width: 28ch;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.client-id-badge-delfin{
  font-size: 11px;
  color: rgba(17,19,24,.70) !important;
}

.localidad-wrap-delfin{
  display:flex;
  flex-direction:column;
  gap: 10px;
  min-width: 240px;
}

.localidad-name-delfin{
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 34ch;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.localidad-name-delfin i{
  color: rgba(17,19,24,.70) !important;
}

.badge-cp-delfin{
  font-size: 11px;
  color: rgba(17,19,24,.70) !important;
}

/* Productos */
.products-wrap-delfin{
  display:flex;
  gap: 3px;
  align-items:center;
}

#range-picker-delfin{
    margin-bottom: 0 !important;
}

.cal-day-btn-delfin{
    color: grey;
}

.product-chip-delfin {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    border-radius: 25px;
    border: 1px dashed rgba(0, 0, 0, .10);
    background: rgba(255, 255, 255, .88);
    max-width: 420px;
    width: fit-content;
}

.product-chip-delfin i{
  color: rgba(17,19,24,.70) !important;
}

.product-code-delfin{
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.product-mul-delfin{
  font-weight: 1000;
  color: rgba(17,19,24,.55);
}

/* ✅ Cantidad siempre redonda */
.product-qty-delfin{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: 1000;
  letter-spacing: -0.01em;
  background: rgba(10,132,255,.12);
  border: 1px solid rgba(10,132,255,.24);
  color: rgba(10,132,255,.98) !important;
  line-height: 1;
}

/* Ver más */
.more-btn-delfin{
  border: 1px dashed rgba(10,132,255,.45);
  background: rgba(10,132,255,.10);
  color: rgba(10,132,255,.98) !important;
  font-weight: 1000;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
  white-space: nowrap;
}
.more-btn-delfin > .bi-plus-circle-fill{ color: rgba(0, 77, 154, 0.98) !important; font-size: 18px;}
.more-btn-delfin:hover{ transform: translateY(-1px); filter: brightness(1.02); background-color: rgba(171, 220, 255, 0.98) !important}
.more-btn-delfin:active{ transform: translateY(0px) scale(.98); }

/* Pagination */
.pagination-shell-delfin{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid var(--border-delfin);
  background: rgba(255,255,255,.74);
}

.pagination-note-delfin{
  font-size: 12px;
  color: var(--muted-delfin);
  min-width: 0;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pagination-delfin .page-link{
  border-radius: 999px !important;
  margin: 0 3px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.88);
  color: rgba(17,19,24,.90);
  font-weight: 1000;
  padding: 9px 16px;
}

.pagination-delfin .page-item.active .page-link{
  background: rgba(10,132,255,.14);
  border-color: rgba(10,132,255,.30);
  color: rgba(10,132,255,.98);
}

.pagination-delfin .page-item.disabled .page-link{
  opacity: .55;
}

/* Empty state */
.empty-state-shell-delfin{
  background: rgba(255,255,255,.90);
  border: 1px solid var(--border-delfin);
  border-radius: var(--radius-delfin);
  padding: 26px 18px;
  text-align:center;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap: 12px;
  margin-top: 14px;
}

.empty-title-delfin{
  font-size: 16px;
  font-weight: 1000;
  letter-spacing: -0.02em;
}

.empty-subtitle-delfin{
  font-size: 13px;
  color: var(--muted-delfin);
  max-width: 560px;
}

/* SweetAlert viewer */
.swal-shell-delfin{
  text-align:left;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

.swal-toolbar-delfin{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.swal-toolbar-right-delfin {
    display: flex;
    position: absolute;
    top: 60px;
    margin-left: 10px;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-right: 50px;
    z-index: 1000;
}

.swal-btn-delfin{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.88);
  border-radius: 999px;
  padding: 10px 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}
.swal-btn-delfin i{ color: rgba(17,19,24,.90) !important; }
.swal-btn-delfin:hover{ filter: brightness(1.02); transform: translateY(-1px); }
.swal-btn-delfin:active{ transform: translateY(0px) scale(.98); }

.swal-btn-primary-delfin {
  border-color: rgba(10, 132, 255, .30);
  background: rgb(10 132 255 / 67%);
  color: rgb(255 255 255) !important;
}
.swal-btn-primary-delfin i{ color: rgba(255, 255, 255, 0.98) !important; }

.photo-stage-delfin{
  width: 100%;
  height: min(68vh, 640px);
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.86);
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  position: relative;
}

.photo-img-delfin{
  max-width: none;
  max-height: none;
  user-select:none;
  -webkit-user-drag: none;
  cursor: grab;
  transform-origin: center center;
}

.photo-hint-delfin{
  position:absolute;
  bottom: 10px;
  left: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255, 255, 255, 0.513);
  color: rgba(17,19,24,.62);
  font-size: 12px;
  z-index: 1000;
}

.big-spinner-delfin{
  width: 4.2rem;
  height: 4.2rem;
  border-width: .45rem;
}

/* ✅ Mobile */
@media (max-width: 768px){
  .table-headerbar-delfin{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .header-right-delfin{
    width: 100%;
    justify-content: space-between;
    padding: 9px;
  }

  .table-subtitle-delfin{ max-width: 100%; }

  .table-delfin{
    border-spacing: 0 8px;
    font-size: 14px;
  }

  .badge-base-delfin,
  .client-id-badge-delfin,
  .badge-cp-delfin,
  .badge-remito-delfin{
    padding: 10px 12px;
    font-size: 12px;
  }

  .client-wrap-delfin,
  .localidad-wrap-delfin{
    min-width: 0;
  }

  .product-chip-delfin{
    max-width: 100%;
  }

  .pagination-shell-delfin{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .pagination-note-delfin{
    white-space: normal;
  }

  /* Coffee más compacto en mobile */
  .coffee-delfin{ width: 120px; height: 120px; }
}

/* ✅ Badge Remito (celeste) */
.badge-remito-delfin{
  width: fit-content !important;
  max-width: 100%;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 1000;
  letter-spacing: -0.01em;
  white-space: nowrap;

  /* Celeste */
  background: rgba(10,132,255,.12) !important;
  border: 1px solid rgba(10,132,255,.28) !important;
  color: rgba(10,132,255,.98) !important;
}

.badge-remito-delfin i{
  color: rgba(10,132,255,.98) !important;
}

/* =========================
   Botón eliminar — Delfín (solo esta parte)
   Objetivo: botón rojizo + icono blanco SIEMPRE
   ========================= */

/* Botón */
.btn-delete-remito-delfin{
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(255,59,48,.28) !important;
  background: rgba(255, 58, 48, 0.763) !important; /* rojizo suave */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease, background .12s ease;
}

/* Hover / Active */
.btn-delete-remito-delfin:hover{
  background: rgba(139, 8, 1, 0.553) !important;
  filter: brightness(1.02);
  transform: translateY(-1px);
}
.btn-delete-remito-delfin:active{
  transform: translateY(0px) scale(.98);
  background: rgba(255, 58, 48, 0.723) !important;
}

/* Focus */
.btn-delete-remito-delfin:focus{
  outline: none !important;
}

/* Icono blanco */
.delete-remito-delfin-icon{
  color: #ffffff !important;
  font-size: 18px;
  line-height: 1;
  opacity: .96;
}

/* Si por cascada el icono hereda otro color, lo forzamos más */
.btn-delete-remito-delfin i,
.btn-delete-remito-delfin .bi{
  color: #ffffff !important;
}

.badge-photohint-delfin{
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform .14s ease, filter .14s ease, box-shadow .14s ease, text-decoration-color .14s ease;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255,255,255,.0);
}

.badge-photohint-delfin:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 26px rgba(0,0,0,.12);
  text-decoration-color: rgba(255,255,255,.95);
}

.badge-photohint-icon-delfin{
  opacity: .92;
  margin-left: 2px;
}

.badge-photohint-chevron-delfin{
  opacity: .75;
  margin-left: 2px;
}

@keyframes delfinCamWink{
  0%,100%{ transform: translateY(0); opacity: .92; }
  50%{ transform: translateY(-1px); opacity: 1; }
}
.badge-photohint-delfin:hover .badge-photohint-icon-delfin{
  animation: delfinCamWink .7s ease-in-out infinite;
}

.coffee-gif-wrap-delfin{
  width: 120px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.coffee-gif-delfin{
  width: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.02);
}

@media (max-width: 768px){
  .coffee-gif-wrap-delfin{
    width: 100px;
    border-radius: 20px;
  }
}

/* ===== Spinners (KPI) - Delf ===== */
.remitosInlineSpinnerDelf{
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(10,132,255,.22);
  border-top-color: rgba(10,132,255,.98) !important;
  animation: remitosSpinDelf .75s linear infinite;
  vertical-align: middle;
}

@keyframes remitosSpinDelf{
  to{ transform: rotate(360deg); }
}

/* ===== Chart Spinner (Bootstrap spinner-border) - Delf ===== */
.remitosChartSpinnerBorderDelf{
  color: rgba(10,132,255,.98) !important;
  width: 2.3rem;
  height: 2.3rem;
  border-width: .28rem;
}

/* DASHBOARD DELFIN */
.remitosBtnLightDelf{
  border: 1px solid rgba(0,0,0,.10) !important;
  background: rgba(255,255,255,.78) !important;
  font-weight: 800;
  letter-spacing: -0.01em;
  padding: 8px 12px;
  border-radius: 999px;
  transition: transform .12s ease, filter .12s ease;
}

.remitosBtnLightDelf:hover{
  filter: brightness(1.02);
  background-color: #e2e2e2 !important;
}

.remitosBtnLightDelf:active{
  transform: translateY(0px) scale(.98);
}

.remitosBtnLightDelf:focus{
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(10,132,255,.20) !important;
}

.remitosBtnApplyDelf,
.remitosBtnApplyDelf i{
  color: rgba(10,132,255,.98) !important;
}

.remitosBtnClearDelf,
.remitosBtnClearDelf i{
  color: rgba(255,59,48,.98) !important;
}

.remitosBtnLightDelf:disabled{
  opacity: .55 !important;
  transform: none !important;
  filter: none !important;
}

#remitosDashboardWrapDelf,
#remitosDashboardWrapDelf *{
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600;
}

.remitosPanelDelf{
  width: 100%;
  background: rgba(255,255,255,.90);
  border-radius: 18px;
  overflow: hidden;
}

.remitosPanelTopDelf{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.90);
}

.remitosPanelTitleBoxDelf{
  min-width: 0;
  display:flex;
  flex-direction:column;
  gap: 2px;
}

.remitosPanelTitleDelf{
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  font-size: 13px;
  text-transform: uppercase;
  color: rgba(17,19,24,.92);
}

.remitosPanelTitleDelf i{
  color: rgba(10,132,255,.98) !important;
}

.remitosPanelSubDelf{
  font-size: 12px;
  color: rgba(17,19,24,.62);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
  max-width: 70ch;
}

.remitosPanelControlsDelf{
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

.remitosRangeWrapDelf{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(145,158,171,.12);
}

.remitosRangeWrapDelf i{
  color: rgba(10,132,255,.98) !important;
  font-size: 16px;
}

.remitosRangeInputDelf{
  width: min(360px, 58vw);
  border: none !important;
  outline: none !important;
  background: transparent !important;
  font-size: 13px;
  padding: 0 !important;
  margin: 0 !important;
  font-weight: 600 !important;
  color: rgba(17,19,24,.92);
}

.remitosRangeInputDelf::placeholder{
  color: rgba(17,19,24,.55);
  font-weight: 600 !important;
}

.remitosBtnDelf i{
  margin-right: 6px;
}

.remitosKpisRowDelf{
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,.88);
}

.remitosKpiCardDelf{
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  padding: 10px 10px;
  min-height: 74px; /* compacto */
}

.remitosKpiDangerDelf{
  border-color: rgba(255,59,48,.35);
  background: rgba(255,59,48,.08);
}

.remitosKpiLabelDelf{
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 800 !important;
  text-transform: uppercase;
  font-size: 11px;
  color: rgba(17,19,24,.72);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.remitosKpiLabelDelf i{
  color: rgba(17,19,24,.78) !important;
}

.remitosKpiValueDelf{
  margin-top: 6px;
  font-weight: 800 !important;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: rgba(17,19,24,.92);
  line-height: 1;
}

.remitosKpiHintDelf{
  margin-top: 6px;
  font-size: 11px;
  color: rgba(17,19,24,.60);
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}

.remitosChartBoxDelf{
  border-top: 1px solid rgba(0,0,0,.08);
  padding: 10px 12px 12px 12px;
  background: rgba(255,255,255,.90);
}

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

.remitosChartTitleDelf{
  display:flex;
  align-items:center;
  gap: 8px;
  font-weight: 800 !important;
  text-transform: uppercase;
  font-size: 12px;
  color: rgba(17,19,24,.90);
}

.remitosChartTitleDelf i{
  color: rgba(10,132,255,.98) !important;
}

.remitosLegendDelf{
  display:flex;
  align-items:center;
  gap: 10px;
  font-size: 12px;
  color: rgba(17,19,24,.62);
}

.remitosLegendDotDelf{
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  display:inline-block;
  margin-right: 4px;
}

.remitosLegendGreenDelf{ background: rgba(52,199,89,.85); }
.remitosLegendRedDelf{ background: rgba(255,59,48,.85); }

.remitosChartStageDelf{
  position: relative;
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  background: rgba(255,255,255,.92);
  overflow: hidden;
  padding: 10px;
}

#remitosChartCanvasDelf{
  width: 100% !important;
  height: 220px !important; /* menos alto */
}

.remitosChartNoteDelf{
  margin-top: 8px;
  font-size: 12px;
  color: rgba(17,19,24,.62);
}

.remitosChartSpinnerDelf{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 8px;
  background: rgba(255,255,255,.86);
  z-index: 10;
}

.remitosFaSpinnerDelf{
  font-size: 24px;
  color: rgba(10,132,255,.98) !important;
}

.remitosSpinnerTextDelf{
  font-size: 12px;
  font-weight: 800 !important;
  text-transform: uppercase;
  color: rgba(17,19,24,.70);
}

.remitosChartErrorDelf{
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,59,48,.30);
  background: rgba(255,59,48,.08);
  color: rgba(122,19,16,.92);
  font-size: 12px;
  font-weight: 800 !important;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 992px){
  .remitosKpisRowDelf{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px){
  .remitosPanelTopDelf{
    flex-direction: column;
    align-items: stretch;
  }
  .remitosPanelControlsDelf{ justify-content: stretch; }
  .remitosRangeWrapDelf{ width: 100%; }
  .remitosRangeInputDelf{ width: 100%; }
  .remitosBtnDelf{ width: 100%; }
  .remitosKpisRowDelf{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #remitosChartCanvasDelf{ height: 200px !important; }
}

@media (max-width: 420px){
  .remitosKpisRowDelf{ grid-template-columns: 1fr; }
}
/* FIN DASHBOARD DELFIN */