/* --- MODAL IMPORTACION & AUTOMATA --- */
.modal-shell-nv-e3 {
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 16px;
  backdrop-filter: saturate(180%) blur(14px);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(245,245,247,0.95));
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  overflow: hidden;
}
.modal-header-nv-e3 {
  align-items: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(250,250,252,0.7));
}
.title-wrap-nv-e3 { display:flex; align-items:center; gap:10px; font-weight:600; }
.robot-title-nv-e3 { font-size: 28px; color: #00a83e; }
.close-nv-e3 { opacity: .7; }
.close-nv-e3:hover { opacity: 1; }

.modal-body-nv-e3 { padding: 18px; }
.section-header-nv-e3 { font-weight: 600; display:flex; align-items:center; gap:6px; color:#1d1d1f; margin-bottom: 10px; }

/* Info rules + botón sutil */
.info-rules-nv-e3 { margin-bottom: 10px; }
.btn-link-nv-e3 { font-weight: 600; }
.btn-link-nv-e3:hover { text-decoration: underline; }

/* Spinner */
.spinner-wrap-nv-e3 { display:flex; align-items:center; justify-content:center; padding: 16px; }
.spinner-border-nv-e3 { width: 3.5rem; height: 3.5rem; }

/* Empty state */
.empty-wrap-nv-e3 {
  text-align:center; padding: 24px; color:#6b7280;
  border-radius:12px; background: rgba(255,255,255,0.6);
  border:1px dashed rgba(0,0,0,0.08);
}
.empty-wrap-nv-e3 i { font-size:28px; display:block; margin-bottom:8px; }

/* Grid */
.grid-nv-e3 { margin-top:10px; display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:12px; }
@media (max-width: 576px){ .grid-nv-e3 { grid-template-columns: 1fr; } }

/* Tarjeta de estado */
.card-estado-nv-e3 {
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  padding: 18px 14px 16px;
}
.card-estado-nv-e3:hover {
  transform: translateY(-1px);
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12), 0 12px 28px rgba(0,0,0,0.08);
  cursor: pointer;
}

/* Botón borrar (x) muy sutil en el borde superior izquierdo */
.delete-estado-nv-e3 {
  position: absolute; top: 8px; left: 10px;
  border: none; background: transparent; padding: 2px 4px;
  color: #6b7280; opacity: .55; line-height: 1;
}
.delete-estado-nv-e3:hover { opacity: .9; color: #ef4444; background-color: hsl(9, 100%, 85%)}

/* Checkbox centrado arriba (sin label visible) */
.card-top-nv-e3 { display:flex; align-items:center; justify-content:center; margin-bottom: 8px; }
.check-wrap-nv-e3 .form-check { display:flex; align-items:center; gap:8px; margin:0; }
.check-wrap-nv-e3 .form-check-label { display:none; }

/* NroEstado pill: rojo, blanco, bold, top-right */
.nroestado-pill-nv-e3 {
  position:absolute; top:8px; right:10px;
  font-size: 14px; font-weight:700;
  padding: 4px 10px; border-radius: 999px;
  background:#dc3545; color:#fff;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.18), 0 1px 2px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.08);
}

/* Nombre centrado y grande con icono adentro */
.nombre-wrap-nv-e3 { text-align:center; display:flex; flex-direction:column; align-items:center; gap:6px; margin-top: 4px; }
.nombre-badge-nv-e3 {
  font-size: 17px; font-weight:700;
  padding: 6px 14px; border-radius: 12px;
  background:#eef2ff; color:#4338ca;
  text-transform: capitalize;
  display: inline-flex; align-items:center; gap:8px;
}
.nombre-badge-nv-e3 i { font-size:16px; color:#4b5563; }

/* Pill de estado debajo (verde/rojo) */
.estado-pill-nv-e3 { margin-top: 6px; font-size: 13px; font-weight:700; padding: 4px 12px; border-radius: 999px; display:inline-block; user-select:none; }
.estado-on-nv-e3  { background:#28a745; color:#fff; }
.estado-off-nv-e3 { background:#dc3545; color:#fff; }

/* Acciones */
.actions-nv-e3 { display:flex; justify-content:flex-start; margin-top: 14px; }
.btn-new-nv-e3 { border-radius: 10px; box-shadow: 0 6px 16px rgba(0,168,62,0.18); }

/* Footer */
.modal-footer-nv-e3 { border-top: 1px solid rgba(0,0,0,0.06); }

/* Feedback guardado */
.saved-pulse-nv-e3 { animation: pulse-nv-e3 .8s ease; }
@keyframes pulse-nv-e3 {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.45); }
  100% { box-shadow: 0 0 0 12px rgba(16,185,129,0); }
}

/* ---- SweetAlert2 tuneo ---- */
.swal-title-nv-e3 { font-weight: 700; }
.swal-actions-nv-e3 { display:flex !important; gap: 8px; justify-content:center; }
.swal-actions-nv-e3 .swal2-confirm, .swal-actions-nv-e3 .swal2-cancel { min-width: 120px; }
.swal-input-nv-e3 { max-width: 220px; margin: 0 auto !important; text-align: center; }
.swal-form-nv-e3 .form-control.swal-input-nv-e3 { max-width: 260px; }

/* ===== Medios de Pago (cards más chicas) ===== */
.grid-medios-nv-e3 {
  margin-top:10px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap:12px;
}
@media (max-width: 992px){ .grid-medios-nv-e3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 576px){ .grid-medios-nv-e3 { grid-template-columns: 1fr; } }

.card-medio-nv-e3 {
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  padding: 14px 12px 12px;
}
.card-medio-nv-e3:hover {
  transform: translateY(-1px);
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12), 0 12px 28px rgba(0,0,0,0.08);
  cursor: pointer;
}

/* X borrar (reutiliza estilo de estados) */
.delete-estado-nv-e3 { position: absolute; top: 8px; left: 10px; border: none; background: transparent; padding: 2px 4px; color: #6b7280; opacity: .55; line-height: 1; }
.delete-estado-nv-e3:hover { opacity: .9; color: #ef4444; background-color: hsl(9, 100%, 85%); }

/* Check superior grande y centrado */
.medio-top-nv-e3 { display:flex; align-items:center; justify-content:center; margin-bottom: 8px; }
.medio-top-nv-e3 .form-check-input { transform: scale(1.25); }

/* Nombre (pill) y contenedor opciones estilo macOS */
.medio-name-badge-nv-e3 {
  font-size: 15px; font-weight:700;
  padding: 5px 12px; border-radius: 10px;
  background:#eef2ff; color:#4338ca;
  text-transform: capitalize;
  display: inline-flex; align-items:center; gap:6px;
}
.medio-options-nv-e3 {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.85), rgba(245,246,250,0.9));
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: inset 0 2px 8px rgba(0,0,0,0.06);
  display:flex; align-items:center; justify-content:space-between; gap:8px;
}
.medio-options-nv-e3 .form-check { margin: 0; }

/* ===== Items Desconocidos ===== */
.list-desconocidos-nv-e3 {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
}
@media (max-width: 576px){
  .list-desconocidos-nv-e3 { grid-template-columns: 1fr; }
}

.item-desconocido-card-nv-e3 {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr 68px;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.item-desconocido-card-nv-e3:hover {
  transform: translateY(-1px);
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12), 0 12px 28px rgba(0,0,0,0.08);
  cursor: pointer;
}

.btn-del-desconocido-nv-e3,
.btn-edit-desconocido-nv-e3{
  position: absolute; top: 8px; border: none; background: transparent;
  padding: 2px 6px; color: #6b7280; opacity: .6; line-height: 1;
}
.btn-del-desconocido-nv-e3 { left: 10px; }
.btn-edit-desconocido-nv-e3 { left: 36px; }
.btn-del-desconocido-nv-e3:hover,
.btn-edit-desconocido-nv-e3:hover { opacity: .95; background-color: rgba(0,0,0,0.04); }
.btn-del-desconocido-nv-e3:hover { color: #ef4444; }

.icon-circle-nv-e3 {
  margin-top: 20px;
  width: 48px; height: 48px; border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  border: 2px solid rgba(255,255,255,0.8);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08) inset, 0 1px 2px rgba(0,0,0,0.06);
}
.icon-circle-nv-e3 i { font-size: 22px; }

.codes-wrap-nv-e3 { display:flex; flex-wrap:wrap; gap:6px; }
.badge-code-nv-e3 {
  display:inline-block; padding: 6px 10px; border-radius: 999px;
  background: #eef2ff; color:#4338ca; font-weight: 700; font-size: 12px;
  border:1px solid rgba(0,0,0,0.06);
}

.actions-wrap-nv-e3 { margin-top: 6px; display:flex; flex-wrap:wrap; gap:6px; }
.tag-action-nv-e3 {
  display:inline-flex; align-items:center; gap:6px;
  padding: 4px 10px; border-radius: 999px;
  background: linear-gradient(180deg, #fbfbfd 0%, #eef1f6 100%);
  border:1px solid rgba(0,0,0,.08);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.06);
  font-size: 12px; color:#1f2937;
}

.left-nv-e3 { display:flex; align-items:center; justify-content:center; }
.center-nv-e3 { min-width: 0; }
.right-nv-e3 { display:flex; align-items:center; justify-content:center; }

.chips-list-nv-e3 { display:flex; flex-wrap:wrap; gap:6px; }
.chip-nv-e3 {
  display:inline-flex; align-items:center; gap:6px;
  background:#f3f4f6; border:1px solid rgba(0,0,0,0.08);
  border-radius:999px; padding:4px 8px; font-size:12px;
}
.chip-nv-e3 .chip-x {
  border:none; background:transparent; color:#6b7280; padding:0 4px; line-height:1;
}
.chip-nv-e3 .chip-x:hover { color:#ef4444; }

.icons-grid-nv-e3 {
  display:grid; grid-template-columns:repeat(5, minmax(0,1fr)); gap:8px;
}
.sug-card-nv-e3 {
  position:relative; width:100%; padding-top:100%;
  border-radius:12px; overflow:hidden;
  border:1px solid rgba(0,0,0,0.08); background:#f3f4f6;
  cursor:pointer; transition:transform .12s ease, box-shadow .12s ease;
  display:block;
}
.sug-card-nv-e3:hover { box-shadow:0 6px 16px rgba(0,0,0,.12), 0 0 0 3px rgba(0,123,255,.12); transform:translateY(-1px); }
.sug-ico-nv-e3 { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); font-size:26px; opacity:.9; }
@media (max-width: 576px){ .icons-grid-nv-e3{ grid-template-columns:repeat(3,minmax(0,1fr)); } }

.actions-bottom-check-nv-e3 { display:flex; align-items:center; gap:8px; margin:0; }
.action-details-nv-e3 { 
  margin-top:8px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.color-inp-nv-e3 {
  width:44px; height:34px; border-radius:8px; border:1px solid #e5e7eb;
}

.medio-disabled-nv-e3 { opacity: .60; }

.swal2-validation-message {
    flex-direction: column;
    text-align: center;
    font-size: small;
    font-weight: 600;
    display: flex
;
}

.tag-action-text-nv-e3{
  display: -webkit-box;             
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;             
  overflow: hidden;
  text-overflow: ellipsis;
  max-inline-size: 20ch;            
  line-height: 1.2;                   
}

.tag-action-nv-e3 strong{
  font-weight: 700;
}

.item-desconocido-card-nv-e3 .item-title-nv-e3{
  font-weight: 700;
  font-size: .95rem;
  color: #1f2937;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;         
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: #f1f1f1;
  width: fit-content;
  padding: 3px 6px;
  border-radius: 6px;
}

.input-e3inst{
  border-radius: 12px !important;
}

.tag-action-text-nv-e3{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  max-inline-size: 20ch;
  line-height: 1.2;
}
.tag-action-nv-e3 strong{ font-weight: 700; }
/* ===== Fin Items Desconocidos ===== */

/* === Financiación general – tabla clara === */
.gf-table-wrap-e3inst{
  background: #f9fafb !important;
  border-radius: 12px;
  padding: 8px;
  border: 1px solid rgba(15,23,42,.08);
}

.gf-table-e3inst{
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  color: #111827;
  font-size: 13px;
}

.gf-table-e3inst thead th{
  background: #f3f4f6;
  color: #111827;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 11px;
  padding: 8px 10px;
  border-bottom: 1px solid #e5e7eb;
}

.gf-table-e3inst tbody td{
  padding: 6px 10px;
  border-bottom: 1px solid #e5e7eb;
}

.gf-table-e3inst tbody tr:last-child td{
  border-bottom: none;
}

.gf-table-e3inst input.input-e3inst{
  background: #f9fafb;
  border-radius: 999px;
}

/* ---------- Meta card del módulo ---------- */

.module-meta-card-e3inst {
  border-radius: 16px;
  padding: 16px 18px 18px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.25);
  margin-bottom: 16px;
}

.module-meta-header-e3inst {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.module-meta-header-main-e3inst {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.module-meta-icon-e3inst {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0A84FF, #34C759);
  color: #fff;
  flex-shrink: 0;
  font-size: 14px;
}

.module-meta-header-text-e3inst .section-title-e3inst {
  margin: 0;
}

.module-meta-header-text-e3inst .hint-e3inst {
  margin: 2px 0 0;
}

.module-meta-header-right-e3inst {
  flex-shrink: 0;
}

/* Chip genérico + variaciones */

.chip-e3inst {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  color: #4b5563;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

.chip-e3inst i {
  font-size: 12px;
}

.module-meta-header-chip-e3inst {
  background: rgba(15, 23, 42, 0.07);
  color: #374151;
}

.module-code-hint-chip-e3inst {
  background: rgba(15, 23, 42, 0.03);
  color: #6b7280;
}

/* Grids internos */

.module-meta-grid-e3inst {
  margin-top: 4px;
  gap: 16px;
}

.module-base-grid-e3inst {
  margin-top: 10px;
  gap: 16px;
}

/* Label + chip en la misma línea */

.field-label-row-e3inst {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Aumento base */

.module-base-input-row-e3inst {
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-base-input-row-e3inst .input-e3inst {
  flex: 1;
}

.base-tag-e3inst {
  background: rgba(56, 189, 248, 0.09);
  color: #0369a1;
}

.base-inline-chip-e3inst {
  background: rgba(0, 0, 0, 0.04);
  color: #4b5563;
}

/* Tip card a la derecha */

.meta-tip-card-e3inst {
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(15, 23, 42, 0.02);
  border: 1px dashed rgba(148, 163, 184, 0.6);
  font-size: 12px;
  color: #4b5563;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
}

.meta-tip-title-e3inst {
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-tip-title-e3inst i {
  font-size: 13px;
}

.meta-tip-body-e3inst {
  line-height: 1.45;
}

/* ---------- Colores + reorder ---------- */

.module-colors-row-e3inst {
  margin-top: 12px;
  gap: 16px;
  align-items: flex-start;
}

.module-colors-title-e3inst {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #111827;
}

/* Swatches (si ya los tenés, esto sólo los pule un poco) */

.swatches-e3inst {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.swatch-e3inst {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.swatch-e3inst input {
  display: none;
}

.swatch-e3inst span {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--sw);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.7),
              0 6px 12px rgba(15, 23, 42, 0.3);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.swatch-e3inst input:checked + span {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 0 0 2px #0A84FF,
              0 8px 16px rgba(15, 23, 42, 0.35);
}

/* Color personalizado */

.field-inline-e3inst {
  display: flex;
  align-items: center;
  gap: 8px;
}

.input-color-e3inst {
  width: 40px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: transparent;
}

/* Reorder zone */

.reorder-zone-e3inst {
  margin-top: 4px;
  padding: 6px 8px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.02);
  border: 1px dashed rgba(148, 163, 184, 0.7);
  min-height: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.reorder-empty-e3inst {
  font-size: 12px;
  color: #6b7280;
}

.reorder-hint-e3inst {
  margin-top: 4px;
}

/* Chips de reorder (si ya existían, esto los deja más macOS) */

.reorder-chip-e3inst {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-size: 12px;
  cursor: grab;
}

.reorder-chip-e3inst .drag-icon-e3inst {
  font-size: 13px;
  color: #9ca3af;
}

.reorder-chip-e3inst .reorder-title-e3inst {
  white-space: nowrap;
}

.reorder-chip-e3inst.dragging {
  opacity: 0.9;
  cursor: grabbing;
}

.reorder-placeholder-e3inst {
  border-radius: 999px;
  border: 2px dashed rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 0.03);
  height: 32px;
  min-width: 80px;
}

/* ---------- Card de filas ---------- */

.module-rows-card-e3inst {
  border-radius: 16px;
  padding: 14px 16px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  margin-bottom: 16px;
}

.module-rows-header-e3inst {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.module-rows-header-main-e3inst {
  display: flex;
  align-items: center;
  gap: 10px;
}

.module-rows-header-icon-e3inst {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 132, 255, 0.1);
  color: #0A84FF;
  flex-shrink: 0;
  font-size: 14px;
}

.module-rows-subtitle-e3inst {
  margin: 2px 0 0;
}

.module-rows-header-actions-e3inst {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Footer del form */

.module-form-footer-e3inst {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.btn-xs-e3inst {
  background-color: orange !important;
  color: white !important;
  padding: 2px 10px;
  font-size: 11px;
  border-radius: 999px;
  animation: .5s ease-in-out;
}

.btn-xs-e3inst:hover {
  background-color: whitesmoke !important;
  color: orange !important;
}

.list-filter-row-e3inst {
  margin-top: 6px;
  display: flex;
  justify-content: flex-end;
}

.labely-e3inst {
  font-size: 13px;
  font-weight: 500;
  background-color: rgb(255, 205, 158) !important;
  color: rgb(126, 67, 0) !important;
  padding: 4px 8px;
  border-radius: 30px;
  width: fit-content;
  display: flex;
  flex-direction: row !important;
  gap: 5px;
}

/* Cada fila */
.module-row-e3inst{
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

/* Card estilo macOS */
.module-card-e3inst{
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(248, 250, 252, 0.85); /* slate-50 */
  border: 1px solid rgba(148, 163, 184, 0.45); /* slate-400 */
  backdrop-filter: blur(18px);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.18),
    0 0 0 0.5px rgba(255, 255, 255, 0.8) inset;
  display: flex;
  align-items: stretch;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.module-card-e3inst.is-enabled{
  border-color: rgba(59, 130, 246, 0.7); /* azul */
  background: linear-gradient(135deg, rgba(239,246,255,0.95), rgba(219,234,254,0.9));
}

.module-card-e3inst.is-paused{
  border-color: rgba(148, 163, 184, 0.6); /* gris */
  background: linear-gradient(135deg, rgba(248,250,252,0.9), rgba(249,250,251,0.9));
}

.module-card-e3inst:hover{
  transform: translateY(-1px);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.22),
    0 0 0 0.5px rgba(255, 255, 255, 0.95) inset;
}

/* Pill del código (#123) */
.module-code-pill-e3inst{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, #ffffff, #e5edff);
  border: 1px solid rgba(129, 140, 248, 0.75); /* indigo */
  min-width: 52px;
}

.module-code-hash-e3inst{
  font-size: 11px;
  color: #64748b; /* slate-500 */
}

.module-code-number-e3inst{
  font-size: 16px;
  font-weight: 700;
  color: #111827; /* slate-900 */
  letter-spacing: 0.03em;
}

/* Títulos y subtítulos */
.module-title-block-e3inst{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.module-title-e3inst{
  font-size: 14px;
  font-weight: 600;
  color: #0f172a; /* slate-900 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.module-sub-e3inst{
  font-size: 11px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  color: #6b7280; /* slate-500 */
}

.module-rows-info-e3inst{
  font-variant-numeric: tabular-nums;
}

.module-created-e3inst{
  opacity: 0.9;
}

/* Badges */
.badge-e3inst{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid transparent;
}

.badge-success-e3inst{
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.55);
  color: #047857;
}

.badge-muted-e3inst{
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.55);
  color: #4b5563;
}

/* Acciones a la derecha */
.module-actions-e3inst{
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Switch estado módulo (puede convivir con tu switch actual) */
.switch-e3inst{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 11px;
  color: #4b5563;
  margin-bottom: 0;
}

/* Si ya tenés estilos tipo toggle, estos son seguros:
   el input se oculta y usás tus pseudo-elementos existentes */
.switch-e3inst input[type="checkbox"]{
  margin: 0;
}

/* Label dinámico Activo / Pausado */
.mod-enabled-label-e3inst{
  min-width: 52px;
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* Botones de acción */
.btn-e3inst.btn-ghost-e3inst{
  border-radius: 999px;
  padding: 4px 7px;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #6b7280;
  transition: background 0.12s ease, color 0.12s ease, transform 0.08s ease;
}

.btn-e3inst.btn-ghost-e3inst:hover{
  background: rgba(148, 163, 184, 0.16);
  color: #111827;
  transform: translateY(-0.5px);
}

.btn-e3inst.btn-ghost-e3inst:active{
  transform: translateY(0);
  background: rgba(148, 163, 184, 0.26);
}

/* Separador puntito */
.dot-sep-e3inst::before{
  content: '•';
}