/* ======== TARJETAS (cards) ======== */
.form-card,
.filter-card {
  background: #ffffff;             /* blanco */
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-card h3,
.filter-card h3 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #333;                     /* texto oscuro */
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ======== FORMULARIOS ======== */
.reserva-form .form-row,
.filter-form .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.reserva-form input,
.reserva-form select,
.filter-form input[type="date"] {
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  min-width: 180px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

.reserva-form input:focus,
.reserva-form select:focus,
.filter-form input[type="date"]:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 4px rgba(0, 123, 255, 0.3);
}

/* ======== BOTONES ======== */
button,
.btn-success,
.btn-info,
.btn-secondary {
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s ease;
}

.btn-success {
  background: #28a745;
  color: #fff;
}

.btn-success:hover {
  background: #218838;
}

.btn-info {
  background: #007bff;
  color: #fff;
}

.btn-info:hover {
  background: #0056b3;
}

.btn-secondary {
  background: #6c757d;
  color: #fff;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #5a6268;
}

/* ======== TABLA ======== */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-size: 14px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.styled-table thead tr {
  background: #007bff;
  color: #fff;
  text-align: left;
  font-weight: bold;
}

.styled-table th,
.styled-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
}

.styled-table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.styled-table tbody tr:hover {
  background: #f1f5fb;
}

/* ======== BADGES (Estados) ======== */
.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  display: inline-block;
  text-transform: uppercase;
}

.badge-yellow {
  background: #ffc107;
  color: #000;
}

.badge-green {
  background: #28a745;
  color: #fff;
}

.badge-red {
  background: #dc3545;
  color: #fff;
}

/* ======== TITULOS ======== */
.page-title {
  font-size: 24px;
  margin-bottom: 10px;
  color: #333;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #007bff;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

/* ======== SUGERENCIAS (autocomplete) ======== */
.sugerencias-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 1000;
  padding: 0;
  margin: 0;
  list-style: none;
}

.sugerencias-list li {
  padding: 8px 12px;
  cursor: pointer;
  color: #333;
  font-size: 14px;
}

.sugerencias-list li:hover {
  background: #f0f0f0;
}

/* Mensajes cliente */
.cliente-msg {
  display: block;
  font-size: 0.9em;
  margin-top: 4px;
}
.cliente-msg.ok {
  color: #28a745;
}
.cliente-msg.error {
  color: #dc3545;
}

/* ======== TOTALES FACTURA ======== */
.totales-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.total-card {
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  color: #fff; /* texto blanco por defecto */
}

.total-card h4 {
  margin: 0 0 8px;
  font-size: 1em;
  font-weight: 600;
}

.total-card p {
  margin: 0;
  font-size: 1.6em;
  font-weight: bold;
  color: #fff; /* forzamos el valor a blanco */
}

/* Colores por tipo */
.azul {
  background: #007bff;
}
.verde {
  background: #28a745;
}
.rojo {
  background: #dc3545;
}

/* Mensaje de saldo */
.saldo-warning {
  margin-top: 10px;
  font-weight: bold;
  color: #dc3545;
  text-align: center;
}


/* ======== Valores de Totales ======== */
.total-card p {
  display: block;         /* asegura que ocupe toda la línea */
  font-size: 1.8rem;      /* más grande */
  font-weight: bold;      
  margin-top: 8px;
  color: #fff;            /* texto blanco */
}

.total-card p {
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}


.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  gap: 15px;
}

.pagination a, .pagination span {
  padding: 8px 16px;
  border-radius: 6px;
  background: #f4f4f4;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.pagination a:hover {
  background: #007bff;
  color: white;
}

.pagination span {
  background: #ddd;
}

