body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f9fa;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
}

.card {
  border-radius: 1rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  position: relative;
}

.card-header {
  background-color: #212529;
  color: #fff;
  padding: 1.5rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: bold;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

.suggestions {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #ced4da;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  position: absolute;
  width: calc(100% - 2px);
  background: #fff;
  z-index: 1000;
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.05);
}

.suggestions li {
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.suggestions li:hover {
  background-color: #e9ecef;
}

.btn-teika {
  background-color: #28a745;
  border-color: #28a745;
  color: white;
  font-weight: bold;
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.5rem;
}

.btn-teika:disabled {
  background-color: #6c757d;
  border-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.85;
}

.send-btn-wrapper {
  position: relative;
}

.btn-submit-guard {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  border-radius: 0.5rem;
  pointer-events: none;
  z-index: 2;
  cursor: not-allowed;
}

.btn-submit-guard.is-active {
  pointer-events: auto;
}

.form-loading-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(33, 37, 41, 0.9);
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2rem;
  z-index: 5;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.form-loading-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-overlay-content {
  max-width: 320px;
}

#spinnerEnvio {
  display: none;
}

.campo-obligatorio {
  border-color: #dc3545 !important;
}

.texto-obligatorio {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

#noticeBox .alert {
  margin-top: 0.75rem;
}

#noticeBox .notice-emphasis {
  font-size: 1.05rem;
  font-weight: 600;
}

.facturar-options {
  background-color: #f8f9fa;
}

#precioFijoField .form-control {
  text-align: right;
}

.form-check.pdv-disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.form-check.pdv-disabled label {
  cursor: not-allowed;
}

.flatpickr-calendar {
  background-color: #ffffff;
  color: #212529;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

.flatpickr-months .flatpickr-month,
.flatpickr-weekday {
  color: #212529;
}

.flatpickr-day {
  color: #212529;
}

.flatpickr-day.disabled,
.flatpickr-day.notAllowed,
.flatpickr-day.start-advance-disabled,
.flatpickr-day.max-duration-disabled {
  color: #adb5bd !important;
  cursor: not-allowed;
}

.flatpickr-day.today {
  border-color: #198754;
}

@media (prefers-color-scheme: dark) {
  .flatpickr-calendar {
    background-color: #1f2228;
    color: #f8f9fa;
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.6);
  }

  .flatpickr-months .flatpickr-month,
  .flatpickr-weekday,
  .flatpickr-day {
    color: #f8f9fa;
  }

  .flatpickr-day.start-advance-disabled,
  .flatpickr-day.max-duration-disabled,
  .flatpickr-day.disabled,
  .flatpickr-day.notAllowed {
    color: rgba(248, 249, 250, 0.35) !important;
  }
}

@media (max-width: 576px) {
  .modal-mobile-full .modal-content {
    border-radius: 0.75rem;
  }
}
