/* =========================
   Elaborados & Recetas - Master-Detail Layout
   ========================= */

/* Master-Detail Container */
.master-detail-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 24px;
  min-height: calc(100vh - 250px);
  margin-top: 24px;
}

/* ========== MASTER PANEL (Left - Lista de Elaborados) ========== */
.master-panel {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  overflow: hidden;
  height: fit-content;
  max-height: calc(100vh - 250px);
}

.master-header {
  padding: 16px;
  border-bottom: 1px solid var(--neutral-200);
  background: var(--neutral-50);
}

.master-content {
  flex: 1;
  overflow-y: auto;
  min-height: 400px;
}

.master-content::-webkit-scrollbar {
  width: 8px;
}

.master-content::-webkit-scrollbar-track {
  background: var(--neutral-50);
}

.master-content::-webkit-scrollbar-thumb {
  background: var(--neutral-200);
  border-radius: 4px;
}

.master-content::-webkit-scrollbar-thumb:hover {
  background: var(--neutral-700);
}

/* Elaborado Item */
.elaborado-item {
  padding: 16px;
  border-bottom: 1px solid var(--neutral-200);
  cursor: pointer;
  transition: background-color .15s;
  display: flex;
  align-items: center;
  gap: 12px;
}

.elaborado-item:hover {
  background: var(--primary-50);
}

.elaborado-item.selected {
  background: var(--primary-50);
  border-left: 4px solid var(--primary-500);
  padding-left: 12px;
}

.elaborado-item-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--primary-500);
}

.elaborado-item-content {
  flex: 1;
  min-width: 0;
}

.elaborado-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.elaborado-item-meta {
  font-size: 12px;
  color: var(--neutral-700);
  display: flex;
  align-items: center;
  gap: 8px;
}

.elaborado-item-badge {
  padding: 2px 8px;
  background: var(--neutral-50);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.elaborado-item-warning {
  color: var(--warning-500);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Cost pill in master list */
.elaborado-item-cost {
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.elaborado-item-cost.ok {
  background: #ECFDF5;
  color: #059669;
}
.elaborado-item-cost.partial {
  background: #FFFBEB;
  color: #B45309;
}

/* Cost section in detail */
.costo-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #EEF0FE 0%, #E0E7FF 100%);
  border-radius: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.costo-total {
  font-size: 18px;
  color: #0F172A;
}
.costo-total strong { color: #3F4FCF; }

.costo-chip {
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.costo-chip.ok      { background: #ECFDF5; color: #059669; }
.costo-chip.partial { background: #FFFBEB; color: #B45309; }
.costo-chip.bad     { background: #FEF2F2; color: #DC2626; }

.costo-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--neutral-200, #E2E8F0);
  border-radius: 10px;
}
.costo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.costo-table thead th {
  background: var(--neutral-50, #F8FAFC);
  font-weight: 600;
  color: var(--neutral-700, #475569);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--neutral-200, #E2E8F0);
}
.costo-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--neutral-100, #F1F5F9);
  color: var(--neutral-900, #0F172A);
}
.costo-table tr:last-child td { border-bottom: none; }
.costo-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.costo-table tr.sin-costo td { color: var(--neutral-500, #94A3B8); }
.costo-table tr.sin-costo td em { font-style: normal; color: #DC2626; font-weight: 600; }
.costo-fuente {
  font-size: 11px;
  color: var(--neutral-600, #64748B);
  text-transform: lowercase;
}

@media (max-width: 640px) {
  .costo-summary { padding: 10px 12px; }
  .costo-total { font-size: 16px; }
  .costo-table thead th, .costo-table td { padding: 8px 10px; font-size: 12px; }
}

/* Loading State */
.loading-state {
  padding: 48px 24px;
  text-align: center;
  color: var(--neutral-700);
}

.loading-state .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--neutral-200);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin: 0 auto 16px;
}

.loading-state p {
  font-size: 14px;
  margin: 0;
}

/* Empty State */
.master-empty {
  padding: 48px 24px;
  text-align: center;
}

.master-empty-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  opacity: 0.4;
  color: var(--neutral-500);
}

.master-empty-text {
  font-size: 14px;
  color: var(--neutral-700);
  margin: 0;
}

/* ========== DETAIL PANEL (Right - Editor de Receta) ========== */
.detail-panel {
  background: var(--white);
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 250px);
}

.detail-empty-state {
  padding: 80px 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.empty-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  opacity: 0.3;
  color: var(--neutral-500);
}

.empty-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--neutral-900);
  margin: 0 0 12px;
}

.empty-text {
  font-size: 14px;
  color: var(--neutral-700);
  margin: 0;
  max-width: 400px;
}

.detail-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
}

.detail-content::-webkit-scrollbar {
  width: 8px;
}

.detail-content::-webkit-scrollbar-track {
  background: var(--neutral-50);
}

.detail-content::-webkit-scrollbar-thumb {
  background: var(--neutral-200);
  border-radius: 4px;
}

/* Detail Header */
.detail-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--neutral-200);
  background: var(--neutral-50);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.detail-header-main {
  flex: 1;
}

.detail-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--neutral-900);
  margin: 0 0 8px;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-badge {
  padding: 4px 12px;
  background: var(--primary-50);
  border: 1px solid var(--primary-500);
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-500);
  text-transform: uppercase;
}

.detail-header-actions {
  display: flex;
  gap: 8px;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

/* Detail Tabs */
.detail-tabs {
  display: flex;
  gap: 4px;
  padding: 12px 24px 0;
  border-bottom: 1px solid var(--neutral-200);
  background: var(--white);
}

.detail-tab {
  padding: 10px 16px;
  border: none;
  background: transparent;
  color: var(--neutral-700);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all .2s;
  position: relative;
}

.detail-tab:hover {
  background: var(--neutral-50);
  color: var(--neutral-900);
}

.detail-tab.active {
  background: var(--white);
  color: var(--primary-500);
}

.detail-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-500);
}

.detail-tab-content {
  display: none;
  padding: 24px;
  flex: 1;
}

.detail-tab-content.active {
  display: block;
}

/* Form Sections */
.form-section {
  margin-bottom: 32px;
}

.form-section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--neutral-900);
  margin: 0 0 16px;
}

.form-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.form-row {
  margin-bottom: 20px;
}

.form-field {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-hint {
  font-size: 12px;
  color: var(--neutral-700);
  margin-top: 6px;
  display: block;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Ingredients List */
.ingredients-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ingredients-empty,
.presentaciones-empty {
  padding: 32px;
  text-align: center;
  background: var(--neutral-50);
  border: 2px dashed var(--neutral-200);
  border-radius: 12px;
  color: var(--neutral-700);
  font-size: 13px;
}

.presentaciones-list {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  padding: 8px 16px;
}

.presentaciones-list:has(.presentaciones-empty) {
  background: transparent;
  border: none;
  padding: 0;
}

.presentacion-row:last-child {
  border-bottom: none !important;
}

.ingredient-row {
  display: grid;
  grid-template-columns: 1fr 120px 120px 40px;
  gap: 12px;
  align-items: start;
  padding: 16px;
  background: var(--neutral-50);
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  transition: all .2s;
}

.ingredient-row:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
}

.ingredient-row-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ingredient-row-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--neutral-700);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ingredient-row-remove {
  width: 40px;
  height: 40px;
  border: 1px solid var(--neutral-200);
  background: var(--white);
  border-radius: 8px;
  color: var(--neutral-700);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  margin-top: 20px;
}

.ingredient-row-remove:hover {
  background: #EF4444;
  border-color: #EF4444;
  color: white;
}

.elaborado-item-icon svg,
.master-empty-icon svg,
.empty-icon svg,
.ingredient-row-remove svg {
  width: 100%;
  height: 100%;
}

.batch-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.batch-preview-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.batch-preview-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--neutral-200);
  border-radius: 9999px;
  background: var(--white);
  color: var(--neutral-900);
  font-size: 12px;
  font-weight: 600;
}

.batch-preview-tree,
.batch-preview-empty {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.batch-preview-empty {
  padding: 24px;
  background: var(--neutral-50);
  border: 2px dashed var(--neutral-200);
  border-radius: 12px;
  color: var(--neutral-700);
  font-size: 13px;
  text-align: center;
}

.batch-node {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 16px;
  border-left: 2px solid var(--neutral-200);
}

.batch-node.root {
  padding-left: 0;
  border-left: none;
}

.batch-node-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid var(--neutral-200);
  border-radius: 12px;
  background: var(--white);
}

.batch-node-card.batch-node-card-root {
  background: var(--primary-50);
  border-color: var(--primary-500);
}

.batch-node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.batch-node-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.batch-node-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--neutral-900);
}

.batch-node-type {
  padding: 3px 8px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.batch-node-type.type-root,
.batch-node-type.type-el {
  background: var(--primary-50);
  color: var(--primary-500);
}

.batch-node-type.type-mp {
  background: #ECFDF3;
  color: #027A48;
}

.batch-node-qty {
  font-size: 12px;
  font-weight: 700;
  color: var(--neutral-900);
  white-space: nowrap;
}

.batch-node-meta,
.batch-node-note {
  font-size: 12px;
  color: var(--neutral-700);
}

.batch-node-note {
  color: #B45309;
}

.batch-node-children {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Detail Actions */
.detail-actions {
  display: flex;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--neutral-200);
  margin-top: 24px;
}

.btn-sm {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.tv-btn-danger {
  background: #EF4444;
  color: white;
  border-color: #EF4444;
}

.tv-btn-danger:hover {
  background: #DC2626;
  border-color: #DC2626;
}

/* Responsive */
@media (max-width: 1200px) {
  .master-detail-layout {
    grid-template-columns: 320px 1fr;
  }
}

@media (max-width: 968px) {
  .master-detail-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .master-panel {
    max-height: 400px;
  }

  .detail-panel {
    max-height: none;
  }

  .ingredient-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ingredient-row-remove {
    margin-top: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .detail-header {
    padding: 16px;
  }

  .detail-tabs {
    padding: 8px 16px 0;
  }

  .detail-tab-content {
    padding: 16px;
  }

  .detail-actions {
    flex-direction: column;
  }

  .detail-actions .tv-btn {
    width: 100%;
  }
}

/* ============================================
   Fase 3.C — Tab Dependencias del Elaborado
   ============================================ */
.hidden { display: none !important; }

.deps-section-title {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--neutral-900);
}
.deps-count {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  background: #DDE3FF;
  color: #4756e6;
  font-weight: 700;
}
.deps-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.deps-list-item {
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--neutral-200);
  border-radius: 8px;
  font-size: 13px;
  color: var(--neutral-700);
}
.deps-empty {
  color: var(--neutral-500);
  font-style: italic;
  font-size: 13px;
}
.deps-suc-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.deps-suc-chip {
  padding: 4px 10px;
  background: #DCFCE7;
  color: #16A34A;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
}

/* =========================================================
   Modal: Crear nuevo elaborado
   ========================================================= */
.new-elab-modal {
  max-width: 720px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  padding: 0;
}

.new-elab-header {
  padding: 22px 28px 14px;
  border-bottom: 1px solid var(--neutral-200);
}
.new-elab-header h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  color: var(--neutral-900);
}
.new-elab-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--neutral-700);
  line-height: 1.45;
}

.new-elab-form {
  padding: 18px 28px 12px;
  overflow-y: auto;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.new-elab-section {
  border: 1px solid var(--neutral-200);
  border-radius: 14px;
  padding: 16px 18px;
  background: #fff;
}

.new-elab-section-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.new-elab-step {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--primary-500);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.new-elab-section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--neutral-900);
}
.new-elab-section-hint {
  margin: 3px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--neutral-700);
}

.new-elab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.new-elab-field-full {
  grid-column: 1 / -1;
}

.new-elab-req {
  color: #E11D48;
  margin-left: 2px;
}
.new-elab-err {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: #DC2626;
  font-weight: 600;
}

/* Radio cards de unidad */
.new-elab-radio-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.new-elab-radio {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--neutral-200);
  border-radius: 12px;
  cursor: pointer;
  background: #fff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.new-elab-radio:hover { border-color: var(--primary-500); }
.new-elab-radio input[type="radio"] {
  accent-color: var(--primary-500);
  margin: 0;
}
.new-elab-radio:has(input:checked) {
  border-color: var(--primary-500);
  background: var(--primary-50);
  box-shadow: 0 0 0 3px rgba(98,115,255,.12);
}
.new-elab-radio strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--neutral-900);
  letter-spacing: 0.02em;
}
.new-elab-radio small {
  display: block;
  font-size: 11.5px;
  color: var(--neutral-700);
}

/* Presentaciones */
.new-elab-pres-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.new-elab-pres-row {
  display: grid;
  grid-template-columns: 36px 1fr 140px 32px;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1.5px solid var(--neutral-200);
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.new-elab-pres-row.is-principal {
  border-color: var(--primary-500);
  background: var(--primary-50);
  box-shadow: 0 0 0 3px rgba(98,115,255,.10);
}
.new-elab-pres-star {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1.5px solid var(--neutral-200);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--neutral-700);
  transition: all .15s ease;
  padding: 0;
}
.new-elab-pres-star:hover { border-color: var(--primary-500); color: var(--primary-500); }
.new-elab-pres-row.is-principal .new-elab-pres-star {
  border-color: var(--primary-500);
  background: var(--primary-500);
  color: #fff;
}
.new-elab-pres-input {
  width: 100%;
  padding: 9px 11px;
  border-radius: 10px;
  border: 1.5px solid var(--neutral-200);
  background: #fff;
  font-size: 13.5px;
  color: var(--neutral-900);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.new-elab-pres-input:focus { border-color: var(--primary-500); box-shadow: 0 0 0 3px rgba(98,115,255,.15); }
.new-elab-pres-qty-wrap {
  position: relative;
}
.new-elab-pres-qty-wrap .new-elab-pres-input { padding-right: 42px; text-align: right; font-variant-numeric: tabular-nums; }
.new-elab-pres-qty-unit {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--neutral-700);
  background: var(--neutral-50);
  padding: 2px 7px;
  border-radius: 999px;
  pointer-events: none;
}
.new-elab-pres-remove {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--neutral-200);
  color: var(--neutral-700);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .15s ease;
  padding: 0;
}
.new-elab-pres-remove:hover { border-color: #DC2626; color: #DC2626; background: #FEF2F2; }
.new-elab-pres-remove:disabled { opacity: 0.35; cursor: not-allowed; }

.new-elab-add-btn {
  margin-top: 10px;
  width: 100%;
  justify-content: center;
  border-style: dashed;
}

/* Resumen */
.new-elab-summary {
  border: 1px dashed var(--primary-500);
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--primary-50);
}
.new-elab-summary-title {
  font-size: 11px;
  font-weight: 700;
  color: #3F4FCF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.new-elab-summary-body {
  font-size: 13px;
  line-height: 1.5;
  color: var(--neutral-900);
}
.new-elab-summary-body strong { color: #3F4FCF; }
.new-elab-summary-body .new-elab-sum-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.new-elab-summary-body .new-elab-sum-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #C7D2FE;
  font-size: 11.5px;
  font-weight: 700;
  color: #3F4FCF;
}
.new-elab-summary-body .new-elab-sum-pill.is-principal {
  background: var(--primary-500);
  color: #fff;
  border-color: var(--primary-500);
}
.new-elab-summary-body .new-elab-sum-muted { color: var(--neutral-700); font-style: italic; }

/* Footer */
.new-elab-footer {
  padding: 14px 28px 18px;
  border-top: 1px solid var(--neutral-200);
  margin-top: 0;
  background: #fff;
  border-radius: 0 0 16px 16px;
}

/* Loading state del botón submit */
.new-elab-modal .tv-btn[aria-busy="true"] {
  pointer-events: none;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 640px) {
  .new-elab-modal { max-height: calc(100vh - 16px); border-radius: 14px; }
  .new-elab-header, .new-elab-form, .new-elab-footer { padding-left: 18px; padding-right: 18px; }
  .new-elab-grid { grid-template-columns: 1fr; }
  .new-elab-radio-row { grid-template-columns: 1fr; }
  .new-elab-pres-row { grid-template-columns: 32px 1fr 32px; }
  .new-elab-pres-row .new-elab-pres-qty-wrap { grid-column: 1 / -1; }
}
