/**
 * Entrega de dotación — complementos (layout en entregas_epp.css)
 * Convención: colores solo en hexadecimal (#RRGGBB); tipografía en px (no rem/em).
 */
.edd-lookup-feedback {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 18px;
  box-sizing: border-box;
}

.edd-lookup-feedback--ok {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.edd-lookup-feedback--err {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.edd-save-feedback {
  margin: 0 0 12px 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  box-sizing: border-box;
}

.edd-save-feedback--toast {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1200;
  margin: 0;
  min-width: 260px;
  max-width: min(420px, calc(100vw - 24px));
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.edd-save-feedback--hide {
  opacity: 0;
  transform: translateX(10px);
}

.edd-save-feedback--ok {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.edd-save-feedback--err {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.edd-empresa-inline {
  width: auto;
  display: inline-block;
  min-width: 220px;
  max-width: 100%;
  min-height: 34px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 14px;
  line-height: 20px;
  color: #4b5563;
  background: #ffffff;
}

.edd-form-dotacion {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* ── Wizard paso a paso (como registro de formación / beneficios) ── */
.edd-wizard-page .wizard-step,
#sec_home.edd-wizard-host .wizard-step {
  display: none;
  overflow: hidden;
  transition: opacity 0.35s ease, transform 0.35s ease;
  position: relative;
}

.edd-wizard-page .wizard-step-active,
.edd-wizard-page .wizard-step-done,
#sec_home.edd-wizard-host .wizard-step-active,
#sec_home.edd-wizard-host .wizard-step-done {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.edd-wizard-page .wizard-step-locked,
#sec_home.edd-wizard-host .wizard-step-locked {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.edd-wizard-page .wizard-step-done .step-header,
.edd-wizard-page .wizard-step-done .step-tip {
  display: none;
}

/* Paso 1 completado: mantener buscador y tarjeta del empleado visibles */
#edd_step1.wizard-step-done .ent-employee-result {
  margin-bottom: 12px;
}

.edd-wizard-page .step-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 10px;
}

.edd-wizard-page .step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2f6fe4;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.edd-wizard-page .step-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  animation: eddStepTipPulse 0.5s ease;
}

.edd-wizard-page .step-tip .fa-circle-info,
.edd-wizard-page .step-tip .fa-circle-check {
  margin-top: 1px;
  flex-shrink: 0;
}

.edd-wizard-page .step-tip--warn {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.edd-wizard-page .ent-search-input:disabled,
.edd-wizard-page .ent-search-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.edd-wizard-page .step-tip-success {
  color: #166534;
  background: #dcfce7;
  border-color: #86efac;
}

.edd-wizard-page .wizard-step-done + .wizard-step-active {
  border-top: 1px solid #e5e7eb;
  padding-top: 14px;
  margin-top: 4px;
}

@keyframes eddStepTipPulse {
  0% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}

.edd-tipo-entrega {
  margin-bottom: 14px;
}

.edd-tipo-entrega__label {
  display: block;
  margin: 0 0 6px 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #374151;
}

/* Período de entrega solo lectura (sin desplegable) */
.edd-periodo-text {
  margin: 6px 0 0 0;
  padding: 10px 12px;
  border: 1px solid #e2e4e9;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 14px;
  line-height: 1.45;
  color: #1a1f2c;
}

.edd-periodo-text--muted {
  color: #64748b;
  background: #f1f5f9;
}

/* Sin período vigente: solo texto, sin caja */
.edd-periodo-text--sin {
  margin: 6px 0 0 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: #64748b;
}

.edd-tipo-entrega__select {
  width: 100%;
  max-width: 100%;
  min-height: 34px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  line-height: 20px;
  color: #4b5563;
  background: #ffffff;
}

.edd-tipo-entrega__select:focus {
  outline: none;
  border-color: #e94035;
  box-shadow: 0 0 0 2px #3b82f633;
}

.edd-dotacion-manual {
  margin: 0 0 14px 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: none;
  width: 100%;
}

.edd-dotacion-manual__titulo {
  margin: 0 0 12px 0;
  padding: 0;
  border: none;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: #111827;
}

.edd-dotacion-manual .edd-cant-grid,
.edd-dotacion-manual .edd-tallas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.edd-dotacion-manual .edd-tallas-grid {
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
}

.edd-dotacion-manual .edd-cant-fila,
.edd-dotacion-manual .edd-tallas-grid .edd-cant-fila {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 6px;
}

.edd-dotacion-manual .edd-cant-fila label,
.edd-dotacion-manual .edd-tallas-grid .edd-cant-fila label {
  flex: none;
  width: 100%;
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: #111827;
  white-space: normal;
}

.edd-dotacion-manual .edd-cant-input {
  width: 100%;
  max-width: 100%;
  min-height: 34px;
  border-radius: 8px;
  font-size: 14px;
  text-align: left;
  padding: 0 12px;
}

.edd-dotacion-manual .edd-tallas-grid .edd-tipo-entrega__select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 34px;
  border-radius: 8px;
  font-size: 14px;
  padding: 0 12px;
}

.edd-cant-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.edd-cant-fila {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.edd-cant-fila label {
  font-size: 14px;
  line-height: 20px;
  color: #374151;
  flex: 1;
}

.edd-cant-input {
  width: 72px;
  min-height: 34px;
  box-sizing: border-box;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 14px;
  text-align: center;
  color: #4b5563;
  background: #ffffff;
}

.edd-tallas-grid {
  margin-top: 12px;
}

.edd-tallas-grid .edd-cant-fila {
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 14px;
}

.edd-tallas-grid .edd-cant-fila label {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  font-weight: 700;
  color: #111827;
}

.edd-tallas-grid .edd-tipo-entrega__select {
  flex: 0 0 auto;
  width: 96px;
  min-width: 96px;
  max-width: 96px;
  padding: 0 8px;
}

.edd-cant-input:focus {
  outline: none;
  border-color: #e94035;
  box-shadow: 0 0 0 2px #3b82f633;
}

.edd-informe-admin__titulo {
  margin: 14px 0 8px 0;
  font-size: 15px;
  line-height: 22px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0056b3;
}

.edd-informe-admin__texto {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 22px;
  color: #374151;
}

/* Detalle de dotación: inmediatamente después de “…la siguiente dotación:” */
.edd-lista-entrega__placeholder {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  font-style: italic;
  color: #9ca3af;
}

.edd-lista-entrega {
  margin: 4px 0 0 0;
}

.edd-lista-entrega__lista {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 24px;
  color: #1f2937;
}

.edd-informe-admin__legal-bloque {
  margin-top: 16px;
}

.edd-informe-admin__legal-bloque p {
  margin: 0 0 12px 0;
  font-size: 14px;
  line-height: 22px;
  color: #374151;
}

.edd-informe-admin__legal-bloque p:last-child {
  margin-bottom: 0;
}

/* Conforme + firma (misma firma que entregas EPP: clases .ent-firma-*) */
.edd-form-dotacion {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.edd-conforme-bloque {
  margin: 0 0 16px 0;
  padding: 0;
  border: none;
  background: transparent;
}

.edd-conforme-leyenda {
  margin: 0 0 8px 0;
  padding: 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #374151;
}

.edd-conforme-radios {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.edd-conforme-opcion {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 20px;
  color: #374151;
  cursor: pointer;
}

.edd-conforme-opcion input {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: #2f6fe4;
}

.edd-conforme-motivo {
  margin-top: 10px;
}

.edd-conforme-motivo__label {
  display: block;
  margin: 0 0 6px 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: #374151;
}

.edd-conforme-motivo__textarea {
  width: 100%;
  min-height: 68px;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #111827;
  font-size: 14px;
  line-height: 20px;
  resize: vertical;
}

@media (max-width: 900px) {
  #adminLayout.admin-layout {
    max-width: none !important;
    width: 100% !important;
    padding: 10px !important;
  }

  #adminLayout .admin-main {
    width: 100% !important;
  }

  #adminLayout #sec_home.section.demo-section,
  #adminLayout .demo-section,
  .section.demo-section {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  .ent-search-row {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .ent-search-input,
  .ent-search-btn {
    width: 100% !important;
  }

  .edd-dotacion-manual .edd-cant-grid,
  .edd-dotacion-manual .edd-tallas-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .edd-save-feedback--toast {
    left: 12px;
    right: 12px;
    top: 12px;
    max-width: none;
    min-width: 0;
  }
}

.edd-msg-inline {
  margin: 0 0 12px 0;
  font-size: 13px;
}

.edd-entrega-bar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 12px;
  margin: 0 0 14px 0;
}

.edd-entrega-bar__status {
  flex: 0 1 auto;
  min-width: 0;
}

.edd-entrega-bar__actions {
  flex: 0 0 auto;
  flex-shrink: 0;
  margin-left: auto;
}

.edd-entrega-bar__status .edd-entrega-vigente,
.edd-entrega-bar__status .edd-msg-inline {
  margin: 0;
}

.edd-entrega-bar__status .edd-entrega-vigente {
  width: auto;
  max-width: 100%;
}

.edd-btn-create-entrega {
  min-height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 6px;
  background: #2f6fe4;
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.edd-btn-create-entrega:hover {
  background: #255fc7;
}

.edd-entrega-vigente {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 0;
  max-width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 13px;
  color: #1e3a8a;
}

.edd-entrega-vigente-nombre {
  font-weight: 600;
}

.edd-entrega-vigente-prep {
  font-size: 12px;
  color: #374151;
}

.edd-entrega-field-help {
  width: 100%;
  margin: 4px 0 0 0;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.4;
}

/* Modal entrega dotación — layout práctico */
.edd-entrega-modal.crev-modal {
  max-width: min(680px, 100%);
}

.edd-entrega-modal__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px;
}

.edd-entrega-modal__section-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.edd-entrega-modal__form {
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
}

.edd-entrega-modal__hint {
  margin: 6px 0 12px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.45;
}

.edd-entrega-modal__field-nombre {
  margin-bottom: 10px;
}

.edd-entrega-modal__dates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.edd-entrega-modal__dates .crev-field {
  margin-bottom: 0;
}

.edd-entrega-modal__list-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
}

.edd-entrega-modal__list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
}

.edd-entrega-modal__list-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
}

.edd-entrega-modal__list {
  max-height: min(220px, 38dvh);
  overflow-y: auto;
  padding: 4px 8px;
}

.edd-entrega-modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px 14px;
  grid-template-columns: none;
}

.edd-entrega-modal__footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.edd-entrega-modal__footer .crev-btn-primary,
.edd-entrega-modal__footer .crev-btn-secondary,
.edd-entrega-modal__footer .crev-btn-outline {
  min-width: 120px;
}

.edd-ent-admin-empty {
  margin: 10px 4px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.45;
}

.edd-ent-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 10px 6px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 12px;
}

.edd-ent-item:last-child {
  border-bottom: none;
}

.edd-ent-item.is-finalizada {
  opacity: 0.78;
}

.edd-ent-item.is-editing {
  background: #eff6ff;
  border-radius: 8px;
  border-bottom-color: transparent;
  box-shadow: inset 0 0 0 1px #bfdbfe;
}

.edd-ent-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.edd-ent-item-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.edd-ent-item-nombre {
  font-size: 13px;
  color: #111827;
}

.edd-ent-item-rango {
  color: #6b7280;
  font-size: 12px;
}

.edd-ent-item-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.edd-ent-item-badge--vigente {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.edd-ent-item-badge--programada {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}

.edd-ent-item-badge--finalizada {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #6b7280;
}

.edd-ent-item-badge--articulo {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}

.edd-ent-item-badge--pendiente {
  background: #fef3c7;
  border: 1px solid #fcd34d;
  color: #92400e;
}

.edd-ent-item-periodo-msg {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: #6b7280;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edd-ent-item-periodo-msg--warn {
  color: #92400e;
}

.edd-ent-item-icon--finalize {
  color: #166534;
  border-color: #86efac;
}

.edd-ent-item-icon--finalize:hover,
.edd-ent-item-icon--finalize:focus-visible {
  background: #dcfce7;
  border-color: #86efac;
}

.edd-step-continue-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.edd-btn--continue {
  min-height: 34px;
  padding: 0 24px;
  border: 0;
  border-radius: 8px;
  background: #2f6fe4;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.edd-btn--continue:hover:not(:disabled) {
  background: #255fc7;
}

.edd-btn--continue:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.edd-step-continue-wrap[hidden] {
  display: none !important;
}

.edd-dotacion-manual__hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: #6b7280;
  line-height: 1.45;
}

.edd-articulo-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.edd-articulo-picker__label {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.edd-articulo-picker__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px 10px;
}

.edd-articulo-picker__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.edd-articulo-picker__field--talla {
  flex: 1 1 160px;
  min-width: 140px;
}

.edd-articulo-picker__field--qty {
  flex: 0 1 96px;
  min-width: 88px;
}

.edd-articulo-picker__field--add {
  flex: 0 0 auto;
}

.edd-articulo-picker__label--spacer {
  visibility: hidden;
  user-select: none;
}

.edd-articulo-picker__talla-select,
.edd-articulo-picker__qty-input {
  width: 100%;
  min-height: 34px;
  box-sizing: border-box;
}

.edd-articulo-picker__actions[hidden],
.edd-articulo-picker__field--talla[hidden],
.edd-articulo-picker__field--qty[hidden],
.edd-articulo-picker__field--add[hidden] {
  display: none !important;
}

.edd-articulo-picker__talla-select.is-invalid,
.edd-articulo-picker__field--talla.is-invalid .edd-articulo-picker__talla-select {
  border-color: #e94035;
}

.edd-articulo-picker__ac {
  position: relative;
}

.edd-articulo-picker__input {
  width: 100%;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  box-sizing: border-box;
}

.edd-articulo-picker__input.is-loading {
  background-image: linear-gradient(90deg, #f3f4f6 0%, #ffffff 50%, #f3f4f6 100%);
  background-size: 200% 100%;
  animation: edd-articulo-picker-loading 1.1s ease-in-out infinite;
}

@keyframes edd-articulo-picker-loading {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

#edd_step2.wizard-step-active {
  overflow: visible;
}

.edd-articulo-picker__suggestions {
  position: absolute;
  bottom: calc(100% + 6px);
  top: auto;
  left: 0;
  right: 0;
  z-index: 40;
  max-height: 228px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 -10px 22px rgba(17, 24, 39, 0.14);
  padding: 6px;
}

.edd-articulo-picker__suggestion-btn {
  width: 100%;
  border: 0;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  border-radius: 8px;
  padding: 8px 10px;
  display: block;
}

.edd-articulo-picker__suggestion-btn:hover,
.edd-articulo-picker__suggestion-btn.is-active,
.edd-articulo-picker__suggestion-btn:focus-visible {
  background: #eff6ff;
  outline: none;
}

.edd-articulo-picker__suggestion-code {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
}

.edd-articulo-picker__suggestion-name {
  display: block;
  font-size: 13px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.edd-articulo-picker__suggestion-empty {
  padding: 10px;
  color: #6b7280;
  font-size: 12px;
}

.edd-articulo-picker__add {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: #2f6fe4;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.edd-articulo-picker__add:hover {
  background: #255fc7;
}

.edd-articulo-lineas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.edd-articulo-lineas__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 13px;
}

.edd-articulo-lineas__qty {
  color: #166534;
  font-weight: 700;
}

.edd-articulo-lineas__remove {
  width: 28px;
  height: 28px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #ffffff;
  color: #991b1b;
  cursor: pointer;
}

.edd-articulo-lineas-empty {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.edd-ent-item-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.edd-ent-item-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.edd-ent-item-icon--items {
  position: relative;
  min-width: 42px;
  color: #1e3a8a;
  border-color: #bfdbfe;
}

.edd-ent-item-icon--items:hover,
.edd-ent-item-icon--items:focus-visible,
.edd-ent-item-icon--items.is-open {
  background: #eff6ff;
  border-color: #93c5fd;
}

.edd-ent-item-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #2f6fe4;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}

.edd-ent-item-items {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #f9fafb;
}

.edd-ent-item-items-head {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #111827;
}

.edd-ent-item-items-empty {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.edd-ent-item-items-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.edd-ent-item-items-list li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  font-size: 12px;
  color: #374151;
}

.edd-ent-item-items-code {
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.edd-ent-item-items-name {
  min-width: 0;
  word-break: break-word;
}

.edd-ent-item-items-qty {
  font-weight: 700;
  color: #166534;
  white-space: nowrap;
}

.edd-ent-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #ffffff;
  color: #2f6fe4;
  cursor: pointer;
  box-sizing: border-box;
}

.edd-ent-item-icon:hover,
.edd-ent-item-icon:focus-visible {
  background: #eff6ff;
  border-color: #bfdbfe;
  outline: none;
}

.edd-ent-item-icon--danger {
  color: #991b1b;
  border-color: #fecaca;
}

.edd-ent-item-icon--danger:hover,
.edd-ent-item-icon--danger:focus-visible {
  background: #fee2e2;
  border-color: #fecaca;
}

.edd-ent-item-icon:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

/* Modal entrega dotación (misma convención que inspección EPP) */
.crev-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  z-index: 10003;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.crev-modal-overlay.is-open {
  display: flex;
}

.crev-modal {
  background: #ffffff;
  border-radius: 12px;
  max-width: min(480px, 100%);
  width: 100%;
  max-height: min(92dvh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.18);
}

.crev-modal form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.crev-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #ffffff;
  flex-shrink: 0;
}

.crev-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.crev-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  min-width: 34px;
  height: 34px;
  min-height: 34px;
  padding: 0;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  color: #374151;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
}

.crev-modal-close:hover,
.crev-modal-close:focus-visible {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #111827;
  outline: none;
}

.crev-modal-body {
  padding: 14px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.crev-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin-bottom: 12px;
}

.crev-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.crev-field-row .crev-field {
  margin-bottom: 0;
}

.crev-field label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  line-height: 1.3;
}

.crev-field input[type="text"],
.crev-field input[type="date"] {
  width: 100%;
  box-sizing: border-box;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  background-color: #ffffff;
  color: #111827;
  min-height: 34px;
  padding: 6px 10px;
  font-size: 14px;
  font-family: "Roboto", sans-serif;
}

.crev-field input:focus {
  outline: none;
  border-color: #2f6fe4;
  box-shadow: 0 0 0 2px rgba(47, 111, 228, 0.18);
}

.crev-req {
  color: #e94035;
  font-weight: 700;
}

.crev-modal-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 12px 14px 14px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  flex-shrink: 0;
}

.crev-modal-footer .crev-btn-primary {
  grid-column: 1 / -1;
}

.crev-modal-footer .crev-btn-secondary:only-of-type {
  grid-column: 1 / -1;
}

.crev-btn-primary,
.crev-btn-secondary,
.crev-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: "Roboto", sans-serif;
  cursor: pointer;
  box-sizing: border-box;
  border: none;
  text-decoration: none;
}

.crev-btn-primary {
  background: #74c69d;
  color: #111827;
}

.crev-btn-primary:hover,
.crev-btn-primary:focus-visible {
  background: #52b788;
  outline: none;
}

.crev-btn-secondary {
  background: #6b7280;
  color: #ffffff;
}

.crev-btn-secondary:hover,
.crev-btn-secondary:focus-visible {
  background: #4b5563;
  outline: none;
}

.crev-btn-outline {
  background: #ffffff;
  color: #2f6fe4;
  border: 1px solid #2f6fe4;
}

.crev-btn-outline:hover,
.crev-btn-outline:focus-visible {
  background: #eff6ff;
  outline: none;
}

@media (max-width: 520px) {
  .crev-modal-overlay {
    padding: 8px;
  }

  .crev-modal {
    max-width: 100%;
    max-height: min(94dvh, 640px);
  }
}

@media (max-width: 400px) {
  .crev-modal-overlay {
    padding: 10px;
  }

  .crev-field-row,
  .edd-entrega-modal__dates {
    grid-template-columns: 1fr;
  }

  .edd-entrega-modal__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .edd-entrega-modal__footer-actions {
    width: 100%;
    flex-direction: column;
  }

  .edd-entrega-modal__footer .crev-btn-primary,
  .edd-entrega-modal__footer .crev-btn-secondary,
  .edd-entrega-modal__footer .crev-btn-outline {
    width: 100%;
    min-width: 0;
  }

  .crev-modal-footer:not(.edd-entrega-modal__footer) {
    grid-template-columns: 1fr;
  }
}
