.frontend-body {
  /* Dark theme colors */
  --bg-primary: #121212;
  --bg-secondary: #1e1e1e;
  --text-primary: #e0e0e0;
  --text-secondary: #ffffff;
  --accent-color: #8b56cc;
  --accent-hover: #9a67ea;
  --error-color: #cf6679;
  --success-color: #03dac6;
  --border-color: #8b56cc;
  --bg-tertiary: #252525;
  --bg-selected: #4d4d4d;
  --bg-hover: #454545;
  --text-on-accent: #ffffff;
  --border-disabled: #4a5568;
  --text-disabled: #4a5568;
  --error-hover: #d32f2f;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}.app {
  /* Light theme colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f5;
  --text-primary: #333333;
  --text-secondary: #444444;
  --accent-color: #4CAF50;
  --accent-hover: #45a049;
  --error-color: #f44336;
  --success-color: #2E7D32;
}

.backend-body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}/* Consolidated backend components CSS */

/* MenuEditor styles */
.menu-container {
  padding: 20px;
  max-width: auto;
  margin: 0 auto;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.menu-header h2 {
  color: #333;
  font-size: 24px;
  margin: 0;
}

.btn-new {
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  opacity: 1;
  transition: opacity 0.2s;
}

.btn-new.disabled {
  opacity: 0.6;
}

.btn-new.servido {
  background-color: #33cc33;
}
.btn-new.servido:hover {
  background-color: #2db82d;
}

.btn-new.en_preparacion {
  background-color: #ff9933;
}
.btn-new.en_preparacion:hover {
  background-color: #e68a2e;
}

.btn-new.pendiente {
  background-color: #ff3333;
}
.btn-new.pendiente:hover {
  background-color: #e62e2e;
}

.btn-new.cerrado {
  background-color: #9ca3af;
}
.btn-new.cerrado:hover {
  background-color: #8a919b;
}

.btn-new.cancelado {
  background-color: #990000;
  color: white;
  text-decoration: line-through;
}

.btn-new.cancelado:hover {
  background-color: #800000;
}

.plus-icon {
  font-size: 18px;
}

.menu-actions {
  margin-bottom: 20px;
}

.btn-toggle {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-toggle.active {
  background-color: #e0e0e0;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.menu-card {
  border-radius: 8px;
  padding: 15px;
  transition: transform 0.2s ease;
}

.menu-card:hover {
  transform: translateY(-5px);
}

.menu-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 8px;
}

.menu-card-header h3 {
  margin: 0;
  font-size: 18px;
  color: #333;
  flex: 1;
  line-height: 1.3;
  max-height: 2.6em;
  padding-right: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.estado-badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
}

.estado-badge.servido {
  background-color: #33cc33;
  color: white;
}

.estado-badge.en_preparacion {
  background-color: #ff9933;
  color: white;
}

.estado-badge.pendiente {
  background-color: #ff3333;
  color: white;
}

.estado-badge.cerrada {
  background-color: rgb(102, 102, 102);
  color: white;
}

.estado-badge.pagada {
  background-color: #FFD700;
  color: #333;
  font-weight: bold;
}

.estado-badge.cerrado {
  background-color: #9ca3af;
  color: white;
}

.estado-badge.cancelado {
  background-color: #990000;
  color: white;
  text-decoration: line-through;
}

.estado-badge.disponible {
  background-color: #4CAF50;
  color: white;
}

.estado-badge.no-disponible {
  background-color: #f44336;
  color: white;
}

.menu-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-info {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.menu-info span:last-child {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 1;
}

.config-value {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: bold;
  color: #555;
}

/* Boolean field styles for configuration popup */
.boolean-field-container {
  margin: 10px 0;
}

.boolean-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background-color: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  width: fit-content;
}

.boolean-field:hover {
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.boolean-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: #007bff;
  vertical-align: middle;
}

.boolean-label {
  font-weight: 600;
  color: #495057;
  font-size: 14px;
  letter-spacing: 0.5px;
  line-height: 1;
  vertical-align: middle;
}

.boolean-field:has(.boolean-checkbox:checked) {
  background-color: #e7f3ff;
  border-color: #007bff;
}

.boolean-field:has(.boolean-checkbox:checked) .boolean-label {
  color: #007bff;
  font-weight: 700;
}

.info-label {
  font-weight: bold;
  color: #555;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}

.menu-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.menu-actions button {
  padding: 5px 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.menu-actions button:first-child {
  background-color: #2196F3;
  color: white;
}

.menu-actions button:last-child {
  background-color: #f44336;
  color: white;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.menu-editor-popup {
  width: 90%;
  max-width: 500px;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.menu-editor-popup h2 {
  margin-top: 0;
  color: #333;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.form-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.form-actions button:first-child {
  background-color: #e41717;
}

.form-actions button:last-child {
  background-color: #4CAF50;
  color: white;
}

/* ExtrasPopup styles */
.extras-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.extras-popup-content {
  background-color: #e6e6e6;
  padding: 25px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: #212529;
}

.extras-popup-content h2 {
  margin-top: 0;
  color: #212529;
  margin-bottom: 20px;
}

.extras-popup-content h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: #333;
  font-size: 1.1em;
}

.extras-popup-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.extras-popup-content li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.extras-popup-content li:last-child {
  border-bottom: none;
}

.extras-popup-content li button {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em;
}

.extras-popup-content select {
  width: calc(100% - 80px); /* Adjust width to make space for button */
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-right: 10px;
}

.extras-popup-content button {
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
}

.extras-popup-content .popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.extras-popup-content .popup-actions button:first-child {
  background-color: #6c757d;
}

.extras-popup-content .popup-actions button:last-child {
  background-color: #28a745;
}


/* MesaEditor styles */
.mesa-editor {
  max-width: 500px;
  margin: 20px auto;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mesa-editor h2 {
  margin-top: 0;
  color: #333;
}

.warning {
  color: #dc3545;
  font-size: 14px;
  margin-top: 0;
  padding: 10px 12px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  width: 100%;
  box-sizing: border-box;
}

.warning p {
  margin: 0;
  line-height: 1.4;
}

/* Mesa Editor Popup Styles */
.mesa-editor-popup {
  background-color: #e6e6e6;
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  max-height: 90vh;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: #212529;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}


.mesa-editor-popup h2 {
  margin-top: 0;
  color: #212529;
}

.mesa-editor-popup .form-group {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  flex: 1;
  overflow-y: auto;
  max-height: calc(95vh - 200px);
}

.mesa-editor-popup .form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  align-items: flex-start;
}

.mesa-editor-popup .form-row:last-child {
  margin-bottom: 0;
}

.mesa-editor-popup .form-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.mesa-editor-popup .form-col label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mesa-editor-popup .form-col input[type="number"] {
  width: 100%;
  min-width: 60px;
  max-width: 120px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
}

.mesa-editor-popup .form-col input:not([type="number"]):not(.nombre-input),
.mesa-editor-popup .form-col select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  background-color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mesa-editor-popup .form-col select {
  appearance: auto;
  cursor: pointer;
}

.mesa-editor-popup .form-col input:focus,
.mesa-editor-popup .form-col select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Ensure Estado field aligns properly when alone in a row */
.mesa-editor-popup .form-col.form-col-full {
  flex: 0 0 50%;
  max-width: calc(50% - 10px);
}

/* Disabled input styling */
.mesa-editor-popup .form-col input:disabled,
.mesa-editor-popup .form-col select:disabled {
  background-color: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

.mesa-editor-popup .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.mesa-editor-popup .form-group input,
.mesa-editor-popup .form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
}

.mesa-editor-popup .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  flex-shrink: 0;
}

.mesa-editor-popup .form-actions button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.mesa-editor-popup .form-actions button[type="button"] {
  background-color: #6c757d;
  color: white;
}

/* Pedido Items List Styles */
.pedido-items-list {
  list-style: none;
  padding: 10px 15px;
  border: 1px solid #eee;
  border-radius: 4px;
  margin: 0 -15px;
  max-height: 300px;
  overflow-y: auto;
  background-color: #f9f9f9;
  width: calc(100% + 30px);
  box-sizing: border-box;
}

.pedido-items-list li {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.pedido-items-list li:last-child {
  border-bottom: none;
}

.pedido-items-list .item-content {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
  box-sizing: border-box;
}

.pedido-items-list .item-details {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 10px;
  box-sizing: border-box;
}

.pedido-items-list .item-actions {
  flex-shrink: 0;
  box-sizing: border-box;
}

/* Table view specific styles for pedido-items-list */
.mesa-table .pedido-items-list {
  max-height: 200px;
  margin: 0;
  padding: 5px;
  background-color: transparent;
}

.mesa-table .pedido-items-list li {
  padding: 4px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.mesa-table .pedido-items-list li:last-child {
  border-bottom: none;
}

.mesa-table .pedido-items-list .item-name {
  flex: 1;
  text-align: left;
}

.mesa-table .pedido-items-list .item-price {
  min-width: 60px;
  text-align: right;
  font-weight: bold;
  color: #1e293b;
}

.extras-container {
  width: 100%;
  margin-top: 5px;
  padding-left: 0;
}

.extras-list-popup {
  list-style-type: none;
  padding: 5px 0 0 15px;
  margin: 0;
  border-top: 1px solid #eee;
  font-size: 0.9em;
  width: 100%;
}

.extras-list-popup li {
  color: #333;
  padding: 2px 0;
}

/* Responsive adjustments for small screens */
@media (max-height: 700px) {
  .mesa-editor-popup {
    max-height: 85vh;
    padding: 15px;
  }
  
  .mesa-editor-popup .form-group {
    max-height: calc(85vh - 180px);
  }
  
  .pedido-items-list {
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-height: 600px) {
  .mesa-editor-popup {
    max-height: 80vh;
    padding: 10px;
  }
  
  .mesa-editor-popup .form-group {
    max-height: calc(80vh - 160px);
  }
  
  .pedido-items-list {
    max-height: none;
    overflow-y: visible;
  }
}

.mesa-editor-popup .form-actions button[type="submit"] {
  background-color: #0d6efd;
  color: white;
}

.mesa-editor-popup .form-actions button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* MesasList styles */
.mesa-container {
  padding: 8px 16px;
  max-width: auto;
  margin: 0 auto;
}

.mesa-header {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 8px;
}

.mesa-buttons {
  display: flex;
  gap: 10px;
  margin-left: auto;
}


.plus-icon {
  font-size: 1.2em;
}

.mesa-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.mesa-card {
  position: relative;
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.mesa-card:hover {
  transform: translateY(-5px);
}

/* Card header */
.mesa-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px 8px 0 0;
}

.mesa-card-header.pendiente {
  background-color: #ffcccc;
  border-bottom: 2px solid #ff3333;
}

.mesa-card-header.en_preparacion {
  background-color: #ffcc99;
  border-bottom: 2px solid #ff9933;
}

.mesa-card-header.servido {
  background-color: #ccffcc;
  border-bottom: 2px solid #33cc33;
}

.mesa-card-header.cerrada {
  background-color: rgb(182, 182, 182);
  border-bottom: 2px solid rgb(80, 80, 80);
}

.mesa-card-header.cancelado {
  background-color: #ffb3b3;
  border-bottom: 2px solid #660000;
}

.mesa-card-header.cancelado button {
  color: white !important;
}

.mesa-card-header.cerrado {
  background-color: #e5e7eb;
  border-bottom: 2px solid #9ca3af;
}

.mesa-card-header h3 {
  margin: 0;
  font-size: 1.25em;
  color: #000000;
}

.estado-badge {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  color: white;
}

.estado-badge.libre {
  background-color: #4CAF50;
}

.estado-badge.ocupada {
  background-color: #f44336;
}

.estado-badge.reservada {
  background-color: #FFC107;
  color: #333;
}

/* Pedidos badge styles */
.estado-badge.pedidos {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  background-color: #e3f2fd;
  color: #1565c0;
}

.mesa-card-body {
  
  border-radius: 8px;
  
}

.mesa-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95em;
  padding-bottom: 8px;
}

.mesa-info:not(:last-child) {
  border-bottom: 1px solid #e2e8f0;
  padding: 3px;
}

.info-label {
  font-weight: bold;
  color: #555;
  display: flex;
  align-items: center;
}

/* PedidosList styles */
.mesa-header h2 {
  margin: 0;
  font-size: 1.5em;
  color: #0369a1;
}

.customer-group {
  background-color: #f0f9ff;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.pedido-card {
  border-radius: 10px;
  margin: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
  background-color: white;
}

.pedido-card:hover {
  transform: translateY(-5px);
}


.info-value {
  color: #1e293b;
  font-weight: 500;
}


.pedido-items {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #acacac;
  width: 100%;
}

.pedido-items h4 {
  margin-bottom: 5px;
  color: #555;
  font-size: 0.95em;
}

.pedido-items ul {
  padding-left: 0;
  margin: 0;
  width: 100%;
}

.pedido-item {
  margin-bottom: 5px;
  padding: 3px 0;
  list-style-type: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.item-name {
  flex: 1;
  text-align: left;
}

.item-price {
  min-width: 60px;
  text-align: right;
  font-weight: bold;
  color: #1e293b;
}

.extras-list-inline {
  display: inline;
  list-style-type: none;
  padding-left: 5px;
  margin: 0;
}

.extras-list-inline li {
  display: inline;
  font-size: 0.8em;
  color: #555;
}

.extras-list-inline li::before {
  content: " / ";
}

.extras-list-inline li:first-child::before {
  content: "";
}

.extras-list-popup {
  list-style-type: none;
  padding: 5px 0 0 0;
  margin: 5px 0 0 0;
  border-top: 1px solid #eee;
  font-size: 0.9em;
  width: 100%;
  box-sizing: border-box;
}

.extras-list-popup li {
  color: #333;
  padding: 2px 50px 2px 0;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.extras-list-popup .extra-name {
  display: inline-block;
  text-align: left;
}

.extras-list-popup .extra-price {
  position: absolute;
  right: 43px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 60px;
  text-align: right;
  font-weight: bold;
  color: #1e293b;
}

/* View Dropdown Styles */
.view-dropdown {
  position: relative;
  display: inline-block;
}

.view-dropdown button {
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-dropdown-content {
  display: none;
  position: absolute;
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
}

.view-dropdown-content a {
  color: #333;
  padding: 8px 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-dropdown-content a:hover {
  background-color: #f1f1f1;
}

.view-dropdown:hover .view-dropdown-content {
  display: block;
}

/* List View Styles */
.mesa-list {
  width: 100%;
  margin-top: 8px;
}

.mesa-table {
  width: 100%;
  border-collapse: collapse;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.mesa-table th {
  background-color: #0369a1;
  color: white;
  padding: 12px;
  text-align: left;
  cursor: pointer;
  user-select: none;
}

.mesa-table th:hover {
  background-color: #0284c7;
}

.mesa-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.mesa-table td.text-center,
.mesa-table th.text-center {
  text-align: center;
}

.mesa-table td.text-left,
.mesa-table th.text-left {
  text-align: left;
}

.mesa-table tr:nth-child(odd) {
  background-color: #e2e2e2;
}

.mesa-table tr:nth-child(even) {
  background-color: white;
}

.mesa-table tr:hover {
  background-color: #f8f9fa;
}

/* Checkout styles */
.cuentas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.cuenta-card {
  position: relative;
  background-color: #dbdbdb;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s ease;
}

.cuenta-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.cuenta-card h3 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 1.1em;
}

.cuenta-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  color: rgb(0, 0, 0);
  margin-bottom: 10px;
}

.cuenta-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.9em;
  color: #555;
}

.cuenta-info span {
  display: flex;
  justify-content: space-between;
}

.selection-checkbox {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    z-index: 2;
}

.cuenta-card.selected .selection-checkbox {
    background-color: #007bff;
    color: white;
    border-color: #0056b3;
}


/* Login styles */
.login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

/* Password input with eye icon */
.password-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-input-container input {
  width: 100%;
  padding-right: 40px;
  box-sizing: border-box;
}

.toggle-password-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.2s, background-color 0.2s;
}

.toggle-password-btn:hover {
  color: #333;
  background-color: rgba(0, 0, 0, 0.05);
}

.toggle-password-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Total Cuenta Styles */
.mesa-card-footer {
  background-color: #f8f9fa;
  border-top: 2px solid #0369a1;
  padding: 12px 15px;
  border-radius: 0 0 8px 8px;
  margin-top: 10px;
}

.total-cuenta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.1em;
  color: #1e293b;
}

.total-cuenta-label {
  color: #0369a1;
  font-size: 1em;
}

.total-cuenta-value {
  color: #059669;
  font-size: 1.2em;
  font-weight: 700;
  background-color: #d1fae5;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid #10b981;
}

.login-box {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
  margin: 2rem auto;
  box-sizing: border-box;
}

.login-box h1 {
  margin-bottom: 1.5rem;
  color: #333;
  font-size: 1.75rem;
}

.login-box form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.login-box .input-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
}

.login-box .input-group label {
  font-weight: 500;
  color: #555;
  font-size: 0.95rem;
}

.login-box .input-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  box-sizing: border-box;
}

.login-box .input-group input:focus {
  outline: none;
  border-color: #eb512a;
  box-shadow: 0 0 0 2px rgba(235, 81, 42, 0.1);
}

.login-box .btn-primary {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  margin-top: 0.5rem;
}
/* Mesa Select Popup */
.mesa-select-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  z-index: 1001;
  width: 80%;
  max-width: 600px;
}

.mesa-select-popup .popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.mesa-select-popup .close-button {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.mesa-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
}

.mesa-select-card {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  font-size: 1rem;
  background-color: #f9f9f9;
}

.mesa-select-card:hover {
  background-color: #e0e0e0;
}

.mesa-select-card.selected {
  background-color: #007bff;
  color: white;
  border-color: #0056b3;
}
/* Selection styles */
.mesa-card .selection-checkbox {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  background-color: rgba(0,0,0,0.2);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-weight: bold;
}

.mesa-card.selected {
  outline: 2px solid #007bff;
  box-shadow: 0 0 10px rgba(0,123,255,0.5);
}

.mesa-table tr.selected {
  background-color: #cce5ff !important;
}

.blinking-bell {
  animation: blink 1s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

.cuenta-card.selected {
  box-shadow: 0 0 0 3px #007bff, 0 4px 8px rgba(0, 0, 0, 0.2);
  border-color: #007bff;
  transform: translateY(-2px);
}

.mesa-table tr.selected {
  background-color: #a8d1ff !important; /* A light blue to indicate selection */
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.mesa-table tr.selected td {
  color: #000; /* Ensure text is readable */
}

/* Grid view styles for Cocina component */
.items-list-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
}

.grid-item {
  padding: 5px;
  border-left: 3px solid #ddd;
  background-color: #f9f9f9;
  border-radius: 4px;
}

.extras-list-grid {
  margin-top: 3px;
  padding-left: 10px;
  border-left: 2px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.extra-item {
  display: block;
}

/* Mesero Editor Popup Styles */
.mesero-editor-popup {
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: #212529;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mesero-editor-popup h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #212529;
  font-size: 1.5rem;
}

.mesero-editor-popup form {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: calc(90vh - 100px);
}

.mesero-editor-popup .form-group {
  margin-bottom: 15px;
  flex-shrink: 0;
}

.mesero-editor-popup .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
}

.mesero-editor-popup .form-group input[type="text"],
.mesero-editor-popup .form-group input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  box-sizing: border-box;
  background-color: white;
}

.mesero-editor-popup .form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mesero-editor-popup .checkbox-field {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mesero-editor-popup .checkbox-field label {
  margin-bottom: 0;
}

.mesero-editor-popup .checkbox-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #007bff;
}

.mesero-editor-popup .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  flex-shrink: 0;
  padding-top: 15px;
  border-top: 1px solid #e5e7eb;
}

.mesero-editor-popup .form-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mesero-editor-popup .btn-save {
  background-color: #0d6efd;
  color: white;
}

.mesero-editor-popup .btn-save:hover:not(:disabled) {
  background-color: #0b5ed7;
}

.mesero-editor-popup .btn-cancel {
  background-color: #6c757d;
  color: white;
}

.mesero-editor-popup .btn-cancel:hover {
  background-color: #5c636a;
}

.mesero-editor-popup .btn-delete {
  background-color: #dc3545;
  color: white;
  position: relative;
  padding-right: 35px;
}

.mesero-editor-popup .btn-delete:hover:not(:disabled) {
  background-color: #bb2d3b;
}

.mesero-editor-popup .btn-delete:disabled {
  background-color: #cccccc;
  color: #666666;
  cursor: not-allowed;
}

.mesero-editor-popup .delete-button-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mesero-editor-popup .delete-button-wrapper {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mesero-editor-popup .delete-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
}

.mesero-editor-popup .delete-warning-text {
  font-size: 12px;
  color: #dc3545;
  text-align: center;
}

/* Delete confirmation popup */
.mesero-delete-popup {
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: 12px;
  max-width: 450px;
  width: 90%;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: #212529;
}

.mesero-delete-popup h2 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #212529;
}

.mesero-delete-popup p {
  margin-bottom: 10px;
}

.mesero-delete-popup .warning-text {
  color: #dc3545;
  font-size: 0.9rem;
}

.mesero-delete-popup .btn-delete-confirm {
  background-color: #dc3545;
  color: white;
}

.mesero-delete-popup .btn-delete-confirm:hover {
  background-color: #bb2d3b;
}

/* Responsive adjustments for mesero editor */
@media (max-height: 600px) {
  .mesero-editor-popup {
    max-height: 95vh;
    padding: 20px;
  }
  
  .mesero-editor-popup form {
    max-height: calc(95vh - 80px);
  }
}

/* Login responsive styles */
@media (max-width: 480px) {
  .login-box {
    margin: 1rem;
    padding: 1.5rem;
    max-width: calc(100% - 2rem);
  }

  .login-box h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .login-box .input-group input {
    padding: 0.625rem;
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

@media (max-width: 360px) {
  .login-box {
    margin: 0.75rem;
    padding: 1.25rem;
    max-width: calc(100% - 1.5rem);
  }

  .login-box h1 {
    font-size: 1.25rem;
  }

  .login-box .input-group label {
    font-size: 0.875rem;
  }
}
/* Admin Chat Window Styles */
.admin-chat-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
}

.admin-chat-container.closed {
  height: 60px;
  cursor: pointer;
}

.admin-chat-container:hover {
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Chat Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.chat-header:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.header-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-icon {
  color: #2563eb;
  opacity: 0.9;
  position: relative;
}

@keyframes blink-red {
  0% { color: #2563eb; }
  50% { color: #dc2626; }
  100% { color: #2563eb; }
}

.header-icon.has-unread {
  animation: blink-red 1s infinite;
}

.unread-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #dc2626;
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 11px;
  font-weight: bold;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-text h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.2;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.header-toggle {
  color: #6b7280;
  transition: transform 0.3s ease;
}

.toggle-icon {
  transition: transform 0.3s ease;
}

.toggle-icon.open {
  transform: rotate(180deg);
}

/* Mesero Selector */
.mesero-selector-container {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.mesero-selector {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #1f2937;
  outline: none;
  transition: all 0.2s ease;
}

.mesero-selector:focus {
  border-color: #2563eb;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.selected-mesero-indicator {
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
  font-style: italic;
}

/* Chat Body */
.chat-body {
  display: flex;
  flex-direction: column;
  height: calc(100% - 60px);
  background: rgba(255, 255, 255, 0.05);
}

.messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.messages-container::-webkit-scrollbar {
  width: 4px;
}

.messages-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
}

.messages-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

/* Messages */
.message {
  display: flex;
  max-width: 80%;
}

.message.admin {
  align-self: flex-end;
}

.message.mesero {
  align-self: flex-start;
}

.message.clickable {
  cursor: pointer;
  transition: transform 0.1s ease;
}

.message.clickable:hover {
  transform: translateX(2px);
}

.message-content {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}

.message-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 600;
}

.mesero-name {
  color: #059669;
}

.admin-label {
  color: #2563eb;
}

.recipient-label {
  color: #ffffff;
}

.broadcast-badge {
  background: #f59e0b;
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 500;
}

.message.admin .message-content {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.mesero .message-content {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-bottom-left-radius: 4px;
}

.message.mesero.clickable .message-content {
  background: #e5e7eb;
  color: #1f2937;
  border: 1px solid #d1d5db;
}

.message.mesero.clickable:hover .message-content {
  background: #f3f4f6;
}

.message.message-all .message-content {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  align-self: center;
  max-width: 90%;
}

.message-text {
  margin: 0;
}

.message-time {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
}

.message.admin .message-time {
  color: rgba(255, 255, 255, 0.8);
}

.message.mesero .message-time {
  color: rgba(255, 255, 255, 0.8);
}

.message.mesero.clickable .message-time {
  color: #6b7280;
}

/* Chat Input */
.chat-input-container {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #1f2937;
  outline: none;
  transition: all 0.2s ease;
}

.chat-input::placeholder {
  color: #6b7280;
}

.chat-input:focus {
  border-color: #2563eb;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.send-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.send-button:hover:not(:disabled) {
  background: #3b82f6;
  transform: translateY(-1px);
}

.send-button:active:not(:disabled) {
  transform: translateY(0);
}

.send-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 480px) {
  .admin-chat-container {
    width: calc(100vw - 32px);
    right: 16px;
    bottom: 16px;
    left: 16px;
    height: 480px;
  }
}

@media (max-width: 768px) {
  .admin-chat-container {
    width: 320px;
  }
}

@media (max-width: 390px) {
  .admin-chat-container {
    width: calc(100vw - 20px);
    right: 10px;
    bottom: 10px;
    left: 10px;
    height: 450px;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .admin-chat-container {
    background: rgba(17, 24, 39, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
  }
  
  .header-text h3 {
    color: #f9fafb;
  }
  
  .chat-input {
    color: #f9fafb;
    background: rgba(255, 255, 255, 0.1);
  }
}

/* Entrance animation */
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.admin-chat-container {
  animation: slideUp 0.3s ease-out;
}/* Scoped dark theme styles exclusively for PedidoMesa component */

/* Main container styles */
.nuevo-pedido-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 1rem 1.5rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: auto;
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Typography within container */
.nuevo-pedido-container h1,
.nuevo-pedido-container h2,
.nuevo-pedido-container h3,
.nuevo-pedido-container h4,
.nuevo-pedido-container h5,
.nuevo-pedido-container h6 {
  margin: 0 0 1rem 0;
  font-weight: 600;
  color: var(--text-secondary);
}

.nuevo-pedido-container h1 {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
}

.nuevo-pedido-container a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nuevo-pedido-container a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.nuevo-pedido-container p {
  margin: 0 0 1rem 0;
}

.nuevo-pedido-container ul,
.nuevo-pedido-container ol {
  padding-left: 1.5rem;
  margin: 0 0 1rem 0;
}

.nuevo-pedido-container li {
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
  background-color: var(--bg-secondary);
  border-radius: 6px;
  transition: all 0.2s ease;
  list-style-type: none;
  border-left: 3px solid var(--accent-color);
}

.nuevo-pedido-container li:hover {
  background-color: var(--bg-tertiary);
  transform: translateX(4px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nuevo-pedido-container li:not(:last-child) {
  margin-bottom: 0.75rem;
}

/* Client section styles */
.clientes-section {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.clientes-section h3 {
  color: var(--accent-color);
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  font-weight: 500;
}

.clientes-section ul {
  padding: 0;
  margin: 0;
}

.clientes-section li {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  transition: all 0.2s ease;
}

/*.clientes-section li:last-child {
  border-bottom: none;
}*/

.clientes-section li:hover {
  background: var(--bg-tertiary);
}

/* Button group styles */
.button-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.action-button {
  background: var(--accent-color);
  color: var(--text-on-accent);
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.action-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.action-button:active {
  transform: translateY(0);
}

.success-action-button {
  background: var(--success-color);
  color: var(--bg-primary);
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.success-action-button:hover {
  background: #23e0cf; /* A slightly lighter shade for hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}
/* Responsive design */
@media (max-width: 768px) {
  .nuevo-pedido-container {
    padding: 0 1rem 0.5rem 1rem;
  }
  
  .nuevo-pedido-container h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
  
  .action-button {
    padding: 0.8rem;
  }
  
  .clientes-section {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .button-group {
    gap: 0.5rem;
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
  }
}

/* Status messages */
.loading-message {
  color: var(--success-color);
  text-align: center;
  font-style: italic;
}

.error-message {
  color: var(--error-color);
  text-align: center;
  font-weight: 500;
}

/* Menu Popup Styles */
.menu-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Bloquear scroll del fondo cuando el popup está abierto */
body.menu-popup-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.menu-popup-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

.menu-popup-content {
  background-color: var(--bg-secondary);
  padding: 10px 20px 20px 20px;
  border-radius: 12px;
  width: 95%;
  max-width: 1200px;
  max-height: 70vh;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--accent-color);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
  margin: 0 auto;
}

/* Estilos para botón de cerrar con react-icons - posicionado sobre el borde superior */
.menu-popup-close {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: absolute;
  top: -20px; /* Posicionado sobre el borde superior */
  right: 20px; /* Posicionado sobre el borde derecho */
  background: var(--accent-color);
  border: none;
  color: var(--text-on-accent);
  font-size: 20px;
  padding: 8px;
  z-index: 1002;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.menu-popup-close:hover {
   background: var(--accent-hover);
   transform: scale(1.1);
}

.menu-popup-home {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: absolute;
  top: -20px; /* Posicionado sobre el borde superior */
  right:20px; /* Posicionado sobre el borde derecho */
  background: var(--accent-color);
  border: none;
  color: var(--text-on-accent);
  font-size: 20px;
  padding: 8px;
  z-index: 1002;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.menu-popup-home:hover {
   background: var(--accent-hover);
   transform: scale(1.1);
}

.category-group {
  margin-bottom: 25px;
}

.category-title {
  color: var(--accent-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  font-size: 1.1rem;
}

.pedidos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 15px;
.menu-item-image {
  width: 100%;
  height: auto;
  border-radius: 8px 8px 0 0;
  margin-bottom: 10px;
  display: block;
}

.menu-item {
  flex-direction: column;
}
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.menu-item:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
}

.menu-item button {
  background-color: var(--accent-color);
  color: var(--text-on-accent);
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

.menu-item button:hover {
  background-color: var(--accent-hover);
  transform: scale(1.05);
}

.menu-item span {
  font-weight: 500;
}

/* Styles for order item list expansion */
.pedido-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
  padding-left: 1rem; /* Adjust as needed */
  margin-top: 0.5rem; /* Adjust as needed */
  font-size: 0.9em; /* Adjust as needed */
}

.pedido-items.expanded {
  max-height: 500px; /* A value large enough to contain all items */
  opacity: 1;
}

/* Estilo para cliente seleccionado */
.clientes-section ul li.selected {
  background-color: #3f3f3f;
  font-weight: bold;
  font-size: 1.2em;
  color: #ffffff;
}

.clientes-section ul li {
  cursor: pointer;
  padding: 8px;
  margin: 4px 0;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.clientes-section ul li:hover {
  background-color: var(--bg-hover);
}

/* Quantity controls styles */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-controls button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--accent-color);
  background: var(--bg-secondary);
  color: var(--accent-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
}

.quantity-controls button:hover {
  background: var(--accent-color);
  color: var(--text-on-accent);
  transform: scale(1.1);
}

.quantity-controls button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--border-disabled);
  color: var(--text-disabled);
  position: relative;
}

.quantity-controls button:disabled::after {
  content: "✓";
  position: absolute;
  font-size: 10px;
  right: -5px;
  top: -5px;
  color: var(--text-disabled);
}

.quantity-controls button:disabled:hover {
  background: transparent;
  transform: none;
}

.quantity-controls span {
  min-width: 32px;
  text-align: center;
  font-weight: 500;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0 4px;
}

/* Menu popup action buttons */
.menu-popup-buttons {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 10px;
  padding: 0 20px 20px;
  width: 100%;
  flex-wrap: wrap;
}

.menu-popup-buttons button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

/* Special styling for cancel button in category selection steps (2 and 3) */
.menu-popup-buttons .cancel-button.category-selection-button {
  flex: unset;
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

.menu-popup-buttons button:active {
  transform: translateY(0);
}

.confirm-button {
  background-color: var(--accent-color);
  color: white;
}

.confirm-button:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.confirm-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
  background-color: #6c757d; /* Color gris para estado deshabilitado */
}

.success-action-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
  background-color: #6c757d; /* Color gris para estado deshabilitado */
}

.cancel-button {
  background-color: var(--error-color);
  color: white;
}

.cancel-button:hover {
  background-color: var(--error-hover);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.thank-you-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  color: var(--text-primary);
}

.thank-you-step h3 {
  color: var(--accent-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.thank-you-step p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Order status badges */
.estado-badge {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: capitalize;
  display: inline-block;
  margin: 4px 0;
}

.estado-badge.pendiente {
  background-color: #dc2626;
  color: #ffffff;
}

.estado-badge.en_preparacion {
  background-color: #997e26;
  color: #ffffff;
}

.estado-badge.listo {
  background-color: #166534;
  color: #ffffff;
}

.estado-badge.servido {
  background-color: #166534;
  color: #ffffff;
}

.estado-badge.entregado {
  background-color: rgba(37, 99, 235, 0.2);
  color: #2563eb;
}

.estado-badge.cerrada {
  background-color: #4b5563;
  color: #ffffff;
}

.estado-badge.cancelado {
  background-color: rgb(75, 85, 99);
  color: #ffffff;
  text-decoration: line-through;
}

.status-dropdown {
  position: absolute;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
  margin-top: 5px;
  right: 0; /* Align to the right of the badge */
  min-width: 150px;
  overflow: hidden;
}

.status-option {
  display: block;
  width: 100%;
  padding: 10px 15px;
  text-align: left;
  background-color: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-size: 0.9rem;
  text-transform: capitalize;
}

.status-option:hover {
  background-color: var(--bg-tertiary);
}

.status-option.pendiente {
  color: #dc2626;
}

.status-option.en_preparacion {
  color: #997e26;
}

.status-option.listo {
  color: #166534;
}

.status-option.entregado {
  color: #2563eb;
}

.status-option.cancelado {
  color: #4b5563;
}

.pedido-header {
  position: relative; /* Needed for absolute positioning of dropdown */
}

/* Not you link styles */
.not-you-link {
  
  color: white;
  cursor: pointer;
  padding: 0.5rem 1rem;
  margin-top: -0.5rem;
  background: transparent;
  border: none;
  transition: color 0.2s ease;
}

.not-you-link:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

/* Estilo para el número de mesa en un círculo */
.mesa-numero-circulo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; /* Tamaño del círculo */
  height: 40px; /* Tamaño del círculo */
  border-radius: 50%; /* Hace que sea un círculo */
  background-color: var(--error-color); /* Color de fondo del círculo */
  color: var(--text-on-accent); /* Color del texto dentro del círculo */
  font-size: 1.2rem; /* Tamaño de la fuente */
  font-weight: bold;
  margin-left: 10px; /* Espacio a la izquierda del texto "Tu mesa es la #" */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Sombra sutil */
}

.header-image {
  width: 100%;
  height: auto;
  display: block; /* Ensures no extra space below the image */
   /* Add some space below the image, similar to the h1 */
}

/* Category Selection Styles */
.category-selection {
  text-align: center;
}

.category-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.category-button {
  background: var(--accent-color);
  color: var(--text-on-accent);
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.category-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}


.menu-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.menu-item .menu-item-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.menu-item .menu-item-name {
  margin-bottom: 4px;
  font-size: 1.1em;
  font-weight: 500;
  text-align: center;
  width: 100%;
}

.menu-item .menu-item-detail {
  font-size: 0.9em;
  color: var(--text-secondary);
  text-align: center;
  width: 100%;
  line-height: 1.3;
}

.menu-item-footer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  width: 100%;
}

.menu-item-footer .menu-item-price {
  font-weight: bold;
  color: var(--error-color);
  font-size: 1.1rem;
}

.popup-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
  text-align: center;
}

.popup-header h3,
.popup-header h4 {
  margin: 0;
  text-align: center;
  width: 100%;
}

.menu-popup-content h3 {
  text-align: center;
  width: 100%;
  margin-bottom: 1rem;
}

.menu-popup-content p {
  text-align: center;
  width: 100%;
  margin-bottom: 1.5rem;
}

.menu-popup-content .estado-badge {
  width: fit-content;
}

.order-summary-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
}

.order-summary-icons span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1rem;
  font-weight: normal;
  color: var(--text-primary);
}

.order-total {
  margin-top: 2rem;
  padding: 1rem;
  background-color: var(--bg-tertiary);
  border-radius: 8px;
  border-top: 2px solid var(--accent-color);
  text-align: right;
}

.order-total h4 {
  margin: 0;
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
}

/* Styles for extras buttons */
.extras-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
  justify-content: center;
}

.extras-controls label {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 1rem;
  border: 1px solid #3b3b3b; /* Gray border for inactive state */
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: var(--bg-secondary);
  color: #919191; /* Dark gray text for inactive state */
  font-size: 0.9rem;
  font-weight: 500;
  user-select: none;
}

.extras-controls label:hover {
  background-color: var(--bg-tertiary);
  transform: translateY(-1px);
}

.extras-controls label input {
  display: none;
}

.extras-controls label:has(input:checked) {
  border-color: var(--success-color);
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
  font-weight: 600;
}

.extras-controls label:has(input:disabled) {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--bg-tertiary);
}

.extras-controls label:has(input:disabled):hover {
  transform: none;
  background-color: var(--bg-tertiary);
}

/* Specific styles for radio-type extras (single selection) */
.extras-controls label:has(input[type="radio"]) {
  border-style: solid;
}

.extras-controls label:has(input[type="checkbox"]) {
  border-style: dashed;
}

/* Responsive design for extras */
@media (max-width: 768px) {
  .extras-controls {
    gap: 0.3rem;
    justify-content: center;
  }
  
  .extras-controls label {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
  }
}

/* Styles for menu item header in order summary */
.menu-item-header {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.menu-item-header .menu-item-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.menu-item-header span:last-child {
  color: var(--error-color);
  font-weight: 500;
  font-size: 0.9rem;
  text-align: center;
}

/* Styles for extra summary items in order summary */
.extra-summary-item {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 1rem;
  border: 1px solid var(--success-color);
  border-radius: 20px;
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success-color);
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0.2rem;
  user-select: none;
}

.item-extras-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.5rem;
  justify-content: center;
}

/* New Client Form Styles */
.new-client-form {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 0.1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.new-client-form h3 {
  color: var(--accent-color);
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  font-weight: 500;
  text-align: center;
}

.new-client-form .form-group {
  margin-bottom: 1rem;
}

.new-client-form label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-weight: 500;
  text-align: left;
}

.new-client-form input,
.new-client-form select,
.new-client-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.new-client-form input:focus,
.new-client-form select:focus,
.new-client-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.new-client-form .form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.new-client-form .submit-button {
  background: var(--accent-color);
  color: var(--text-on-accent);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.new-client-form .submit-button:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.new-client-form .cancel-button {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.new-client-form .cancel-button:hover {
  background: var(--bg-secondary);
  border-color: var(--accent-color);
}

/* Responsive design for new client form */
@media (max-width: 768px) {
  .new-client-form {
    padding: 1rem;
  }
  
  .new-client-form .form-actions {
    flex-direction: column;
  }
}
/* Estilos para el popup de pago con QR */
.qr-payment-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.qr-payment-container {
  background: white;
  border-radius: 12px;
  padding: 16px;
  max-width: 480px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.qr-payment-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.qr-payment-close:hover {
  background-color: #f0f0f0;
}

.qr-payment-content {
  text-align: center;
}

.qr-payment-content h2 {
  color: #333;
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.qr-instructions {
  color: #666;
  margin-bottom: 24px;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* ============================================
   ÁREA DE QR - Estilo consistente para estático y dinámico
   ============================================ */

.qr-display-area {
  margin: 10px 0;
}

/* Contenedor del QR estático - Estilo tipo imagen */
.qr-static-wrapper {
  margin: 5px auto;
  padding: 5px;
  text-align: center;
}

/* Contenedor del QR dinámico - Estilo tipo imagen */
.qr-dynamic-wrapper {
  margin: 5px auto;
  padding: 5px;
  text-align: center;
}

/* Wrapper interno para ambos tipos de QR */
.qr-static-wrapper .qr-code-container,
.qr-dynamic-wrapper .qr-code-container {
  margin: 0 auto;
  padding: 10px;
  background: #e4e4e4;
  border-radius: 8px;
  display: inline-block;
}

/* QR estático específico */
.qr-code-container {
  margin: 10px auto;
  padding: 10px;
  background: #e4e4e4;
  border-radius: 8px;
  display: inline-block;
}

.payment-details {
  text-align: left;
  margin: 1px 0;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
}

.payment-details h3 {
  color: #333;
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.bank-info, .payment-info {
  margin-bottom: 16px;
}

.bank-info p, .payment-info p {
  margin: 8px 0;
  color: #555;
  font-size: 0.9rem;
}

.bank-info strong, .payment-info strong {
  color: #333;
}

.qr-payment-buttons {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.download-button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.download-button:hover {
  background-color: #218838;
}

.confirm-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.2s;
}

.confirm-button:hover {
  background-color: #0056b3;
}

/* Responsive design */
@media (max-width: 600px) {
  .qr-payment-container {
    padding: 12px;
    width: 95%;
  }
  
  .qr-payment-content h2 {
    font-size: 1.3rem;
  }
  
  .qr-code-container {
    padding: 12px;
  }
  
  .payment-details {
    padding: 12px;
  }
  
  .qr-payment-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .download-button, .confirm-button {
    width: 100%;
    max-width: 200px;
  }
}/* Styles for mesa squares in meseros.tsx */
.mesas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 15px;
  margin-top: 20px;
  justify-items: center;
  justify-content: center;
}

.mesa-square {
  width: 100px;
  height: 100px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: 8px;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  transition: all 0.2s ease;
  position: relative;
}

.mesa-indicators-container {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
  height: 15px;
  width: 100%;
}

.mesa-indicator-rect {
  width: 35px;
  height: 12px;
  border-radius: 3px;
}

.mesa-indicator-rect.status-atendido {
  background-color: #ff9933;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.mesa-indicator-rect.status-servido {
  background-color: #33cc33;
  box-shadow: 0 0 2px rgba(0,0,0,0.3);
}

.mesa-square.mesa-libre {
  border: 2px dashed var(--accent-color);
}

.mesa-square.mesa-ocupada {
  border: 2px solid var(--error-color);
  background-color: var(--error-color-light); /* A lighter shade of error color */
}

.mesa-square:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

@keyframes blink-border {
  0% {
    border-color: var(--error-color);
  }
  50% {
    border-color: transparent;
  }
  100% {
    border-color: var(--error-color);
  }
}

.mesa-square.mesa-llamada-activa {
  animation: blink-border 1s infinite;
}

@keyframes blink-red-bg {
  0% { background-color: var(--error-color-light); color: var(--text-primary); }
  50% { background-color: var(--error-color); color: white; }
  100% { background-color: var(--error-color-light); color: var(--text-primary); }
}

.mesa-square.chat-unread-active {
  animation: blink-red-bg 1s infinite;
  border-color: var(--error-color);
}

.unread-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: #ff0000;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  font-weight: bold;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mesa-square.mesa-con-pedido {
  box-shadow: 0 0 10px var(--accent-color);
}

/* Estilos para los estados de pedidos */
.mesa-square.con-pedidos-pendientes {
  border: 2px solid #cf6679; /* Color actual para pedidos pendientes */
  background-color: rgba(207, 102, 121, 0.1); /* Fondo sutil */
}

.mesa-square.con-pedidos-en-preparacion {
  border: 2px solid #ff9933; /* Naranja para pedidos en preparación */
  background-color: rgba(255, 153, 51, 0.1); /* Fondo sutil naranja */
}

.mesa-square.todos-servidos {
  border: 2px solid #33cc33; /* Verde para todos servidos */
  background-color: rgba(51, 204, 51, 0.1); /* Fondo sutil verde */
}

.mesa-square.filter-active {
  background-color: var(--error-color);
  color: var(--bg-primary);
  border: 2px solid var(--accent-color-dark);
}

.popupmesero-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Bloquear scroll del fondo cuando el popup está abierto */
body.menu-popup-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100%;
}

.popupmesero-content {
  border: 2px solid var(--error-color);
  background-color: var(--bg-primary);
  padding-left: 1rem;
  padding-right: 1rem;
  padding-bottom: 1rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  width: 90%;
  text-align: center;
  max-height: 80vh; /* Limit height to 80% of the viewport height */
  overflow-y: auto; /* Add vertical scroll when content overflows */
  display: flex;
  flex-direction: column;
}

.popupmesero-content h3 {
  color: var(--error-color);
}

.popupmesero-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.popupmesero-content li {
  background-color: var(--bg-secondary);
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 5px;
  font-size: 1rem;
}

.pedido-item-container {
  background-color: var(--bg-secondary);
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pedido-item-container:hover {
  background-color: var(--bg-tertiary);
}

.pedido-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.cliente-nombre {
  font-weight: bold;
  color: var(--text-primary);
  text-align: left;
  flex-grow: 1;
}

.pedido-items {
  list-style: none;
  padding: 0;
  margin-top: 0.5rem;
  font-size: 0.9em;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}

.pedido-details-condensed {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
  
  margin-top: 0.5rem;
  font-size: 0.9em;
  width: 100%;
}

.pedido-details-condensed.expanded {
  max-height: 500px; /* A value large enough to contain all items */
  opacity: 1;
  overflow-y: auto;
}

.pedido-summary {
  display: flex;
  justify-content: space-between;
  padding: 0.2rem 0;
  border-bottom: 1px dashed var(--border-color);
  margin-bottom: 0.2rem;
  font-weight: bold;
}

.mesero-pedido-items-list {
  list-style: none;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
  background-color: var(--bg-secondary);
  width: 100%;
  box-sizing: border-box;
}

.mesero-pedido-items-list li {
  background-color: transparent;
  padding: 8px 0;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  gap: 8px;
}

.mesero-pedido-items-list li:last-child {
  border-bottom: none;
}

.mesero-pedido-items-list li:hover {
  background-color: var(--bg-tertiary);
  transform: none;
  box-shadow: none;
}

.mesero-pedido-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0; /* Allows text to wrap properly */
}

.mesero-pedido-item-details > * {
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.nota-icon {
  margin-left: 10px;
  font-size: 1.2rem;
  color: #007bff;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 4px;
  border-radius: 4px;
  background-color: transparent;
}

.nota-icon:hover {
  color: #0056b3;
  background-color: rgba(0, 123, 255, 0.1);
}

.extras-list {
  margin-top: 6px;
  width: 100%;
}

.extra-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: rgba(13, 202, 240, 0.15);
  border-left: 3px solid #0dcaf0;
  padding: 4px 8px;
  margin-top: 4px;
  border-radius: 0 4px 4px 0;
  font-size: 0.85em;
}

.extra-item::before {
  content: "➕";
  margin-right: 6px;
  font-size: 0.9em;
  flex-shrink: 0;
}

.extra-text {
  color: #0dcaf0;
  flex: 1;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.meseros-content-wrapper {
  padding-top: 70px; /* Adjust based on the height of your fixed header */
}

.filter-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.4rem 0.5rem;
  position: fixed;
  top: 0;
  width: 100%;
  background-color: var(--bg-primary);
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

.filter-buttons-container {
  display: flex;
  gap: 15px;
}

.filter-controls .logout-button {
  border: 2px solid var(--border-color) !important;
  background-color: var(--bg-tertiary);
  color: var(--text-primary);
  margin: 0;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  color: white;
}

.spinner {
  border: 8px solid rgba(255, 255, 255, 0.3);
  border-top: 8px solid white;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Estilos para el popup de notas */
.nota-popup-buttons-container {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.nota-action-button {
  padding: 0.5rem 1rem;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nota-edit-button {
  background-color: #007bff;
}

.nota-edit-button:hover {
  background-color: #0056b3;
}

.nota-delete-button {
  background-color: #dc3545;
}

.nota-delete-button:hover {
  background-color: #c82333;
}

.nota-add-button {
  padding: 0.5rem 1rem;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nota-add-button:hover {
  background-color: #0056b3;
}

.nota-add-button:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.nota-close-button {
  padding: 0.5rem 1rem;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.nota-close-button:hover {
  background-color: #5a6268;
}

/* Estilos para las opciones del dropdown de estado del pedido (20% más grandes) */
.status-dropdown .estado-badge {
  padding: 7.2px 14.4px; /* 20% más grande que 6px 12px */
  border-radius: 19.2px; /* 20% más grande que 16px */
  font-size: 1.08rem; /* 20% más grande que 0.9rem */
  font-weight: 600;
  text-transform: capitalize;
  display: inline-block;
  margin: 4.8px 0; /* 20% más grande que 4px */
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 90px; /* Para mantener proporción */
  text-align: center;
}

.status-dropdown .estado-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Colores específicos para las opciones del dropdown */
.status-dropdown .estado-badge.pendiente {
  background-color: #dc2626;
  color: #ffffff;
}

.status-dropdown .estado-badge.en_preparacion {
  background-color: #997e26;
  color: #ffffff;
}

.status-dropdown .estado-badge.servido {
  background-color: #166534;
  color: #ffffff;
}

.status-dropdown .estado-badge.cerrada {
  background-color: #4b5563;
  color: #ffffff;
}

.status-dropdown .estado-badge.cancelado {
  background-color: rgb(75, 85, 99);
  color: #ffffff;
  text-decoration: line-through;
}

/* Estilos para botones de llamadas de pago */
.payment-call-button {
  background-color: #28a745 !important;
  border-color: #28a745 !important;
}

.payment-call-button:hover {
  background-color: #218838 !important;
  border-color: #1e7e34 !important;
}

.payment-icon {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #28a745;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.9rem;
  font-weight: bold;
  border: 2px solid var(--bg-primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 10;
}

/* Estilos para notas inline */
.mesero-pedido-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

/* Lista de notas - debajo del item, diferente de extras */
.notas-list {
  margin-top: 6px;
  width: 100%;
}

.nota-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: rgba(255, 193, 7, 0.15);
  border-left: 3px solid #ffc107;
  padding: 4px 8px;
  margin-top: 4px;
  border-radius: 0 4px 4px 0;
  font-size: 0.85em;
}

.nota-item::before {
  content: "📝";
  margin-right: 6px;
  font-size: 0.9em;
  flex-shrink: 0;
}

.nota-text {
  color: #ffc107;
  flex: 1;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.nota-delete-btn {
  background: none;
  border: none;
  color: #dc3545;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 4px;
  margin-left: 8px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
}

.nota-delete-btn:hover {
  opacity: 1;
}

/* Campo inline para agregar nota */
.inline-nota-input-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
}

.inline-nota-input {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid #ffc107;
  border-radius: 4px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 0.9em;
  min-width: 0;
}

.inline-nota-input:focus {
  outline: none;
  border-color: #ffc107;
  box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.inline-nota-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.inline-nota-confirm,
.inline-nota-cancel {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.inline-nota-confirm {
  background-color: #28a745;
  color: white;
}

.inline-nota-confirm:hover:not(:disabled) {
  background-color: #218838;
}

.inline-nota-confirm:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.inline-nota-cancel {
  background-color: #dc3545;
  color: white;
}

.inline-nota-cancel:hover {
  background-color: #c82333;
}

/* Icono de nota activo */
.nota-icon.active {
  color: #ffc107;
  background-color: rgba(255, 193, 7, 0.2);
}
/* Mesero Chat Window Styles - Minimalist design matching the system */
.mesero-chat-container {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background: transparent;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  height: 70vh;
  display: flex;
  flex-direction: column;
}

.mesero-chat-container .messages-container {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.mesero-chat-container .messages-container::-webkit-scrollbar {
  width: 4px;
}

.mesero-chat-container .messages-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 2px;
}

.mesero-chat-container .messages-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 2px;
}

.mesero-chat-container .message {
  display: flex;
  max-width: 80%;
  margin-bottom: 8px;
}

.mesero-chat-container .message.received {
  align-self: flex-start;
  margin-right: auto;
}

.mesero-chat-container .message.sent {
  align-self: flex-end;
  margin-left: auto;
}

.mesero-chat-container .message-content {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
  max-width: 100%;
}

.mesero-chat-container .message.received .message-content {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: white;
  border-bottom-left-radius: 4px;
}

.mesero-chat-container .message.message-all .message-content {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  align-self: center;
  max-width: 90%;
}

.mesero-chat-container .message.sent .message-content {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border-bottom-right-radius: 4px;
}

.mesero-chat-container .message-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.mesero-chat-container .message-text {
  margin: 0;
  color: inherit;
}

.mesero-chat-container .sender-label {
  color: rgba(255, 255, 255, 0.9);
}

.mesero-chat-container .message-time {
  display: block;
  font-size: 11px;
  opacity: 0.7;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
}

.mesero-chat-container .chat-input-container {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
}

.mesero-chat-container .chat-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #1f2937;
  outline: none;
  transition: all 0.2s ease;
}

.mesero-chat-container .chat-input::placeholder {
  color: #6b7280;
}

.mesero-chat-container .chat-input:focus {
  border-color: #2563eb;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.mesero-chat-container .send-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mesero-chat-container .send-button:hover:not(:disabled) {
  background: #3b82f6;
  transform: translateY(-1px);
}

.mesero-chat-container .send-button:active:not(:disabled) {
  transform: translateY(0);
}

.mesero-chat-container .send-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  opacity: 0.5;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .mesero-chat-container {
    height: 65vh;
    max-width: 100%;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .mesero-chat-container .chat-header h3 {
    color: #f9fafb;
  }
  
  .mesero-chat-container .chat-input {
    color: #f9fafb;
    background: rgba(255, 255, 255, 0.1);
  }
}/* Scoped styles for Checkin component */

.checkin-container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 1.5rem 1rem 1.5rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: auto;
  font-family: 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.checkin-container h1 {
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: -0.5px;
}

.checkin-container h2,
.checkin-container h3,
.checkin-container h4 {
  margin: 0 0 1rem 0;
  font-weight: 600;
  color: var(--text-secondary);
}

.header-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 300px;
  object-fit: cover;
}

/* Client section styles */
.clientes-section {
  background: var(--bg-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.clientes-section h3 {
  color: var(--accent-color);
  margin: 0 0 1rem 0;
  font-size: 1.2rem;
  font-weight: 500;
}

/* Button styles */
.action-button {
  background: var(--accent-color);
  color: var(--text-on-accent);
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.action-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.action-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.success-action-button {
  background: var(--success-color);
  color: var(--bg-primary);
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  width: 100%;
}

.success-action-button:hover {
  background: #23e0cf;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Status messages */
.loading-message {
  color: var(--success-color);
  text-align: center;
  font-style: italic;
  font-size: 1.1rem;
}

.estado-badge {
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: capitalize;
  display: inline-block;
}

.estado-badge.confirmada {
  background-color: #166534;
  color: #ffffff;
}

/* FAQ Styles for Possible Causes */
.faq-container {
  background: var(--bg-tertiary);
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  text-align: left;
}

.faq-title {
  margin: 0 0 1rem 0;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.faq-item {
  display: flex;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-icon {
  color: var(--accent-color);
  margin-right: 0.75rem;
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.faq-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Manual code input container */
.manual-code-input-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 1rem;
}

.manual-code-input {
  width: 100%;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 1rem;
  box-sizing: border-box;
}

.verify-button {
  margin: 0;
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .checkin-container {
    padding: 0 1rem 0.5rem 1rem;
  }
  
  .checkin-container h1 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}

/* Tickets List for Check-in */
.tickets-list-checkin {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ticket-item-checkin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: var(--bg-primary);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  gap: 1rem;
}

.ticket-info-checkin {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
}

.ticket-icon-checkin {
  color: var(--accent-color);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ticket-details-checkin {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ticket-localidad {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.ticket-sector {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.ticket-actions-checkin {
  flex-shrink: 0;
}

.checkin-button {
  background: var(--success-color);
  color: var(--bg-primary);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.checkin-button:hover {
  background: #23e0cf;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.checkin-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.checkin-finalizado-message {
  color: #dc3545;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* Responsive for tickets */
@media (max-width: 768px) {
  .ticket-item-checkin {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .ticket-actions-checkin {
    width: 100%;
  }
  
  .checkin-button {
    width: 100%;
    text-align: center;
  }
  
  .checkin-finalizado-message {
    text-align: center;
    display: block;
    width: 100%;
  }
}
/* Styles for ProgramarQR component */

.programar-qr-popup {
  background-color: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 500px;
  max-width: 90vw;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.programar-qr-header h3 {
  margin: 0 0 20px 0;
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.programar-qr-error {
  color: #721c24;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-align: left;
  display: flex;
  align-items: center;
}

.programar-qr-error::before {
  content: "⚠️";
  margin-right: 10px;
}

/* Date Selection Styles */
.date-selection-container {
  margin: 20px 0;
  text-align: left;
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.date-selection-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #495057;
  font-size: 1rem;
}

.date-input {
  padding: 12px 15px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  font-size: 16px;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
  color: #495057;
  background-color: #fff;
  cursor: pointer;
}

.date-input:focus {
  border-color: #2196F3;
  outline: none;
  box-shadow: 0 0 0 4px rgba(33, 150, 243, 0.15);
}

.date-input:hover {
  border-color: #adb5bd;
}

.selected-date-display {
  margin-top: 12px;
  color: #2196F3;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.selected-date-display::before {
  content: "📅";
  margin-right: 8px;
}

/* Buttons */
.programar-qr-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.programar-qr-btn {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.programar-qr-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.btn-generate {
  background-color: #2196F3;
  color: white;
}

.btn-generate:hover {
  background-color: #1976D2;
  box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

.btn-generate:disabled {
  background-color: #90CAF9;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-cancel {
  background-color: #6c757d;
  color: white;
}

.btn-cancel:hover {
  background-color: #5a6268;
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-print {
  background-color: #28a745;
  color: white;
}

.btn-print:hover {
  background-color: #218838;
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-back {
  background-color: #6c757d;
  color: white;
}

.btn-back:hover {
  background-color: #5a6268;
}

.btn-close {
  background-color: #dc3545;
  color: white;
}

.btn-close:hover {
  background-color: #c82333;
  box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Preview Section */
.qr-preview-container {
  background-color: #fff;
  padding: 10px;
}

.qr-header {
  text-align: center;
  margin-bottom: 15px;
  padding-bottom: 15px;
  border-bottom: 2px solid #333;
}

.qr-header h1 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qr-date-info {
  font-size: 14px;
  margin: 5px 0;
  color: #333;
  font-weight: 600;
}

.wifi-box {
  margin: 15px 0;
  padding: 10px;
  background-color: #f8f9fa;
  border: 1px dashed #333;
  border-radius: 6px;
  font-size: 12px;
}

.wifi-title {
  margin: 0 0 5px 0;
  font-weight: 800;
  text-transform: uppercase;
}

.wifi-details {
  margin: 0;
  font-family: monospace;
  font-size: 13px;
}

.qr-instruction {
  font-size: 14px;
  margin: 10px 0 0 0;
  color: #555;
  font-style: italic;
}

.qr-code-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.qr-code-frame {
  padding: 15px;
  background-color: white;
  border-radius: 12px;
  border: 2px solid #000;
  display: inline-block;
}

.qr-info-mesa {
  font-size: 18px;
  font-weight: 800;
  margin: 15px 0 5px 0;
  color: #000;
  text-transform: uppercase;
}

.qr-url-text {
  font-size: 11px;
  color: #666;
  word-break: break-all;
  max-width: 250px;
  margin: 0 auto;
  font-family: monospace;
}

.qr-footer {
  text-align: center;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #333;
}

.qr-footer p {
  font-size: 14px;
  font-weight: 700;
  color: #000;
  margin: 0;
  text-transform: uppercase;
}
.pedido-card .toggle-pedidos-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  margin: 8px 0;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.pedido-card .toggle-pedidos-btn:hover {
  background-color: #0056b3;
}

.pedido-card .toggle-pedidos-btn.hidden {
  display: none;
}

.pedido-card .pedidos-antiguos {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  opacity: 0.7;
}

.pedido-card .pedidos-antiguos.expanded {
  max-height: 1000px;
}

.pedido-card .pedidos-antiguos .pedido-card {
  border-left: 3px solid #666;
  margin-top: 8px;
  padding-left: 8px;
  background-color: #f8f9fa;
}

.pedido-card .pedidos-antiguos .pedido-card:hover {
  background-color: #e9ecef;
}/* Styles copied from pedidos-components.css for hide/show functionality */
.pedido-card .toggle-pedidos-btn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  margin: 8px 0;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.pedido-card .toggle-pedidos-btn:hover {
  background-color: #0056b3;
}

.pedido-card .toggle-pedidos-btn.hidden {
  display: none;
}

.pedido-card .pedidos-antiguos {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  opacity: 0.7;
}

.pedido-card .pedidos-antiguos.expanded {
  max-height: 1000px;
}

.pedido-card .pedidos-antiguos .pedido-card {
  border-left: 3px solid #666;
  margin-top: 8px;
  padding-left: 8px;
  background-color: #f8f9fa;
}

.pedido-card .pedidos-antiguos .pedido-card:hover {
  background-color: #e9ecef;
}

/* Styles moved from inline styles in Cocina.tsx */

.status-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.status-popup-content {
  background-color: white;
  padding: 24px;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  animation: slideUp 0.3s ease-out;
}

.status-popup-title {
  margin-top: 0;
  margin-bottom: 8px;
  text-align: center;
  color: #333;
}

.status-popup-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 24px;
  font-size: 1.1em;
}

.status-popup-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-mark-servido {
  padding: 16px;
  background-color: #33cc33;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 6px rgba(51, 204, 51, 0.3);
}

.btn-mark-atendido {
  padding: 16px;
  background-color: #ff9900;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 6px rgba(255, 153, 0, 0.3);
}

.btn-cancel-status {
  padding: 14px;
  background-color: #f5f5f5;
  color: #555;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  margin-top: 8px;
  cursor: pointer;
  font-weight: 500;
}

.status-badge-button {
  border: none;
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.status-badge-button:active {
  transform: scale(0.95);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.selection-checkbox.disabled {
  cursor: not-allowed;
  opacity: 0.5;
  background-color: #ccc;
}

input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* Estilos para el resumen de pedidos cerrados */
.closed-orders-summary-container {
  margin-bottom: 15px;
  width: 100%;
}

.closed-orders-list {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background-color: #f9f9f9;
  overflow-y: visible;
  box-sizing: border-box;
  overflow-x: hidden;
}

.pedido-detail {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
  margin-bottom: 15px;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pedido-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.pedido-header h4 {
  margin: 0;
  font-size: 1.1em;
  color: #333;
}

.pedido-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.pedido-info-grid div {
  font-size: 0.9em;
}

.estado-badge.cerrada {
  background-color: #666;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.8em;
}

.pedido-items-section {
  margin-top: 10px;
}

.pedido-items-list {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  max-height: none;
  overflow-y: visible;
}

.pedido-item {
  margin-bottom: 10px;
  padding: 10px;
  border-bottom: 1px solid #eee;
  background-color: #f8f8f8;
  border-radius: 4px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.item-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}

.item-details {
  display: flex;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  flex-wrap: wrap;
}

.item-name {
  font-weight: bold;
  color: #333;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 10px;
}

.item-price {
  color: #666;
  font-weight: bold;
  flex-shrink: 0;
  min-width: fit-content;
}

.item-name {
  font-weight: bold;
  color: #333;
}

.item-price {
  color: #666;
  font-weight: bold;
}

.extras-container {
  margin-left: 15px;
  margin-top: 5px;
}

.extras-list {
  list-style: none;
  padding: 0;
  margin: 5px 0;
}

.extras-list li {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 2px;
}

.extra-name {
  font-style: italic;
}

.extra-price {
  font-weight: bold;
  color: #888;
}

/* Responsive design para pantallas pequeñas */
@media (max-width: 768px) {
  .pedido-info-grid {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  
  .closed-orders-list {
    padding: 10px;
  }
  
  .pedido-detail {
    padding: 10px;
  }
}

.grand-total-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #333;
  color: white;
  padding: 15px 20px;
  border-radius: 8px;
  margin-top: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  border: 1px solid #222;
}

.grand-total-label {
  font-size: 1.2em;
  font-weight: bold;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.grand-total-amount {
  font-size: 1.4em;
  font-weight: 800;
  color: #4CAF50;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}/* CategoriaEditor styles */
.categoria-container {
  background-color: #e6e6e6;
  padding: 25px;
  border-radius: 12px;
  max-width: 1000px;
  max-height: 90vh;
  margin: 20px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: #212529;
  overflow-y: auto;
}

.categoria-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.categoria-header h2 {
  margin: 0;
  font-size: 1.5em;
  color: #0369a1;
}

.categoria-buttons {
  display: flex;
  gap: 10px;
}

.categoria-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px;
  margin: 0 auto;
  max-width: 1000px;
}

@media (max-width: 768px) {
  .categoria-grid {
    grid-template-columns: 1fr;
    gap: 15px;
    padding: 15px;
  }
}

.categoria-card {
  position: relative;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: white;
  border: 1px solid #e2e8f0;
  height: fit-content;
  min-height: 180px;
}

.categoria-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.categoria-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0,0,0,0.1);
}

.categoria-card-header h3 {
  margin: 0;
  font-size: 1.1em;
  color: #1e293b;
  font-weight: 600;
}

.status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  color: white;
}

.status.active {
  background-color: #4CAF50;
}

.status.inactive {
  background-color: #f44336;
}

.categoria-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.categoria-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
  padding: 4px 0;
}

.categoria-info:not(:last-child) {
  border-bottom: 1px solid #f1f5f9;
}

.categoria-info .info-label {
  font-weight: 600;
  color: #64748b;
  min-width: 80px;
}

.categoria-info .info-value {
  color: #334155;
  text-align: right;
  flex: 1;
}

.categoria-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  justify-content: flex-end;
}

.categoria-actions button {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8em;
  font-weight: 500;
  transition: background-color 0.2s;
}

.categoria-actions button.edit-btn {
  background-color: #2196F3;
  color: white;
}

.categoria-actions button.edit-btn:hover {
  background-color: #1976D2;
}

.categoria-actions button.delete-btn {
  background-color: #f44336;
  color: white;
}

.categoria-actions button.delete-btn:hover {
  background-color: #d32f2f;
}

/* Categoria Editor Popup Styles */
.categoria-editor-popup {
  background-color: #e6e6e6;
  padding: 25px;
  border-radius: 12px;
  max-width: 500px;
  max-height: 90vh;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: #212529;
  overflow-y: auto;
}

.categoria-editor-popup h2 {
  margin-top: 0;
  color: #212529;
  margin-bottom: 20px;
}

.categoria-editor-popup .form-group {
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.categoria-editor-popup .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
}

/* Checkbox styling for Activa field */
.categoria-editor-popup .form-group input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

.categoria-editor-popup .form-group label[for] {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
}

.categoria-editor-popup .form-group label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  cursor: pointer;
}

.categoria-editor-popup .form-group input,
.categoria-editor-popup .form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: white;
  font-size: 14px;
  box-sizing: border-box;
}

.categoria-editor-popup .form-group textarea {
  resize: vertical;
  min-height: 60px;
  overflow-wrap: break-word;
}

.categoria-editor-popup .form-group input:focus,
.categoria-editor-popup .form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.categoria-editor-popup .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.categoria-editor-popup .form-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
  min-width: 80px;
}

.categoria-editor-popup .form-actions button[type="button"] {
  background-color: #6c757d;
  color: white;
}

.categoria-editor-popup .form-actions button[type="button"]:hover {
  background-color: #5a6268;
}

.categoria-editor-popup .form-actions button[type="submit"] {
  background-color: #0d6efd;
  color: white;
}

.categoria-editor-popup .form-actions button[type="submit"]:hover {
  background-color: #0b5ed7;
}

.categoria-editor-popup .form-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.categoria-editor-popup .form-actions button.delete-btn {
  background-color: #dc3545;
  color: white;
}

.categoria-editor-popup .form-actions button.delete-btn:hover {
  background-color: #bb2d3b;
}
/* Icon selector styles */
.icon-selector {
  display: flex;
  gap: 10px;
  margin-top: 5px;
}

.icon-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
}

.icon-option:hover {
  border-color: #0066cc;
}

.icon-option.selected {
  border-color: #0066cc;
  background-color: #e6f2ff;
}

.icon-option svg {
  font-size: 24px;
  margin-bottom: 5px;
  color: #666;
}

.icon-option.selected svg {
  color: #0066cc;
}

.icon-option span {
  font-size: 12px;
  color: #666;
}

/* Icon display in cards */
.categoria-card-icon {
  font-size: 24px;
  margin-right: 10px;
  color: #666;
}

.categoria-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.categoria-card-header h3 {
  margin: 0;
  display: flex;
  align-items: center;
}

/* Order buttons styles */
.order-buttons {
  display: flex;
  gap: 5px;
  margin-right: 10px;
}

.arrow-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  transition: all 0.2s ease;
}

.arrow-btn:hover:not(:disabled) {
  background: #f0f0f0;
  border-color: #0066cc;
}

.arrow-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.categoria-card {
  transition: box-shadow 0.2s ease;
}

.categoria-card:hover {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.categoria-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}/* SectorEditor styles */
.sector-container {
  background-color: #e6e6e6;
  padding: 25px;
  border-radius: 12px;
  max-width: 1000px;
  margin: 20px auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: #212529;
}

.sector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sector-header h2 {
  margin: 0;
  font-size: 1.5em;
  color: #0369a1;
}

.sector-buttons {
  display: flex;
  gap: 10px;
}

.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: 16px;
}

@media (max-width: 768px) {
  .sector-grid {
    grid-template-columns: 1fr;
  }
}

.sector-card {
  position: relative;
  border-radius: 10px;
  padding: 16px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background-color: white;
  border: 1px solid #e2e8f0;
}

.sector-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sector-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(0,0,0,0.1);
}

.sector-card-header h3 {
  margin: 0;
  font-size: 1.1em;
  color: #1e293b;
  font-weight: 600;
}

.sector-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sector-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9em;
  padding: 4px 0;
}

.sector-info:not(:last-child) {
  border-bottom: 1px solid #f1f5f9;
}

.sector-info .info-label {
  font-weight: 600;
  color: #64748b;
  min-width: 80px;
}

.sector-info .info-value {
  color: #334155;
  text-align: right;
  flex: 1;
}

.sector-color-preview {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  margin-left: 8px;
}

/* Sector Editor Popup Styles */
.sector-editor-popup {
  background-color: #e6e6e6;
  padding: 25px;
  border-radius: 12px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  color: #212529;
}

.sector-editor-popup h2 {
  margin-top: 0;
  color: #212529;
  margin-bottom: 20px;
}

.sector-editor-popup .form-group {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.sector-editor-popup .form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #374151;
}

.sector-editor-popup .form-group input,
.sector-editor-popup .form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background-color: white;
  font-size: 14px;
}

.sector-editor-popup .form-group input:focus,
.sector-editor-popup .form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sector-editor-popup .color-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sector-editor-popup .color-input-group input[type="color"] {
  width: 50px;
  height: 50px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  cursor: pointer;
}

.sector-editor-popup .form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.sector-editor-popup .form-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
  min-width: 80px;
}

.sector-editor-popup .form-actions button[type="button"] {
  background-color: #6c757d;
  color: white;
}

.sector-editor-popup .form-actions button[type="button"]:hover {
  background-color: #5a6268;
}

.sector-editor-popup .form-actions button[type="submit"] {
  background-color: #0d6efd;
  color: white;
}

.sector-editor-popup .form-actions button[type="submit"]:hover {
  background-color: #0b5ed7;
}

.sector-editor-popup .form-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.sector-editor-popup .form-actions button.delete-btn {
  background-color: #dc3545;
  color: white;
}

.sector-editor-popup .form-actions button.delete-btn:hover {
  background-color: #bb2d3b;
}

/* Form row and col styles for sector-editor-popup */
.sector-editor-popup .form-row {
  display: flex;
  gap: 15px;
  margin-bottom: 12px;
}

.sector-editor-popup .form-row:last-child {
  margin-bottom: 0;
}

.sector-editor-popup .form-col {
  flex: 1;
  min-width: 0;
}

.sector-editor-popup .form-col label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.sector-editor-popup .form-col input[type="number"] {
  width: 70px;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

.sector-editor-popup .form-col input[type="number"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sector-editor-popup .form-col input:not([type="number"]):not([type="color"]),
.sector-editor-popup .form-col select {
  width: 100%;
  padding: 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
}

.sector-editor-popup .form-col input:not([type="number"]):not([type="color"]):focus,
.sector-editor-popup .form-col select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.sector-editor-popup .form-col input,
.sector-editor-popup .form-col select {
  box-sizing: border-box;
}/* ListaEvento Component Styles */

/* Color Palette */
:root {
  --plomo: #6c757d;
  --plomo-light: #8a9aab;
  --plomo-dark: #495057;
  --naranja: #fd7e14;
  --naranja-light: #ffc078;
  --naranja-dark: #e8590c;
  --verde: #28a745;
  --verde-light: #69db7c;
  --verde-dark: #1e7e34;
  --rojo: #dc3545;
  --rojo-light: #ffa8a8;
  --rojo-dark: #c92a2a;
  --bg-primary: #f8f9fa;
  --bg-card: #ffffff;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --border-color: #dee2e6;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.2s ease-in-out;
}

.evento-container {
  padding: 20px;
  background-color: var(--bg-primary);
  min-height: 100%;
}

.evento-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
  flex-wrap: wrap;
  gap: 15px;
}

.evento-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
}

.evento-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Button Styles */
.btn-new {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-new:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-new:active {
  transform: translateY(0);
}

.btn-new.inactive {
  opacity: 0.5;
  filter: grayscale(30%);
}

/* Botón de reinicio - solo icono */
.btn-new.btn-reset {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-new.btn-reset:hover {
  background-color: #0056b3 !important;
}

/* Event List Styles */
.evento-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Event Card Styles */
.evento-card {
  background-color: var(--bg-card);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
}

.evento-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Status-based border colors */
.evento-card.estado-detenido {
  border-left: 4px solid var(--plomo);
}

.evento-card.estado-venta {
  border-left: 4px solid var(--naranja);
}

.evento-card.estado-checkin {
  border-left: 4px solid var(--verde);
}

.evento-card.estado-finalizado {
  border-left: 4px solid var(--rojo);
}

/* Status-based header backgrounds */
.evento-card.estado-detenido .evento-card-header {
  background-color: #e9ecef;
  border-bottom-color: var(--plomo);
}

.evento-card.estado-detenido .evento-card-header h3,
.evento-card.estado-detenido .evento-card-header .evento-elenco span {
  color: var(--plomo-dark);
}

.evento-card.estado-venta .evento-card-header {
  background-color: #fff3cd;
  border-bottom-color: var(--naranja);
}

.evento-card.estado-venta .evento-card-header h3,
.evento-card.estado-venta .evento-card-header .evento-elenco span {
  color: var(--naranja-dark);
}

.evento-card.estado-checkin .evento-card-header {
  background-color: #d4edda;
  border-bottom-color: var(--verde);
}

.evento-card.estado-checkin .evento-card-header h3,
.evento-card.estado-checkin .evento-card-header .evento-elenco span {
  color: var(--verde-dark);
}

.evento-card.estado-finalizado .evento-card-header {
  background-color: #f8d7da;
  border-bottom-color: var(--rojo);
}

.evento-card.estado-finalizado .evento-card-header h3,
.evento-card.estado-finalizado .evento-card-header .evento-elenco span {
  color: var(--rojo-dark);
}

.evento-card-header {
  padding: 12px 20px;
  border-bottom: 3px solid transparent;
  background-color: #fafbfc;
  transition: var(--transition);
}

.evento-info-principal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.evento-info-principal h3 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
}

.evento-elenco {
  display: flex;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
}

.evento-card-body {
  padding: 20px;
}

.evento-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.evento-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.evento-detail span:not(.info-label) {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

/* Status Badge Styles */
.estado-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.estado-badge.detenido {
  background-color: var(--plomo);
}

.estado-badge.venta {
  background-color: var(--naranja);
}

.estado-badge.checkin {
  background-color: var(--verde);
}

.estado-badge.finalizado {
  background-color: var(--rojo);
}

/* Empty State */
.evento-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .evento-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .evento-buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .evento-info-principal {
    flex-direction: column;
    align-items: flex-start;
  }

  .evento-details {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .evento-container {
    padding: 15px;
  }

  .evento-buttons {
    flex-direction: column;
  }

  .btn-new {
    width: 100%;
    text-align: center;
  }

  .evento-details {
    grid-template-columns: 1fr;
  }
}

/* Animation for status filtering */
.evento-card {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover effects for interactive elements */
.evento-card:hover .estado-badge {
  transform: scale(1.05);
}

.estado-badge {
  transition: var(--transition);
}

/* Evento editable - clickeable */
.evento-card.evento-editable {
  cursor: pointer;
}

.evento-card.evento-editable:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
  border-color: var(--plomo-light);
}

.evento-card.evento-editable .evento-card-header::after {
  content: "✎ Editar";
  font-size: 12px;
  color: var(--plomo);
  background-color: #e9ecef;
  padding: 4px 8px;
  border-radius: 4px;
  opacity: 0;
  transition: var(--transition);
}

.evento-card.evento-editable:hover .evento-card-header::after {
  opacity: 1;
}

.evento-card.evento-editable .evento-info-principal h3 {
  padding-right: 10px;
}

/* Controles de estado del evento */
.evento-estado-controls {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.estado-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  color: white;
  box-shadow: var(--shadow-sm);
}

.estado-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.estado-btn:active {
  transform: translateY(0);
}

.estado-btn-venta {
  background-color: var(--naranja);
}

.estado-btn-venta:hover {
  background-color: var(--naranja-dark);
}

.estado-btn-play {
  background-color: var(--verde);
}

.estado-btn-play:hover {
  background-color: var(--verde-dark);
}

.estado-btn-pausa {
  background-color: #ffc107;
  color: #212529;
}

.estado-btn-pausa:hover {
  background-color: #e0a800;
}

.estado-btn-stop {
  background-color: var(--rojo);
}

.estado-btn-stop:hover {
  background-color: var(--rojo-dark);
}

/* Processing Overlay Styles (shared with ArmarMapa) */
.processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.processing-content {
  background: white;
  padding: 40px 60px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.processing-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.processing-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Disabled button styles */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

input:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

select:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

textarea:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}
/* EventoCategoriaPopup Styles */

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.popup-overlay.secondary-overlay {
  z-index: 1100;
}

.evento-categoria-popup {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.popup-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #212529;
  font-weight: 600;
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #6c757d;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close:hover {
  background-color: #e9ecef;
  color: #dc3545;
}

.evento-categoria-popup-content {
  padding: 24px;
  overflow-y: auto;
  width: auto;
  box-sizing: border-box;
  min-width: 0;
}

.categoria-actions-header {
  margin-bottom: 20px;
}

.btn-new-categoria {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-new-categoria:hover:not(:disabled) {
  background-color: #218838;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-new-categoria:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Form Styles */
.categoria-form-container {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 24px;
}

.categoria-form-container h3 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  color: #495057;
}

.form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  flex: 1;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

.btn-cancel {
  padding: 10px 20px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel:hover {
  background-color: #5a6268;
}

.btn-save {
  padding: 10px 24px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-save:hover:not(:disabled) {
  background-color: #0056b3;
}

.btn-save:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Categorias List */
.categorias-list h3 {
  margin: 0 0 16px 0;
  font-size: 1.1rem;
  color: #495057;
}

.loading-text,
.empty-text {
  text-align: center;
  padding: 40px;
  color: #6c757d;
  font-size: 14px;
}

/* Nuevo diseño por tipo de categoría */
.categorias-por-tipo {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.categoria-tipo-section {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #dee2e6;
}

.tipo-header {
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid;
}

.tipo-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tipo-header.tipo-base {
  border-bottom-color: #28a745;
}

.tipo-header.tipo-base .tipo-badge {
  background-color: #28a745;
  color: white;
}

.tipo-header.tipo-fee {
  border-bottom-color: #fd7e14;
}

.tipo-header.tipo-fee .tipo-badge {
  background-color: #fd7e14;
  color: white;
}

.tipo-header.tipo-promo {
  border-bottom-color: #6f42c1;
}

.tipo-header.tipo-promo .tipo-badge {
  background-color: #6f42c1;
  color: white;
}

.empty-tipo {
  text-align: center;
  padding: 20px;
  color: #6c757d;
  font-size: 14px;
  font-style: italic;
}

.categorias-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.evento-categoria-card {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 10px 16px;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr auto;
  align-items: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.evento-categoria-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.evento-categoria-card.en-uso {
  border-left: 4px solid #fd7e14;
}

.evento-categoria-card.en-evento-activo {
  border-left: 4px solid #dc3545;
}

.evento-categoria-card.en-uso:not(.en-evento-activo) {
  border-left: 4px solid #17a2b8;
}

/* Estilos específicos por tipo de categoría */
.evento-categoria-card.tipo-fee-card {
  border-left: 4px solid #fd7e14;
}

.evento-categoria-card.tipo-promo-card {
  border-left: 4px solid #6f42c1;
}

.categoria-nombre {
  margin: 0;
  font-size: 0.95rem;
  color: #212529;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.precio {
  font-size: 0.95rem;
  color: #28a745;
  font-weight: 600;
  text-align: left;
}

.evento-categoria-card.tipo-fee-card .precio {
  color: #fd7e14;
}

.evento-categoria-card.tipo-promo-card .precio {
  color: #6f42c1;
}

.uso-indicator,
.evento-activo-indicator {
  display: flex;
  align-items: center;
}

.badge-uso {
  display: inline-block;
  padding: 3px 8px;
  background-color: #17a2b8;
  color: white;
  font-size: 11px;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
}

.badge-evento-activo {
  display: inline-block;
  padding: 3px 8px;
  background-color: #dc3545;
  color: white;
  font-size: 11px;
  border-radius: 4px;
  font-weight: 500;
  white-space: nowrap;
}

/* Form select styles */
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  background-color: white;
  cursor: pointer;
}

.form-group select:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.form-group select:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

.categoria-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.btn-edit,
.btn-delete {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 14px;
}

.btn-edit {
  background-color: #ffc107;
  color: #212529;
}

.btn-edit:hover:not(:disabled) {
  background-color: #e0a800;
}

.btn-edit:disabled {
  background-color: #e9ecef;
  color: #adb5bd;
  cursor: not-allowed;
}

.btn-delete {
  background-color: #dc3545;
  color: white;
}

.btn-delete:hover:not(:disabled) {
  background-color: #c82333;
}

.btn-delete:disabled {
  background-color: #e9ecef;
  color: #adb5bd;
  cursor: not-allowed;
}

/* Dialog Styles */
.confirm-dialog,
.warning-dialog {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 24px;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.confirm-dialog h3,
.warning-dialog h3 {
  margin: 0 0 16px 0;
  font-size: 1.25rem;
  color: #212529;
}

.confirm-dialog p,
.warning-dialog p {
  margin: 0 0 12px 0;
  color: #495057;
  line-height: 1.5;
}

.warning-text {
  color: #dc3545 !important;
  font-weight: 500;
}

.info-text {
  color: #6c757d !important;
  font-size: 14px;
  font-style: italic;
}

.uso-list {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  max-height: 200px;
  overflow-y: auto;
}

.uso-item {
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #dee2e6;
}

.uso-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.uso-item strong {
  display: block;
  color: #212529;
  margin-bottom: 4px;
}

.sala-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sala-header strong {
  margin-bottom: 0;
}

.uso-item ul {
  margin: 4px 0 0 0;
  padding-left: 20px;
}

.uso-item li {
  color: #6c757d;
  font-size: 14px;
}

.estado-badge-small {
  display: inline-block;
  padding: 2px 6px;
  font-size: 11px;
  border-radius: 4px;
  font-weight: 500;
  margin-left: 8px;
}

.estado-badge-small.venta {
  background-color: #fd7e14;
  color: white;
}

.estado-badge-small.checkin {
  background-color: #28a745;
  color: white;
}

.estado-badge-small.detenido {
  background-color: #6c757d;
  color: white;
}

.estado-badge-small.finalizado {
  background-color: #17a2b8;
  color: white;
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.btn-delete-confirm {
  padding: 10px 20px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-delete-confirm:hover:not(:disabled) {
  background-color: #c82333;
}

.btn-delete-confirm:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-ok {
  padding: 10px 24px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-ok:hover {
  background-color: #0056b3;
}

/* Tooltip Styles */
.uso-tooltip-container {
  position: relative;
  display: inline-block;
}

.uso-tooltip-container:hover .uso-tooltip {
  display: block;
}

.uso-tooltip {
  display: none;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 12px;
  min-width: 280px;
  max-width: 350px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  z-index: 100;
  margin-bottom: 8px;
}

.uso-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #ffffff transparent transparent transparent;
}

.tooltip-evento {
  padding: 8px;
  border-bottom: 1px solid #dee2e6;
  margin-bottom: 8px;
}

.tooltip-evento:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tooltip-evento strong {
  display: block;
  color: #212529;
  font-size: 13px;
  margin-bottom: 4px;
}

.tooltip-sala {
  display: block;
  color: #6c757d;
  font-size: 12px;
  margin-bottom: 2px;
}

.tooltip-fecha {
  display: block;
  color: #495057;
  font-size: 12px;
  margin-bottom: 4px;
}

.tooltip-estado {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 3px;
  font-weight: 500;
}

.tooltip-estado.venta {
  background-color: #fd7e14;
  color: white;
}

.tooltip-estado.checkin {
  background-color: #28a745;
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .evento-categoria-popup {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .categorias-grid {
    flex-direction: column;
  }

  .evento-categoria-popup-content {
    padding: 16px;
  }
}

/* Toggle button styles for activo/inactivo */
.btn-toggle-activo {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-toggle-activo.activo {
  color: #28a745;
}

.btn-toggle-activo.inactivo {
  color: #6c757d;
}

.btn-toggle-activo:hover {
  transform: scale(1.1);
}

/* Categoria header with toggle */
.categoria-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.categoria-header .categoria-nombre {
  flex: 1;
}

/* Inactive card styles */
.evento-categoria-card.inactiva {
  opacity: 0.6;
  background-color: #f8f9fa;
}

.evento-categoria-card.inactiva .categoria-nombre {
  color: #6c757d;
  text-decoration: line-through;
}

/* Cortesía section styles */
.tipo-header.tipo-cortesia {
  border-bottom-color: #e91e63;
}

.tipo-header.tipo-cortesia .tipo-badge {
  background-color: #e91e63;
  color: white;
}

.evento-categoria-card.tipo-cortesia-card {
  border-left: 4px solid #e91e63;
}

.empty-cortesia {
  text-align: center;
  padding: 20px;
}

.btn-create-cortesia {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: #e91e63;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 12px;
}

.btn-create-cortesia:hover {
  background-color: #c2185b;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(233, 30, 99, 0.3);
}

/* Checkbox label styles */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
  color: #495057;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

/* Detalles Modal Styles */
.detalles-modal {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.detalles-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.detalles-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #212529;
  font-weight: 600;
}

.detalles-modal-content {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.detalles-info {
  margin: 0 0 20px 0;
  color: #6c757d;
  font-size: 14px;
}

.categorias-base-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.categoria-base-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.categoria-base-item.asignado {
  background-color: #e8f5e9;
  border-color: #4caf50;
}

.categoria-base-item.asignado.activo {
  background-color: #e8f5e9;
  border-color: #4caf50;
}

.categoria-base-item.asignado:not(.activo) {
  background-color: #ffebee;
  border-color: #ef5350;
  opacity: 0.7;
}

.categoria-base-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.categoria-base-nombre {
  font-weight: 600;
  color: #212529;
  font-size: 14px;
}

.categoria-base-precio {
  color: #28a745;
  font-size: 13px;
  font-weight: 500;
}

.categoria-base-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-toggle-detalle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-toggle-detalle.activo {
  color: #28a745;
}

.btn-toggle-detalle.inactivo {
  color: #ef5350;
}

.btn-add {
  width: 32px;
  height: 32px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 14px;
}

.btn-add:hover {
  background-color: #218838;
  transform: scale(1.05);
}

.btn-remove {
  width: 32px;
  height: 32px;
  background-color: #dc3545;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 14px;
}

.btn-remove:hover {
  background-color: #c82333;
  transform: scale(1.05);
}

.detalles-modal-footer {
  padding: 16px 24px;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  display: flex;
  justify-content: flex-end;
}

/* Form Modal Styles */
.form-modal {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.form-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.form-modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #212529;
  font-weight: 600;
}

.form-modal-content {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.form-modal-content .form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.form-modal-content .form-group {
  flex: 1;
}

.form-modal-content .form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #495057;
}

.form-modal-content .form-group input,
.form-modal-content .form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-modal-content .form-group input:focus,
.form-modal-content .form-group select:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.form-modal-footer {
  padding: 16px 24px;
  background-color: #f8f9fa;
  border-top: 1px solid #dee2e6;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* Usage Warning Dialog Styles */
.uso-section {
  margin: 12px 0;
}

.uso-section h4 {
  margin: 8px 0;
  font-size: 14px;
  color: #495057;
  font-weight: 600;
}

.uso-list-compact {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 12px;
}

.uso-list-compact li {
  padding: 6px 0;
  border-bottom: 1px solid #dee2e6;
  font-size: 14px;
  color: #495057;
}

.uso-list-compact li:last-child {
  border-bottom: none;
}

.badge-inactivo {
  color: #6c757d;
  font-style: italic;
  font-size: 12px;
}

/* Disabled toggle button styles */
.btn-toggle-activo:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-toggle-activo:disabled:hover {
  transform: none;
}
/* CSS para el editor de mapa con react-rnd */

/* Variables globales para tamaños - Unificados para sectores de tipo sillas */
:root {
  --silla-size: 30px;
  --cell-size-sillas: 40px;  /* Tamaño de celda unificado para sectores tipo sillas */
  --mesa-size: 60px;
  --silla-mesa-size: 18px;
  --silla-offset-sur: 2px;
  --silla-offset-norte: 8px;
  --silla-offset-oeste: 7px;
  --silla-offset-este: 3px;
  --silla-spacing-4: 6px;  /* Espaciado entre sillas cuando hay 4 por lado */
  --silla-offset-vertical-4: -12px;  /* Offset vertical para grupos de 4 sillas (izquierda/derecha) */
  --silla-offset-horizontal-4: -12px;  /* Offset horizontal para grupos de 4 sillas (arriba/abajo) */
  --silla-font-size: 11px;
  --silla-con-fila-font-size: 11px;  /* Mismo tamaño de fuente para sillas con filas */
  --mesa-font-size: 15px;
}
.am-container {
  width: 100%;
  height: 100vh;
  background-color: #f5f5f5;
  padding: 20px;
  box-sizing: border-box;
}

.am-editor {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.am-toolbar {
  display: flex;
  gap: 10px;
  padding: 15px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-radius: 8px 8px 0 0;
  align-items: center;
}

.am-toolbar button {
  padding: 8px 16px;
  border: 1px solid #007bff;
  background: #007bff;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.am-toolbar button:hover {
  background: #0056b3;
  border-color: #0056b3;
}

.am-mapa-area {
  flex: 1;
  position: relative;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  margin: 15px;
  border-radius: 4px;
  overflow: auto; /* Enable scrolling */
  min-height: 500px;
}

/* Sector Styles */
.am-sector-rnd {
  z-index: 1;
}

.am-sector-seleccionado {
  box-shadow: 0 0 0 3px #007bff;
  border: 2px solid #007bff;
}

.am-sector-content-wrapper {
  width: 100%;
  height: 100%;
  border: 2px solid #6c757d; /* Matches BORDER_WIDTH = 2 */
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.am-sector-header {
  background: rgba(108, 117, 125, 0.8);
  color: white;
  padding: 0 8px; /* Remove vertical padding, use flex align */
  font-size: 12px;
  font-weight: bold;
  border-radius: 6px 6px 0 0;
  margin-bottom: 0;
  text-align: center;
  cursor: move;
  flex-shrink: 0;
  z-index: 10;
  position: relative;
  /* Height is set inline in JS, but we can set defaults here */
  display: flex;
  align-items: center;
  justify-content: center;
}

.am-sector-items {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
  /* Grid overlay is absolute inside here */
}

/* Mesa Styles */
.am-mesa-rnd {
  z-index: 2;
}

.am-mesa-seleccionada {
  box-shadow: 0 0 0 3px #007bff;
  border-radius: 15%;
}

.am-mesa-content {
  width: 100%;
  height: 100%;
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--mesa-font-size);
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
  box-sizing: border-box;
  position: relative;
}

.am-mesa-content:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.am-mesa-numero {
  z-index: 2;
  pointer-events: none;
}

/* Silla Styles */
.am-silla {
  position: absolute;
  border: 1px solid #333;
  width: var(--silla-mesa-size);
  height: var(--silla-mesa-size);
}

.am-silla-rnd {
  z-index: 2;
}

.am-silla-seleccionada {
  box-shadow: 0 0 0 3px #007bff;
  border-radius: 50%;
}

.am-silla-content {
  border: 1px solid #333;
  cursor: move;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--silla-font-size);
  color: white;
  font-weight: bold;
  border-radius: 50%;
}

.am-silla-content:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Escenario Styles */
.am-escenario-rnd {
  z-index: 1;
}

.am-escenario-content {
  width: 100%;
  height: 100%;
  border: 2px solid #6f42c1;
  border-radius: 4px;
  background: rgba(111, 66, 193, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  color: #6f42c1;
  cursor: move;
  user-select: none;
  box-sizing: border-box;
}

.am-escenario-content:hover {
  border-color: #5a2d91;
  background: rgba(111, 66, 193, 0.2);
}

/* Responsive design */
@media (max-width: 768px) {
  .am-container {
    padding: 10px;
  }
  
  .am-toolbar {
    flex-direction: column;
    gap: 5px;
  }
  
  .am-toolbar button {
    width: 100%;
  }
  
  .am-mapa-area {
    margin: 10px;
    min-height: 300px;
  }
}

.am-sector-objeto-content {
  width: 100%;
  height: 100%;
  border: 2px solid #6c757d;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  cursor: move;
  user-select: none;
  box-sizing: border-box;
}

/* Sector Popup Styles */
.sector-editor-popup {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  width: 500px;
  max-width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.sector-popup-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-section {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 15px;
  background-color: #f8f9fa;
}

.form-section-title {
  font-size: 14px;
  font-weight: bold;
  color: #495057;
  margin-bottom: 10px;
  border-bottom: 1px solid #dee2e6;
  padding-bottom: 5px;
}

.dimmed-section {
  opacity: 0.5;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.color-hex-input {
  width: 80px;
  padding: 4px 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-family: monospace;
  text-transform: uppercase;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 10px;
  font-weight: 500;
}


/* Sector Popup Styles */
.sector-popup-content {
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
}

.form-section {
  margin-bottom: 20px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.form-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 16px;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 8px;
}

.row-config-container {
  transition: opacity 0.3s ease;
}

.row-config-container.dimmed {
  opacity: 0.5;
  pointer-events: none;
}

.color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hex-input {
  width: 80px;
  padding: 4px 8px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-family: monospace;
  text-transform: uppercase;
}

/* Processing Overlay Styles */
.processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.processing-content {
  background: white;
  padding: 40px 60px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.processing-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.processing-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Disabled button styles */
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

input:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}
/* CSS para el componente Reserva */

.re-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f5f5f5;
}

/* Header Styles */
.re-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: white;
  border-bottom: 2px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.re-header h2 {
  margin: 0;
  color: #212529;
  font-size: 1.5rem;
  font-weight: 600;
}

.re-header-controls {
  display: flex;
  align-items: center;
  gap: 15px;
}

.re-evento-select {
  padding: 10px 15px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  font-size: 14px;
  min-width: 300px;
  background-color: white;
  cursor: pointer;
  transition: border-color 0.2s;
}

.re-evento-select:hover {
  border-color: #007bff;
}

.re-evento-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.re-evento-select:disabled {
  background-color: #e9ecef;
  cursor: not-allowed;
}

/* Carrito Button */
.re-carrito-btn {
  position: relative;
  padding: 10px 15px;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.re-carrito-btn:hover {
  background: #0056b3;
  transform: translateY(-1px);
}

.re-carrito-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc3545;
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Content Area */
.re-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.re-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 18px;
  color: #6c757d;
}

.re-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  font-size: 18px;
  color: #6c757d;
}

/* Mapa Container */
.re-mapa-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Toolbar */
.re-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.re-zoom-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.re-zoom-controls span {
  font-size: 14px;
  color: #495057;
  min-width: 80px;
}

.re-zoom-controls button {
  padding: 5px 12px;
  border: 1px solid #007bff;
  background: white;
  color: #007bff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s;
}

.re-zoom-controls button:hover {
  background: #007bff;
  color: white;
}

/* Leyenda */
.re-leyenda {
  display: flex;
  gap: 20px;
}

.re-leyenda-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #495057;
}

.re-leyenda-color {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

/* Snapshot Button */
.re-snapshot-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  background: #6f42c1;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}

.re-snapshot-btn:hover {
  background: #5a32a3;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(111, 66, 193, 0.4);
}

.re-snapshot-btn:active {
  transform: translateY(0);
}

.re-snapshot-btn svg {
  font-size: 16px;
}

/* Mapa Area */
.re-mapa-area {
  flex: 1;
  position: relative;
  background: #f8f9fa;
  border: 2px dashed #dee2e6;
  margin: 15px;
  border-radius: 4px;
  overflow: auto;
  min-height: 500px;
}

.re-scalable-content {
  background: white;
}

/* Sector Styles */
.re-sector {
  z-index: 1;
}

.re-sector-content {
  width: 100%;
  height: 100%;
  border: 2px solid #6c757d;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.re-sector-header {
  background: rgba(108, 117, 125, 0.8);
  color: white;
  padding: 0 8px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 6px 6px 0 0;
  text-align: center;
  flex-shrink: 0;
  z-index: 10;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.re-sector-items {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
}

.re-sector-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Sector Objeto */
.re-sector-objeto {
  width: 100%;
  height: 100%;
  border: 2px solid #6c757d;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  box-sizing: border-box;
}

/* Mesa Styles */
.re-mesa {
  z-index: 2;
}

.re-mesa-content {
  width: 100%;
  height: 100%;
  border: 2px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
  position: relative;
  box-sizing: border-box;
}

.re-mesa-numero {
  z-index: 2;
  pointer-events: none;
}

/* Silla en Mesa */
.re-silla-mesa {
  position: absolute;
  border: 1px solid #333;
  border-radius: 50%;
  transition: transform 0.1s;
}

.re-silla-mesa:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/* Silla Individual (Butaca) */
.re-silla {
  border: 1px solid #333;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: white;
  font-weight: bold;
  transition: transform 0.1s;
}

.re-silla:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

/* Escenario Styles */
.re-escenario {
  z-index: 1;
}

.re-escenario-content {
  width: 100%;
  height: 100%;
  border: 2px solid #6f42c1;
  border-radius: 4px;
  background: rgba(111, 66, 193, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  box-sizing: border-box;
  /* Los estilos font-size y color se aplican inline desde el componente */
}

/* Carrito Panel */
.re-carrito-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 350px;
  height: 100vh;
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.re-carrito-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

.re-carrito-header h3 {
  margin: 0;
  font-size: 18px;
  color: #212529;
}

.re-carrito-cerrar {
  background: none;
  border: none;
  font-size: 20px;
  color: #6c757d;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s;
}

.re-carrito-cerrar:hover {
  color: #dc3545;
}

.re-carrito-items {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
}

.re-carrito-vacio {
  text-align: center;
  color: #6c757d;
  font-style: italic;
  padding: 30px 0;
}

.re-carrito-item {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 10px;
  border: 1px solid #e9ecef;
}

.re-carrito-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.re-carrito-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.re-carrito-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.re-carrito-item-categorias {
  margin-top: 4px;
}

.re-carrito-item-tipo {
  font-weight: 600;
  color: #212529;
  font-size: 14px;
}

.re-carrito-item-sector {
  font-size: 12px;
  color: #6c757d;
}

.re-carrito-item-mesa {
  font-size: 12px;
  color: #007bff;
}

.re-carrito-item-precio {
  display: flex;
  align-items: center;
  gap: 8px;
}

.re-carrito-item-precio span {
  font-weight: 600;
  color: #28a745;
  font-size: 16px;
}

.re-carrito-item-remove {
  background: #dc3545;
  border: none;
  color: white;
  padding: 5px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.re-carrito-item-remove:hover {
  background: #c82333;
}

.re-cortesia-badge {
  background: #28a745;
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.re-carrito-footer {
  padding: 15px 20px;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
}

.re-carrito-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  font-size: 18px;
}

.re-carrito-total span:first-child {
  font-weight: 600;
  color: #212529;
}

.re-carrito-total-monto {
  font-weight: 700;
  color: #28a745;
  font-size: 22px;
}

.re-carrito-comprar {
  width: 100%;
  padding: 12px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.re-carrito-comprar:hover {
  background: #218838;
}

.re-carrito-comprar:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
  .re-header {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .re-header h2 {
    font-size: 1.2rem;
  }

  .re-header-controls {
    flex-direction: column;
    width: 100%;
  }

  .re-evento-select {
    min-width: unset !important;
    width: 100% !important;
  }

  /* React-select custom styles for mobile */
  .re-select__control {
    min-width: unset !important;
    width: 100% !important;
  }

  .re-select__menu-portal {
    max-width: 95vw !important;
  }

  .re-select__menu {
    min-width: unset !important;
    width: auto !important;
    max-width: 95vw !important;
  }

  .re-toolbar {
    flex-direction: column;
    gap: 10px;
  }

  .re-leyenda {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 15px;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }

  .re-leyenda-item {
    font-size: 12px;
    gap: 6px;
    justify-content: center;
  }

  .re-leyenda-color {
    width: 14px;
    height: 14px;
  }

  .re-carrito-panel {
    width: 100%;
  }
}

/* Estilos para los Popups de Cliente */

.re-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1100;
}

.re-popup-container {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.re-popup-seleccion {
  max-width: 600px;
}

.re-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
  border-radius: 8px 8px 0 0;
}

.re-popup-header h3 {
  margin: 0;
  font-size: 18px;
  color: #212529;
}

.re-popup-cerrar {
  background: none;
  border: none;
  font-size: 20px;
  color: #6c757d;
  cursor: pointer;
  padding: 5px;
  transition: color 0.2s;
}

.re-popup-cerrar:hover {
  color: #dc3545;
}

.re-popup-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.re-form-group {
  margin-bottom: 15px;
}

.re-form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #495057;
  font-size: 14px;
}

.re-form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.re-form-group input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.re-form-group input::placeholder {
  color: #adb5bd;
}

.re-busqueda-container {
  margin-bottom: 15px;
}

.re-busqueda-input {
  position: relative;
  display: flex;
  align-items: center;
}

.re-busqueda-input svg {
  position: absolute;
  left: 12px;
  color: #6c757d;
  font-size: 16px;
}

.re-busqueda-input input {
  padding-left: 35px;
}

.re-clientes-lista {
  max-height: 350px;
  overflow-y: auto;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

.re-cargando,
.re-sin-resultados {
  text-align: center;
  padding: 30px;
  color: #6c757d;
  font-style: italic;
}

.re-cliente-item {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-bottom: 1px solid #e9ecef;
  cursor: pointer;
  transition: background 0.2s;
}

.re-cliente-item:last-child {
  border-bottom: none;
}

.re-cliente-item:hover {
  background: #f8f9fa;
}

.re-cliente-item.re-cliente-seleccionado {
  background: #007bff;
  border-color: #0056b3;
}

.re-cliente-item.re-cliente-seleccionado .re-cliente-nombre {
  color: white;
}

.re-cliente-item.re-cliente-seleccionado .re-cliente-detalles {
  color: rgba(255, 255, 255, 0.9);
}

.re-cliente-item.re-cliente-seleccionado .re-cliente-icono {
  background: white;
  color: #007bff;
}

.re-cliente-item.re-cliente-dimming {
  opacity: 0.4;
}

.re-cliente-icono {
  width: 40px;
  height: 40px;
  background: #007bff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-right: 15px;
  flex-shrink: 0;
}

.re-cliente-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.re-cliente-nombre {
  font-weight: 600;
  color: #212529;
  font-size: 15px;
}

.re-cliente-detalles {
  font-size: 13px;
  color: #6c757d;
}

.re-popup-footer {
  display: flex;
  gap: 10px;
  padding: 15px 20px;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  border-radius: 0 0 8px 8px;
}

.re-popup-footer button {
  flex: 1;
  padding: 10px 15px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.re-btn-seleccionar-cliente {
  background: #6c757d;
  color: white;
}

.re-btn-seleccionar-cliente:hover {
  background: #5a6268;
}

.re-btn-reservar {
  background: #28a745;
  color: white;
}

.re-btn-reservar:hover:not(:disabled) {
  background: #218838;
}

.re-btn-reservar:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.re-btn-volver {
  background: #17a2b8;
  color: white;
}

.re-btn-volver:hover {
  background: #138496;
}

/* Processing Overlay Styles */
.processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.processing-content {
  background: white;
  padding: 40px 60px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.processing-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.processing-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Responsive para popups */
@media (max-width: 768px) {
  .re-popup-container {
    width: 95%;
    max-height: 95vh;
  }

  .re-popup-footer {
    flex-direction: column;
  }

  .re-popup-footer button {
    width: 100%;
  }
}

/* Estilos para paginación de clientes */
.re-paginacion-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 15px;
  background: #f8f9fa;
  border-top: 1px solid #dee2e6;
  border-radius: 0 0 4px 4px;
}

.re-paginacion-info {
  font-size: 13px;
  color: #6c757d;
  text-align: center;
}

.re-paginacion-controles {
  display: flex;
  align-items: center;
  gap: 15px;
}

.re-paginacion-btn {
  padding: 8px 16px;
  border: 1px solid #007bff;
  background: white;
  color: #007bff;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
}

.re-paginacion-btn:hover:not(:disabled) {
  background: #007bff;
  color: white;
}

.re-paginacion-btn:disabled {
  border-color: #6c757d;
  color: #6c757d;
  cursor: not-allowed;
  background: #e9ecef;
}

.re-paginacion-pagina {
  font-size: 14px;
  font-weight: 600;
  color: #495057;
  min-width: 100px;
  text-align: center;
}
.ticket-categorias {
  padding: 8px 0 0 0;
}

.ticket-categorias.tc-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.tc-loading {
  padding: 8px 0;
  text-align: center;
  color: #6c757d;
  font-size: 12px;
}

.tc-seccion {
  margin-bottom: 6px;
}

.tc-seccion:last-child {
  margin-bottom: 0;
}

.tc-promos {
  padding-bottom: 6px;
  border-bottom: 1px dashed #dee2e6;
}

.tc-cortesia {
  padding-top: 2px;
}

.tc-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.tc-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #dc3545;
  flex-shrink: 0;
}

.tc-checkbox-text {
  color: #dc3545;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tc-promo-label .tc-checkbox-text {
  color: #dc3545;
}

.tc-opciones {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tc-precio-badge {
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 8px;
}

.tc-descuento {
  background: #d4edda;
  color: #155724;
}

/* Responsive */
@media (max-width: 768px) {
  .tc-checkbox-text {
    flex-wrap: wrap;
  }
  
  .tc-precio-badge {
    margin-left: auto;
  }
}/* Tickets Component Styles */

:root {
  --color-reservado: #fd7e14;
  --color-reservado-light: #ffc078;
  --color-reservado-dark: #e8590c;
  --color-comprado: #17a2b8;
  --color-comprado-light: #7fdbf0;
  --color-comprado-dark: #138496;
  --color-checkin: #28a745;
  --color-checkin-light: #69db7c;
  --color-checkin-dark: #1e7e34;
  --color-caducado: #6c757d;
  --color-caducado-light: #adb5bd;
  --color-caducado-dark: #495057;
  --color-ingresos: #6f42c1;
  --color-ingresos-light: #a98eda;
  --color-ingresos-dark: #5a32a3;
  --color-pendiente: #fd7e14;
  --color-pendiente-light: #ffc078;
  --color-pendiente-dark: #e8590c;
  --color-confirmada: #28a745;
  --color-confirmada-light: #69db7c;
  --color-confirmada-dark: #1e7e34;
  --color-anulada: #dc3545;
  --color-anulada-light: #f5c6cb;
  --color-anulada-dark: #bd2130;
  --color-cortesia: #9c27b0;
  --color-cortesia-light: #e1bee7;
  --color-cortesia-dark: #7b1fa2;
  --bg-primary: #f8f9fa;
  --bg-card: #ffffff;
  --text-primary: #212529;
  --text-secondary: #6c757d;
  --border-color: #dee2e6;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.2s ease-in-out;
}

.tickets-container {
  padding: 20px;
  background-color: var(--bg-primary);
  min-height: 100%;
}

.tickets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
  flex-wrap: wrap;
  gap: 15px;
}

.tickets-header h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tickets-header h2 svg {
  color: var(--color-comprado);
}

/* Filters Section */
.tickets-filters {
  background-color: var(--bg-card);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.evento-selector {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.evento-selector label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.evento-dropdown {
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 14px;
  background-color: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
  min-width: 300px;
}

.evento-dropdown:hover {
  border-color: var(--color-comprado);
}

.evento-dropdown:focus {
  outline: none;
  border-color: var(--color-comprado);
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.2);
}

.evento-dropdown:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* View Mode Selector */
.view-mode-selector {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  align-items: center;
  flex-wrap: wrap;
}

/* Search Filter */
.search-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px 12px;
  background-color: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: var(--transition);
  min-width: 250px;
}

.search-filter:focus-within {
  border-color: var(--color-comprado);
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.2);
}

.search-filter .search-icon {
  color: var(--text-secondary);
  font-size: 14px;
  flex-shrink: 0;
}

.search-filter .search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--text-primary);
  width: 100%;
  min-width: 150px;
}

.search-filter .search-input::placeholder {
  color: var(--text-secondary);
}

.view-mode-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-card);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.view-mode-btn:hover {
  border-color: var(--color-comprado);
  color: var(--color-comprado);
}

.view-mode-btn.active {
  background-color: var(--color-comprado);
  border-color: var(--color-comprado);
  color: white;
}

/* Evento Info Bar */
.evento-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background-color: var(--bg-card);
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--color-comprado);
}

.evento-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.evento-info-item .info-label {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.evento-info-item .info-value {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 14px;
}

/* Stats Section */
.tickets-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.stat-card {
  background-color: var(--bg-card);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-card .stat-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 5px;
}

.stat-card .stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card.estado-reservado {
  border-top: 3px solid var(--color-reservado);
}

.stat-card.estado-reservado .stat-value {
  color: var(--color-reservado);
}

.stat-card.estado-comprado {
  border-top: 3px solid var(--color-comprado);
}

.stat-card.estado-comprado .stat-value {
  color: var(--color-comprado);
}

.stat-card.estado-checkin {
  border-top: 3px solid var(--color-checkin);
}

.stat-card.estado-checkin .stat-value {
  color: var(--color-checkin);
}

.stat-card.estado-caducado {
  border-top: 3px solid var(--color-caducado);
}

.stat-card.estado-caducado .stat-value {
  color: var(--color-caducado);
}

.stat-card.estado-pendiente {
  border-top: 3px solid var(--color-pendiente);
}

.stat-card.estado-pendiente .stat-value {
  color: var(--color-pendiente);
}

.stat-card.estado-confirmada {
  border-top: 3px solid var(--color-confirmada);
}

.stat-card.estado-confirmada .stat-value {
  color: var(--color-confirmada);
}

.stat-card.estado-anulada {
  border-top: 3px solid var(--color-anulada);
}

.stat-card.estado-anulada .stat-value {
  color: var(--color-anulada);
}

.stat-card.ingresos {
  border-top: 3px solid var(--color-ingresos);
}

.stat-card.ingresos .stat-value {
  color: var(--color-ingresos);
}

/* Tickets List */
.tickets-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Ticket Card */
.ticket-card {
  background-color: var(--bg-card);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  animation: fadeIn 0.3s ease-in-out;
}

.ticket-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* Status-based border colors */
.ticket-card.estado-reservado {
  border-left: 4px solid var(--color-reservado);
}

.ticket-card.estado-comprado {
  border-left: 4px solid var(--color-comprado);
}

.ticket-card.estado-checkin {
  border-left: 4px solid var(--color-checkin);
}

.ticket-card.estado-caducado {
  border-left: 4px solid var(--color-caducado);
}

.ticket-card.estado-anulada {
  border-left: 4px solid var(--color-anulada);
}

/* Status-based header backgrounds */
.ticket-card.estado-reservado .ticket-card-header {
  background-color: #fff3cd;
  border-bottom-color: var(--color-reservado);
}

.ticket-card.estado-comprado .ticket-card-header {
  background-color: #e3f2fd;
  border-bottom-color: var(--color-comprado);
}

.ticket-card.estado-checkin .ticket-card-header {
  background-color: #d4edda;
  border-bottom-color: var(--color-checkin);
}

.ticket-card.estado-caducado .ticket-card-header {
  background-color: #e9ecef;
  border-bottom-color: var(--color-caducado);
}

.ticket-card.estado-anulada .ticket-card-header {
  background-color: #f8d7da;
  border-bottom-color: var(--color-anulada);
}

.ticket-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 2px solid transparent;
  background-color: #fafbfc;
  flex-wrap: wrap;
  gap: 10px;
}

.ticket-info-principal {
  display: flex;
  align-items: center;
  gap: 15px;
}

.ticket-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  background-color: var(--color-comprado);
}

.ticket-card.estado-reservado .ticket-icon {
  background-color: var(--color-reservado);
}

.ticket-card.estado-comprado .ticket-icon {
  background-color: var(--color-comprado);
}

.ticket-card.estado-checkin .ticket-icon {
  background-color: var(--color-checkin);
}

.ticket-card.estado-caducado .ticket-icon {
  background-color: var(--color-caducado);
}

.ticket-card.estado-anulada .ticket-icon {
  background-color: var(--color-anulada);
}

.ticket-cliente h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ticket-cliente .ticket-id {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticket-cliente .ticket-codigo-reserva {
  font-family: monospace;
  font-weight: 600;
  color: var(--color-comprado);
  background-color: rgba(23, 162, 184, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.icon-small {
  font-size: 14px;
  color: var(--text-secondary);
}

.ticket-card-body {
  padding: 20px;
}

.ticket-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.ticket-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticket-detail .info-label {
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticket-detail span:not(.info-label) {
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
}

.ticket-detail .localidad-info {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-comprado);
  font-weight: 600;
}

.ticket-detail .precio {
  color: var(--color-ingresos);
  font-weight: 700;
  font-size: 1.1rem;
}

.ticket-detail .precio.precio-cortesia {
  color: var(--color-cortesia);
  font-style: italic;
}

/* Status Badge Styles */
.estado-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.estado-badge.small {
  padding: 4px 8px;
  font-size: 10px;
}

.estado-badge.reservado {
  background-color: var(--color-reservado);
}

.estado-badge.comprado {
  background-color: var(--color-comprado);
}

.estado-badge.checkin {
  background-color: var(--color-checkin);
}

.estado-badge.caducado {
  background-color: var(--color-caducado);
}

.estado-badge.detenido {
  background-color: #6c757d;
}

.estado-badge.venta {
  background-color: #fd7e14;
}

.estado-badge.finalizado {
  background-color: #dc3545;
}

.estado-badge.pendiente {
  background-color: var(--color-pendiente);
}

.estado-badge.confirmada {
  background-color: var(--color-confirmada);
}

.estado-badge.anulada,
.estado-badge.anulado {
  background-color: var(--color-anulada);
}

/* Empty State */
.tickets-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  font-size: 16px;
  background-color: var(--bg-card);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.tickets-empty .empty-icon {
  font-size: 48px;
  color: var(--border-color);
  margin-bottom: 15px;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Reservas List Styles */
.reservas-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Reserva Card */
.reserva-card {
  background-color: var(--bg-card);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: var(--transition);
  animation: fadeIn 0.3s ease-in-out;
}

.reserva-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.reserva-card.estado-pendiente {
  border-left: 4px solid var(--color-pendiente);
}

.reserva-card.estado-confirmada {
  border-left: 4px solid var(--color-confirmada);
}

.reserva-card.estado-anulada {
  border-left: 4px solid var(--color-anulada);
}

.reserva-card.estado-pendiente .reserva-card-header {
  background-color: #fff3cd;
  border-bottom-color: var(--color-pendiente);
}

.reserva-card.estado-confirmada .reserva-card-header {
  background-color: #d4edda;
  border-bottom-color: var(--color-confirmada);
}

.reserva-card.estado-anulada .reserva-card-header {
  background-color: #f8d7da;
  border-bottom-color: var(--color-anulada);
}

.reserva-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-bottom: 2px solid transparent;
  background-color: #fafbfc;
  flex-wrap: wrap;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
}

.reserva-card.estado-pendiente .reserva-card-header:hover {
  background-color: #ffeaa7;
}

.reserva-card.estado-confirmada .reserva-card-header:hover {
  background-color: #b8e0c8;
}

.reserva-card.estado-anulada .reserva-card-header:hover {
  background-color: #f5c6cb;
}

.reserva-info-principal {
  display: flex;
  align-items: center;
  gap: 15px;
}

.reserva-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: white;
  background-color: var(--color-comprado);
}

.reserva-card.estado-pendiente .reserva-icon {
  background-color: var(--color-pendiente);
  box-shadow: 0 0 0 3px rgba(253, 126, 20, 0.3);
}

.reserva-card.estado-confirmada .reserva-icon {
  background-color: var(--color-confirmada);
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

.reserva-card.estado-anulada .reserva-icon {
  background-color: var(--color-anulada);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3);
}

/* Hover effects for reservation cards */
.reserva-card.estado-pendiente:hover {
  border-left-color: var(--color-pendiente-dark);
  box-shadow: 0 4px 12px rgba(253, 126, 20, 0.15);
}

.reserva-card.estado-confirmada:hover {
  border-left-color: var(--color-confirmada-dark);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.reserva-card.estado-anulada:hover {
  border-left-color: var(--color-anulada-dark);
  box-shadow: 0 4px 12px rgba(220, 53, 69, 0.15);
}

/* Status badge enhancements for reservations */
.estado-badge.pendiente {
  background-color: var(--color-pendiente);
  box-shadow: 0 2px 4px rgba(253, 126, 20, 0.3);
}

.estado-badge.confirmada {
  background-color: var(--color-confirmada);
  box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.estado-badge.anulada {
  background-color: var(--color-anulada);
  box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Stat cards for reservation states */
.stat-card.estado-pendiente {
  border-top: 3px solid var(--color-pendiente);
}

.stat-card.estado-pendiente .stat-value {
  color: var(--color-pendiente);
}

.stat-card.estado-confirmada {
  border-top: 3px solid var(--color-confirmada);
}

.stat-card.estado-confirmada .stat-value {
  color: var(--color-confirmada);
}

.stat-card.estado-anulada {
  border-top: 3px solid var(--color-anulada);
}

.stat-card.estado-anulada .stat-value {
  color: var(--color-anulada);
}

.reserva-cliente h4 {
  margin: 0;
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reserva-cliente .reserva-codigo {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: monospace;
  background-color: rgba(0,0,0,0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.reserva-info-secundaria {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.reserva-summary {
  display: flex;
  gap: 15px;
  font-size: 13px;
  color: var(--text-secondary);
}

.reserva-tickets-count,
.reserva-total {
  display: flex;
  align-items: center;
  gap: 5px;
}

.reserva-total {
  font-weight: 600;
  color: var(--color-ingresos);
}

.reserva-card-body {
  padding: 20px;
}

.reserva-main-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.reserva-main-info .reserva-details {
  flex: 1;
  margin-bottom: 0;
  min-width: 200px;
}

.reserva-main-info .reserva-actions {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  align-self: flex-start;
  min-width: 200px;
  flex-shrink: 0;
}

.reserva-details {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

@media (max-width: 1200px) {
  .reserva-details {
    grid-template-columns: repeat(2, 1fr);
  }
}

.reserva-detail {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.expand-btn {
  margin-top: 10px;
  padding: 8px 16px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.expand-btn:hover {
  background-color: var(--border-color);
}

/* Reserva Tickets Detalle */
.reserva-tickets-detalle {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.reserva-tickets-detalle h5 {
  margin: 0 0 15px 0;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
}

.tickets-detalle-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-detalle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  background-color: var(--bg-primary);
  border-radius: 8px;
  border-left: 3px solid var(--border-color);
}

.ticket-detalle-item.estado-reservado {
  border-left-color: var(--color-reservado);
}

.ticket-detalle-item.estado-comprado {
  border-left-color: var(--color-comprado);
}

.ticket-detalle-item.estado-checkin {
  border-left-color: var(--color-checkin);
}

.ticket-detalle-item.estado-caducado {
  border-left-color: var(--color-caducado);
}

.ticket-detalle-item.estado-anulada {
  border-left-color: var(--color-anulada);
}

.ticket-detalle-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticket-detalle-localidad {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ticket-detalle-sector {
  font-size: 12px;
  color: var(--text-secondary);
}

.ticket-detalle-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ticket-detalle-precio {
  font-weight: 700;
  color: var(--color-ingresos);
}

.ticket-detalle-precio.precio-cortesia {
  color: var(--color-cortesia);
  font-style: italic;
}

.no-tickets {
  text-align: center;
  color: var(--text-secondary);
  font-style: italic;
  padding: 20px;
}

/* Cortesia Badge Styles */
.cortesia-badge {
  display: inline-block;
  background-color: var(--color-cortesia);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cortesia-badge-header {
  display: inline-block;
  background-color: var(--color-cortesia);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Promo Badge Styles - Color Teal para descuentos */
.promo-badge {
  display: inline-block;
  background: linear-gradient(135deg, #009688 0%, #00796b 100%);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 150, 136, 0.3);
}

.promo-badge-header {
  display: inline-block;
  background: linear-gradient(135deg, #009688 0%, #00796b 100%);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0, 150, 136, 0.3);
}

/* Fee Badge Styles - Color Ámbar para cargos adicionales */
.fee-badge {
  display: inline-block;
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

.fee-badge-header {
  display: inline-block;
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  margin-left: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
}

/* Ticket Cortesia Card Styles */
.ticket-card.ticket-cortesia {
  border-left: 4px solid var(--color-cortesia);
}

.ticket-card.ticket-cortesia .ticket-card-header {
  background-color: var(--color-cortesia-light);
  border-bottom-color: var(--color-cortesia);
}

.ticket-card.ticket-cortesia .ticket-icon {
  background-color: var(--color-cortesia);
}

/* Ticket Detalle Item Cortesia */
.ticket-detalle-item.ticket-cortesia {
  border-left-color: var(--color-cortesia);
  background-color: rgba(156, 39, 176, 0.05);
}

/* Reserva Action Buttons */
.reserva-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
  justify-content: flex-end;
}

.reserva-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
  color: white;
}

.reserva-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.reserva-btn-vista-previa {
  background-color: #17a2b8;
}

.reserva-btn-vista-previa:hover {
  background-color: #138496;
}

.reserva-btn-pdf {
  background-color: #dc3545;
}

.reserva-btn-pdf:hover {
  background-color: #c82333;
}

.reserva-btn-confirmar {
  background-color: #28a745;
}

.reserva-btn-confirmar:hover {
  background-color: #218838;
}

.reserva-btn-anular {
  background-color: #6c757d;
}

.reserva-btn-anular:hover {
  background-color: #5a6268;
}

/* Responsive Design */
@media (max-width: 768px) {
  .tickets-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tickets-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .evento-info-bar {
    flex-direction: column;
    gap: 10px;
  }

  .ticket-card-header,
  .reserva-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .reserva-info-secundaria {
    align-items: flex-start;
    width: 100%;
  }

  .ticket-details,
  .reserva-details {
    grid-template-columns: 1fr;
  }

  .evento-dropdown {
    min-width: 100%;
  }

  .view-mode-selector {
    flex-direction: column;
    align-items: stretch;
  }

  .view-mode-btn {
    width: 100%;
    justify-content: center;
  }

  .search-filter {
    margin-left: 0;
    width: 100%;
    min-width: auto;
  }

  .ticket-detalle-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .reserva-main-info {
    flex-direction: column;
    gap: 15px;
  }

  .reserva-main-info .reserva-actions {
    align-self: flex-start;
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .tickets-container {
    padding: 15px;
  }

  .tickets-stats {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 15px;
  }

  .ticket-info-principal,
  .reserva-info-principal {
    flex-direction: column;
    align-items: flex-start;
  }

  .reserva-summary {
    flex-direction: column;
    gap: 5px;
  }
}

/* Filter Cards Styles */
.stat-card.filter-card {
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.stat-card.filter-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-card.filter-card.active {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-bottom: 2px solid transparent;
}

/* Active state backgrounds */
.stat-card.filter-card.active.estado-pendiente {
  background-color: #fff8e1; /* Light orange/yellow */
  border-top-width: 4px;
}

.stat-card.filter-card.active.estado-confirmada {
  background-color: #e8f5e9; /* Light green */
  border-top-width: 4px;
}

.stat-card.filter-card.active.estado-anulada {
  background-color: #ffebee; /* Light red */
  border-top-width: 4px;
}

/* Active state backgrounds for Tickets */
.stat-card.filter-card.active.estado-reservado {
  background-color: #fff3cd; /* Light yellow/orange */
  border-top-width: 4px;
}

.stat-card.filter-card.active.estado-comprado {
  background-color: #e3f2fd; /* Light blue */
  border-top-width: 4px;
}

.stat-card.filter-card.active.estado-checkin {
  background-color: #d4edda; /* Light green */
  border-top-width: 4px;
}

.stat-card.filter-card.active.estado-caducado {
  background-color: #e9ecef; /* Light gray */
  border-top-width: 4px;
}

/* Active state for Cortesia filter card */
.stat-card.filter-card.active.cortesia {
  background-color: rgba(156, 39, 176, 0.1); /* Light purple */
  border-top-width: 4px;
  border-top-color: var(--color-cortesia);
}

.stat-card.filter-card.active.cortesia .stat-value {
  color: var(--color-cortesia);
}

/* Hover effect for cortesia stat card */
.stat-card.filter-card.cortesia:hover {
  border-top-color: var(--color-cortesia);
}

/* Default "Total" active style */
.stat-card.filter-card:not(.estado-pendiente):not(.estado-confirmada):not(.estado-anulada):not(.estado-reservado):not(.estado-comprado):not(.estado-checkin):not(.estado-caducado).active {
  background-color: #e3f2fd; /* Light blue */
  border-top: 4px solid var(--color-comprado);
}

.stat-card.filter-card:not(.estado-pendiente):not(.estado-confirmada):not(.estado-anulada):not(.estado-reservado):not(.estado-comprado):not(.estado-checkin):not(.estado-caducado).active .stat-value {
  color: var(--color-comprado);
}

/* Processing Overlay Styles */
.processing-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.processing-content {
  background: white;
  padding: 40px 60px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.processing-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.processing-text {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
  padding: 20px;
  background-color: var(--bg-card);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  min-height: 120px;
  position: relative;
  z-index: 1;
  /* Prevenir cualquier animación o transición */
  animation: none !important;
  transition: none !important;
}

.pagination-container:focus-within {
  outline: none;
}

/* Forzar estabilidad del layout durante interacciones */
.pagination-container * {
  box-sizing: border-box;
  animation: none !important;
}

/* Deshabilitar todas las transiciones en elementos de paginación */
.pagination-container,
.pagination-container *,
.pagination-info,
.pagination-controls,
.pagination-btn,
.pagination-page-btn,
.pagination-limit-select-wrapper,
.pagination-limit-select {
  transition: none !important;
  animation: none !important;
}

.pagination-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.pagination-limit-select-wrapper {
  position: relative;
  display: inline-block;
  /* Dimensiones fijas para evitar recálculos */
  width: 130px;
  min-width: 130px;
  max-width: 130px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  /* Aislar el renderizado */
  isolation: isolate;
  /* GPU layer */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.pagination-limit-select {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 6px 28px 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  /* Eliminadas transiciones que pueden causar flicker */
  transition: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  /* GPU layer */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.pagination-limit-select:hover {
  border-color: var(--color-comprado);
}

.pagination-limit-select:focus {
  outline: none;
  border-color: var(--color-comprado);
  box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.2);
}

.pagination-limit-select-wrapper::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--text-secondary);
  pointer-events: none;
  z-index: 2;
}

.pagination-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
  background-color: var(--color-comprado);
  border-color: var(--color-comprado);
  color: white;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-pages {
  display: flex;
  align-items: center;
  gap: 5px;
}

.pagination-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.pagination-page-btn:hover {
  background-color: var(--border-color);
}

.pagination-page-btn.active {
  background-color: var(--color-comprado);
  border-color: var(--color-comprado);
  color: white;
}

.pagination-ellipsis {
  color: var(--text-secondary);
  padding: 0 5px;
  font-size: 14px;
}

/* Responsive pagination */
@media (max-width: 768px) {
  .pagination-container {
    padding: 15px;
  }

  .pagination-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .pagination-controls {
    flex-direction: column;
    width: 100%;
  }

  .pagination-btn {
    width: 100%;
    justify-content: center;
  }

  .pagination-pages {
    order: -1;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .pagination-page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 12px;
  }

  .pagination-btn {
    padding: 8px 12px;
    font-size: 12px;
  }
}

/* ============================================
   VENTAS REPORT TABLE STYLES
   ============================================ */

.ventas-table-container {
  background-color: var(--bg-card);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  overflow: hidden;
  margin-bottom: 20px;
}

.ventas-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.ventas-table thead {
  background-color: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 10;
}

.ventas-table th {
  padding: 14px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}

.ventas-table th:not(:last-child) {
  border-right: 1px solid var(--border-color);
}

.ventas-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  vertical-align: middle;
}

.ventas-table td:not(:last-child) {
  border-right: 1px solid #f0f0f0;
}

.ventas-table tbody tr {
  transition: var(--transition);
}

.ventas-table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Row styling based on estado */
.ventas-table tbody tr.estado-reservado {
  border-left: 4px solid var(--color-reservado);
}

.ventas-table tbody tr.estado-comprado {
  border-left: 4px solid var(--color-comprado);
}

.ventas-table tbody tr.estado-checkin {
  border-left: 4px solid var(--color-checkin);
}

.ventas-table tbody tr.estado-caducado {
  border-left: 4px solid var(--color-caducado);
}

.ventas-table tbody tr.estado-anulado {
  border-left: 4px solid var(--color-anulada);
}

/* Cortesia row styling */
.ventas-table tbody tr.fila-cortesia {
  background-color: rgba(156, 39, 176, 0.05);
}

.ventas-table tbody tr.fila-cortesia:hover {
  background-color: rgba(156, 39, 176, 0.1);
}

/* Number columns */
.ventas-table td.numero {
  text-align: right;
  font-family: 'Consolas', 'Monaco', monospace;
  font-weight: 500;
}

.ventas-table td.descuento {
  color: #dc3545;
  font-weight: 600;
}

.ventas-table td.fee {
  color: #28a745;
  font-weight: 600;
}

.ventas-table td.precio-final {
  color: var(--color-ingresos);
  font-weight: 700;
  font-size: 14px;
}

.ventas-table td.cortesia-col {
  text-align: center;
}

/* Descuento con nombre de promo */
.descuento-con-promo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.descuento-con-promo .promo-nombre {
  font-size: 10px;
  color: #009688;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.descuento-con-promo .monto {
  color: #dc3545;
  font-weight: 600;
}

/* Fee con nombre */
.fee-con-nombre {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.fee-con-nombre .fee-nombre {
  font-size: 10px;
  color: #ff9800;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fee-con-nombre .monto {
  color: #28a745;
  font-weight: 600;
}

/* Badges in table */
.cortesia-badge-table {
  display: inline-block;
  background-color: var(--color-cortesia);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cortesia-text {
  color: var(--color-cortesia);
  font-weight: 600;
  font-style: italic;
}

/* Responsive table */
@media (max-width: 1200px) {
  .ventas-table {
    font-size: 12px;
  }
  
  .ventas-table th,
  .ventas-table td {
    padding: 10px 8px;
  }
}

@media (max-width: 992px) {
  .ventas-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .ventas-table {
    min-width: 1100px;
  }
}

/* Ventas Stats Section */
.tickets-stats.ventas-stats .stat-card.estado-comprado {
  border-top: 3px solid var(--color-checkin);
}

.tickets-stats.ventas-stats .stat-card.estado-comprado .stat-value {
  color: var(--color-checkin);
}

.tickets-stats.ventas-stats .stat-card.ingresos-brutos {
  border-top: 3px solid #17a2b8;
}

.tickets-stats.ventas-stats .stat-card.ingresos-brutos .stat-value {
  color: #17a2b8;
}

.tickets-stats.ventas-stats .stat-card.descuentos {
  border-top: 3px solid #dc3545;
}

.tickets-stats.ventas-stats .stat-card.descuentos .stat-value {
  color: #dc3545;
}

.tickets-stats.ventas-stats .stat-card.cortesia {
  border-top: 3px solid var(--color-cortesia);
}

.tickets-stats.ventas-stats .stat-card.cortesia .stat-value {
  color: var(--color-cortesia);
}

/* ============================================
   EXPORT EXCEL BUTTON STYLES
   ============================================ */

.ventas-header-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 15px;
  padding: 0 5px;
}

.export-excel-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #28a745 0%, #218838 100%);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.export-excel-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.export-excel-btn:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.export-excel-btn:disabled {
  background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
  cursor: not-allowed;
  opacity: 0.7;
}

.export-excel-btn svg {
  font-size: 18px;
}

/* Responsive export button */
@media (max-width: 768px) {
  .ventas-header-actions {
    justify-content: stretch;
  }

  .export-excel-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   USUARIO BADGE STYLES
   ============================================ */

.usuario-badge {
  display: inline-block;
  background-color: #6c757d;
  color: white;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: help;
}

.usuario-badge:hover {
  background-color: #5a6268;
}
.config-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
  overflow-x: auto;
}

.config-tab-button {
  padding: 10px 20px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: #666;
  border-radius: 4px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.config-tab-button:hover {
  background-color: #f0f0f0;
  color: #333;
}

.config-tab-button.active {
  background-color: #0066cc;
  color: white;
}

.config-tab-content {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
/* ============================================
   SYNC COMPONENT STYLES
   ============================================ */

.sync-container {
  padding: 20px;
  background-color: var(--bg-primary, #f8f9fa);
  min-height: 100%;
}

.sync-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color, #dee2e6);
  flex-wrap: wrap;
  gap: 15px;
}

.sync-header h2 {
  margin: 0;
  color: var(--text-primary, #212529);
  font-size: 1.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sync-icon {
  color: var(--color-comprado, #17a2b8);
}

/* Filters Section */
.sync-filters {
  background-color: var(--bg-card, #ffffff);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.1));
  margin-bottom: 20px;
  border: 1px solid var(--border-color, #dee2e6);
}

/* Event Selector - Matches @tickets components style */
.sync-filters .evento-selector {
  width: 100%;
  max-width: 500px;
}

.sync-filters .evento-selector label {
  display: block;
  font-weight: 600;
  color: var(--text-primary, #212529);
  font-size: 14px;
  margin-bottom: 8px;
}

/* Info Bar */
.sync-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background-color: var(--bg-card, #ffffff);
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.1));
  margin-bottom: 20px;
  border: 1px solid var(--border-color, #dee2e6);
  border-left: 4px solid var(--color-comprado, #17a2b8);
}

.sync-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sync-info-item .info-label {
  font-weight: 600;
  color: var(--text-secondary, #6c757d);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sync-info-item .info-value {
  color: var(--text-primary, #212529);
  font-weight: 500;
  font-size: 14px;
}

.sync-info-item .info-value.success {
  color: #28a745;
  font-weight: 700;
}

.sync-info-item .info-value.error {
  color: #dc3545;
  font-weight: 700;
}

/* Table Container */
.sync-table-container {
  background-color: var(--bg-card, #ffffff);
  border-radius: 10px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.1));
  border: 1px solid var(--border-color, #dee2e6);
  overflow: hidden;
  margin-bottom: 20px;
}

.sync-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sync-table thead {
  background-color: #f8f9fa;
  position: sticky;
  top: 0;
  z-index: 10;
}

.sync-table th {
  padding: 14px 10px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary, #212529);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--border-color, #dee2e6);
  white-space: nowrap;
}

.sync-table th:not(:last-child) {
  border-right: 1px solid var(--border-color, #dee2e6);
}

.sync-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-color, #dee2e6);
  color: var(--text-primary, #212529);
  vertical-align: middle;
}

.sync-table td:not(:last-child) {
  border-right: 1px solid #f0f0f0;
}

.sync-table tbody tr {
  transition: all 0.2s ease-in-out;
}

.sync-table tbody tr:hover {
  background-color: #f8f9fa;
}

/* Row styling based on match */
.sync-table tbody tr.fila-coincide {
  border-left: 4px solid #28a745;
}

.sync-table tbody tr.fila-difiere {
  border-left: 4px solid #dc3545;
  background-color: rgba(220, 53, 69, 0.05);
}

.sync-table tbody tr.fila-difiere:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

/* Column styles */
.sync-table td.elemento-col {
  font-weight: 500;
  min-width: 200px;
}

.sync-table td.valor-col {
  text-align: center;
  font-family: 'Consolas', 'Monaco', monospace;
  font-weight: 500;
  min-width: 120px;
}

.sync-table td.estado-col {
  text-align: center;
  min-width: 100px;
}

/* Estado badges */
.estado-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.estado-badge.coincide {
  background-color: #d4edda;
  color: #155724;
}

.estado-badge.difiere {
  background-color: #f8d7da;
  color: #721c24;
}

/* Loading State */
.sync-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: var(--bg-card, #ffffff);
  border-radius: 10px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.1));
  border: 1px solid var(--border-color, #dee2e6);
  gap: 20px;
}

.sync-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--color-comprado, #17a2b8);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.sync-loading p {
  color: var(--text-secondary, #6c757d);
  font-size: 16px;
  margin: 0;
}

/* Error State */
.sync-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background-color: #f8d7da;
  border-radius: 10px;
  border: 1px solid #f5c6cb;
  gap: 15px;
  color: #721c24;
}

.sync-error svg {
  font-size: 48px;
}

.sync-error p {
  margin: 0;
  font-size: 16px;
  text-align: center;
}

/* Empty State */
.sync-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background-color: var(--bg-card, #ffffff);
  border-radius: 10px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.1));
  border: 1px solid var(--border-color, #dee2e6);
  color: var(--text-secondary, #6c757d);
  gap: 15px;
}

.sync-empty .empty-icon {
  font-size: 48px;
  color: var(--border-color, #dee2e6);
}

.sync-empty p {
  margin: 0;
  font-size: 16px;
  text-align: center;
}

/* Resultado Final */
.sync-resultado {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  border-radius: 10px;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.1));
  border: 2px solid;
  text-align: center;
  gap: 10px;
}

.sync-resultado.success {
  background-color: #d4edda;
  border-color: #28a745;
  color: #155724;
}

.sync-resultado.error {
  background-color: #f8d7da;
  border-color: #dc3545;
  color: #721c24;
}

.resultado-icono {
  font-size: 64px;
  margin-bottom: 10px;
}

.sync-resultado h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sync-resultado p {
  margin: 0;
  font-size: 14px;
  max-width: 600px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sync-container {
    padding: 15px;
  }

  .sync-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sync-header h2 {
    font-size: 1.4rem;
  }

  .sync-info-bar {
    flex-direction: column;
    gap: 10px;
  }

  .sync-info-item {
    width: 100%;
    justify-content: space-between;
  }

  .sync-table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .sync-table {
    min-width: 600px;
  }

  .sync-table th,
  .sync-table td {
    padding: 10px 8px;
    font-size: 12px;
  }

  .sync-filters .evento-selector {
    max-width: 100%;
  }

  .sync-resultado {
    padding: 30px 20px;
  }

  .sync-resultado h3 {
    font-size: 1.2rem;
  }

  .resultado-icono {
    font-size: 48px;
  }
}

@media (max-width: 480px) {
  .sync-container {
    padding: 10px;
  }

  .sync-filters {
    padding: 15px;
  }

  .sync-table th,
  .sync-table td {
    padding: 8px 6px;
    font-size: 11px;
  }

  .estado-badge {
    padding: 4px 8px;
    font-size: 10px;
  }
}
