.swal-pos-popup {
  border-radius: 12px !important;
  width: 520px !important;
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0;
}

.swal-pos-confirm,
.swal-pos-cancel {
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  box-shadow: none !important;
}

.swal-pos-confirm:focus,
.swal-pos-cancel:focus {
  box-shadow: 0 0 0 3px rgba(13, 148, 136, .18) !important;
}

.swal-pos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  text-align: left;
}

.swal-pos-popup-wide {
  width: min(1040px, calc(100vw - 32px)) !important;
}

.swal-pos-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 10px;
}

.swal-pos-grid-compact .swal-pos-label {
  margin-bottom: 4px;
}

.swal-pos-grid-compact .swal-pos-input {
  padding: 5px 7px;
}

.swal-pos-grid-compact textarea.swal-pos-input {
  min-height: 64px;
}

.swal-pos-field-full {
  grid-column: 1 / -1;
}

.swal-pos-label {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.swal-pos-input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 7px;
  font-size: 12px;
  color: #0f172a;
  background: #fff;
  outline: none;
}

/* Cantidades: escritura directa sin controles nativos del navegador. */
input.quantity-input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

input.quantity-input[type="number"]::-webkit-outer-spin-button,
input.quantity-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.swal-pos-input:disabled,
.swal-pos-input[readonly] {
  background: #f1f5f9;
  color: #64748b;
}

.swal-pos-input:focus {
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, .15);
}

.dark .swal2-popup.swal-pos-popup {
  background: #0f172a !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(255,255,255,.08);
}

.dark .swal2-popup .swal2-title {
  color: #f8fafc !important;
}

.dark .swal2-popup .swal2-html-container {
  color: #cbd5e1 !important;
}

.dark .swal-pos-label {
  color: #94a3b8;
}

.dark .swal-pos-input {
  background: #1e293b;
  border-color: rgba(255,255,255,.12);
  color: #e2e8f0;
}

.dark .swal-pos-input option {
  background: #1e293b;
  color: #e2e8f0;
}

.dark .swal-pos-input:disabled,
.dark .swal-pos-input[readonly] {
  background: rgba(255,255,255,.05);
  color: #94a3b8;
}

.swal-pos-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.swal-pos-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  color: #334155;
}

.swal-pos-audit-popup {
  width: min(860px, calc(100vw - 32px)) !important;
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
}

.swal-pos-card-soft {
  background: #f0fdfa;
  border-color: #99f6e4;
}

.swal-pos-card-danger {
  background: #fff1f2;
  border-color: #fecdd3;
}

.swal-pos-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.swal-pos-section-title {
  margin: 0 0 6px 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #64748b;
  font-weight: 900;
}

.swal-pos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: #334155;
}

.swal-pos-table th {
  padding: 7px;
  color: #475569;
  border-bottom: 1px solid #cbd5e1;
}

.swal-pos-table td {
  padding: 7px;
  border-bottom: 1px solid #e2e8f0;
}

.swal-pos-muted {
  color: #64748b;
}

.swal-pos-ticket {
  font-family: Arial, sans-serif;
  max-width: 280px;
  margin: 0 auto;
  text-align: left;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
}

.dark .swal-pos-card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.09);
  color: #cbd5e1;
}

.dark .swal2-popup.swal-pos-audit-popup {
  background: #0b1220 !important;
  color: #e2e8f0 !important;
  border-color: rgba(148,163,184,.22) !important;
  box-shadow: 0 24px 80px rgba(0,0,0,.55) !important;
}

.dark .swal2-popup.swal-pos-audit-popup .swal2-html-container {
  color: #cbd5e1 !important;
}

.dark .swal-pos-card-soft {
  background: rgba(20,184,166,.12);
  border-color: rgba(45,212,191,.28);
}

.dark .swal-pos-card-danger {
  background: rgba(244,63,94,.12);
  border-color: rgba(251,113,133,.28);
}

.dark .swal-pos-section-title,
.dark .swal-pos-muted {
  color: #94a3b8;
}

.dark .swal-pos-table {
  color: #cbd5e1;
}

.dark .swal-pos-table th {
  color: #e2e8f0;
  border-bottom-color: rgba(255,255,255,.14);
}

.dark .swal-pos-table td {
  border-bottom-color: rgba(255,255,255,.08);
}

.dark .swal-pos-ticket {
  background: #ffffff;
  color: #0f172a;
  border-color: #e2e8f0;
}

.swal2-confirm,
.swal2-cancel {
  padding: 6px 12px !important;
  font-size: 12px !important;
  border-radius: 6px !important;
}

.swal2-title {
  font-size: 1.2em !important;
  margin-bottom: 15px;
}

@media (max-width: 640px) {
  .swal-pos-grid {
    grid-template-columns: 1fr;
  }

  .swal-pos-field-full {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .swal-pos-grid-compact {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .swal-pos-grid-compact {
    grid-template-columns: 1fr;
  }
}
