body { 
    font-family: 'Inter', sans-serif; 
    padding-bottom: 80px;
}
@media (min-width: 640px) {
    body {
        padding-bottom: 0;
    }
}
.tab-active { border-color: #4f46e5; color: #4f46e5; }
.sub-tab-active { border-color: #4f46e5; background-color: #eef2ff; color: #4f46e5; }
.mobile-tab-active { color: #4f46e5; }

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 50;
    /* Añadimos transición y estado inicial */
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease-in-out, visibility 200ms ease-in-out;
}

.modal-backdrop.modal-visible {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop .modal-content {
    max-height: 90vh;
    overflow-y: auto;
    /* Añadimos transición y estado inicial para el contenido */
    transform: scale(0.95);
    opacity: 0;
    transition: transform 200ms ease-in-out, opacity 200ms ease-in-out;
}

.modal-backdrop.modal-visible .modal-content {
    transform: scale(1);
    opacity: 1;
}

.toggle-switch {
    width: 44px;
    height: 24px;
}
@media print {
    body * { visibility: hidden; }
    #receipt-modal, #receipt-modal * { visibility: visible; }
    #receipt-modal { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background-color: white; }
    .no-print { display: none; }
}

.spinner {
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.body-no-scroll {
    overflow: hidden;
}