body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 20px;
  background-color: #f4f6f8;
  color: #333;
}

header h1 {
  margin-bottom: 10px;
}

.resumen-global {
  background-color: #e9ecef;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.formulario {
  background-color: #fff;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 20px;
}

input[type="text"], input[type="number"] {
  padding: 6px;
  margin-right: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Inputs de filtro en la tabla clientes: margen izquierdo para separar de las flechas de orden */
table.dataTable thead tr#filtrosColumnas input[type="text"] {
  margin-left: -5px;
}

button {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  background-color: #0078d4;
  color: white;
  cursor: pointer;
}

button:hover {
  background-color: #005fa3;
}

table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 6px;
  overflow: hidden;
}

th, td {
  padding: 10px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

thead {
  background-color: #0078d4;
  color: white;
}

td.verde {
  background-color: #d4edda;
  color: #155724;
}

td.amarillo {
  background-color: #fff3cd;
  color: #856404;
}

td.rojo {
  background-color: #f8d7da;
  color: #721c24;
}

.panel-lateral {
  margin-top: 20px;
  background-color: #ffffff;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

/* Estilos para modal de tipos de cliente */
.modal-overlay {
  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: 1000;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-height: 80vh;
  overflow-y: auto;
}

.modal-content h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
}

.modal-content table {
  margin-top: 10px;
}

.modal-content input[type="text"] {
  margin: 2px;
}

.admin-button {
  background-color: #6f42c1;
}

.admin-button:hover {
  background-color: #5a2d91;
}

/* Estilos para la Nota de Reserva */
button.nota-reserva {
  background-color: #28a745;
  margin-left: 5px;
}

button.nota-reserva:hover {
  background-color: #218838;
}

/* Estilos para la página de pedido */
.pedido-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.error-container {
  max-width: 600px;
  margin: 100px auto;
  padding: 20px;
  background: #f8d7da;
  border-radius: 8px;
  text-align: center;
  color: #721c24;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.resumen-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background-color: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.resumen-texto {
  flex: 1;
  min-width: 200px;
}

.resumen-grafico {
  width: 250px;
  text-align: center;
}

/* Estilos para badges de comisiones */
.badge-base {
  background-color: #007acc;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.8em;
  margin-right: 2px;
}

.badge-puntual {
  background-color: #28a745;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.8em;
  margin-right: 2px;
}

.badge-atrasado {
  background-color: #dc3545;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.8em;
  margin-right: 2px;
}

.badge-pendiente {
  background-color: #ffc107;
  color: #000;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.8em;
  margin-right: 2px;
}

.badge-pagada {
  background-color: #28a745;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.8em;
  margin-right: 2px;
}

/* Estilos para formularios de abono */
.abono-form {
  background-color: #f8f9fa;
  padding: 15px;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  margin-bottom: 15px;
}

.abono-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.abono-form input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* Estilos para botones de acción de pagos */
.pago-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.btn-confirmar {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8em;
}

.btn-confirmar:hover {
  background-color: #218838;
}

.btn-abono {
  background-color: #ffc107;
  color: #000;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8em;
}

.btn-abono:hover {
  background-color: #e0a800;
}

/* Estilos para resumen de comisiones */
.comision-summary {
  background-color: #e9ecef;
  padding: 10px;
  border-radius: 5px;
  margin: 10px 0;
}

.comision-detail {
  font-size: 0.9em;
  color: #666;
  margin-top: 5px;
}