/* width */
::-webkit-scrollbar {
  width: 5px;
}

/* Track */
::-webkit-scrollbar-track {
  background: #cfd8dc;
  border-radius: 5px;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #b0bec5;
  border-radius: 5px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #90a4ae;
}

.bg-cyan-50,
.hover\:bg-cyan-50:hover {
  background-color: #e0f7fa;
}
.bg-cyan-100,
.hover\:bg-cyan-100:hover {
  background-color: #b2ebf2;
}
.bg-cyan-200,
.hover\:bg-cyan-200:hover {
  background-color: #80deea;
}
.bg-cyan-300,
.hover\:bg-cyan-300:hover {
  background-color: #4dd0e1;
}
.bg-cyan-400,
.hover\:bg-cyan-400:hover {
  background-color: #26c6da;
}
.bg-cyan-500,
.hover\:bg-cyan-500:hover {
  background-color: #00bcd4;
}
.bg-cyan-600,
.hover\:bg-cyan-600:hover {
  background-color: #00acc1;
}
.bg-cyan-700,
.hover\:bg-cyan-700:hover {
  background-color: #0097a7;
}
.bg-cyan-800,
.hover\:bg-cyan-800:hover {
  background-color: #00838f;
}
.bg-cyan-900,
.hover\:bg-cyan-900:hover {
  background-color: #006064;
}

.text-cyan-50,
.hover\:text-cyan-50:hover {
  color: #e0f7fa;
}
.text-cyan-100,
.hover\:text-cyan-100:hover {
  color: #b2ebf2;
}
.text-cyan-200,
.hover\:text-cyan-200:hover {
  color: #80deea;
}
.text-cyan-300,
.hover\:text-cyan-300:hover {
  color: #4dd0e1;
}
.text-cyan-400,
.hover\:text-cyan-400:hover {
  color: #26c6da;
}
.text-cyan-500,
.hover\:text-cyan-500:hover {
  color: #00bcd4;
}
.text-cyan-600,
.hover\:text-cyan-600:hover {
  color: #00acc1;
}
.text-cyan-700,
.hover\:text-cyan-700:hover {
  color: #0097a7;
}
.text-cyan-800,
.hover\:text-cyan-800:hover {
  color: #00838f;
}
.text-cyan-900,
.hover\:text-cyan-900:hover {
  color: #006064;
}

.bg-blue-gray-50,
.hover\:bg-blue-gray-50:hover {
  background-color: #eceff1;
}
.bg-blue-gray-100,
.hover\:bg-blue-gray-100:hover {
  background-color: #cfd8dc;
}
.bg-blue-gray-200,
.hover\:bg-blue-gray-200:hover {
  background-color: #b0bec5;
}
.bg-blue-gray-300,
.hover\:bg-blue-gray-300:hover {
  background-color: #90a4ae;
}
.bg-blue-gray-400,
.hover\:bg-blue-gray-400:hover {
  background-color: #78909c;
}
.bg-blue-gray-500,
.hover\:bg-blue-gray-500:hover {
  background-color: #607d8b;
}
.bg-blue-gray-600,
.hover\:bg-blue-gray-600:hover {
  background-color: #546e7a;
}
.bg-blue-gray-700,
.hover\:bg-blue-gray-700:hover {
  background-color: #455a64;
}
.bg-blue-gray-800,
.hover\:bg-blue-gray-800:hover {
  background-color: #37474f;
}
.bg-blue-gray-900,
.hover\:bg-blue-gray-900:hover {
  background-color: #263238;
}

.text-blue-gray-50,
.hover\:text-blue-gray-50:hover {
  color: #eceff1;
}
.text-blue-gray-100,
.hover\:text-blue-gray-100:hover {
  color: #cfd8dc;
}
.text-blue-gray-200,
.hover\:text-blue-gray-200:hover {
  color: #b0bec5;
}
.text-blue-gray-300,
.hover\:text-blue-gray-300:hover {
  color: #90a4ae;
}
.text-blue-gray-400,
.hover\:text-blue-gray-400:hover {
  color: #78909c;
}
.text-blue-gray-500,
.hover\:text-blue-gray-500:hover {
  color: #607d8b;
}
.text-blue-gray-600,
.hover\:text-blue-gray-600:hover {
  color: #546e7a;
}
.text-blue-gray-700,
.hover\:text-blue-gray-700:hover {
  color: #455a64;
}
.text-blue-gray-800,
.hover\:text-blue-gray-800:hover {
  color: #37474f;
}
.text-blue-gray-900,
.hover\:text-blue-gray-900:hover {
  color: #263238;
}

.nowrap {
  white-space: nowrap;
}

.glass {
  background-color: rgba(100, 120, 130, 0.6);
  backdrop-filter: blur(10px);
}

table td {
  vertical-align: top;
}

/* Estilos para impresión de tickets */
@media print {
  @page {
    size: 80mm auto;
    margin: 0;
  }

  body {
    font-size: 12px;
    line-height: 1.2;
  }

  .hide-print {
    display: none !important;
  }

  .print-area {
    display: block;
  }
}

/* DataTables custom styles */
.dataTables_wrapper {
  font-family: inherit;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  padding: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 0.375rem;
  margin: 0 2px;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #00bcd4 !important;
  border-color: #00bcd4 !important;
  color: white !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #e0f7fa !important;
  border-color: #00bcd4 !important;
  color: #00838f !important;
}

/* Responsive improvements */
@media (max-width: 1024px) {
  .sidebar-text {
    display: none !important;
  }

  #sidebar {
    width: 5rem !important;
  }
}

/* DataTables Enhanced Styling */
.dataTables_wrapper {
  font-family: inherit;
  padding: 0;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  margin: 0.5rem 0;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  background-color: white;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
  outline: none;
  border-color: #00bcd4;
  box-shadow: 0 0 0 3px rgba(0, 188, 212, 0.1);
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dataTables_wrapper .dataTables_paginate {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border: 1px solid #d1d5db !important;
  border-radius: 0.5rem !important;
  margin: 0 2px !important;
  padding: 0.5rem 0.75rem !important;
  background: white !important;
  color: #374151 !important;
  text-decoration: none !important;
  font-size: 0.875rem !important;
  transition: all 0.15s ease-in-out !important;
  min-width: 2.5rem;
  text-align: center;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f3f4f6 !important;
  border-color: #9ca3af !important;
  color: #111827 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #00bcd4 !important;
  border-color: #00bcd4 !important;
  color: white !important;
  font-weight: 600 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
  color: #9ca3af !important;
  cursor: not-allowed !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
  background: #f9fafb !important;
  border-color: #e5e7eb !important;
  color: #9ca3af !important;
}

.dataTables_wrapper .dataTables_info {
  color: #6b7280;
  font-size: 0.875rem;
  margin-top: 1rem;
}

/* Table styling */
.dataTables_wrapper table.dataTable {
  border-collapse: separate;
  border-spacing: 0;
  width: 100% !important;
  margin: 0 !important;
}

.dataTables_wrapper table.dataTable thead th {
  background-color: #f9fafb;
  border-bottom: 2px solid #e5e7eb;
  padding: 0.75rem;
  font-weight: 600;
  color: #374151;
  text-align: left;
  font-size: 0.875rem;
  white-space: nowrap;
}

.dataTables_wrapper table.dataTable tbody td {
  padding: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.875rem;
  color: #374151;
  vertical-align: middle;
}

.dataTables_wrapper table.dataTable tbody tr:hover {
  background-color: #f9fafb;
}

.dataTables_wrapper table.dataTable tbody tr.selected {
  background-color: #e0f7fa;
}

/* Responsive table */
@media (max-width: 768px) {
  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter {
    text-align: center;
    margin-bottom: 1rem;
  }

  .dataTables_wrapper .dataTables_length label,
  .dataTables_wrapper .dataTables_filter label {
    flex-direction: column;
    align-items: center;
  }

  .dataTables_wrapper .dataTables_paginate {
    flex-wrap: wrap;
    justify-content: center;
  }

  .dataTables_wrapper table.dataTable thead th,
  .dataTables_wrapper table.dataTable tbody td {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
}

/* Loading state */
.dataTables_wrapper .dataTables_processing {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  margin-left: -100px;
  margin-top: -26px;
  text-align: center;
  padding: 1rem;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  color: #374151;
  font-weight: 500;
}

/* Custom button styles */
.btn-action {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  margin: 0 0.125rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease-in-out;
}

.btn-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background-color: #3b82f6;
  color: white;
}

.btn-primary:hover {
  background-color: #2563eb;
}

.btn-success {
  background-color: #10b981;
  color: white;
}

.btn-success:hover {
  background-color: #059669;
}

.btn-warning {
  background-color: #f59e0b;
  color: white;
}

.btn-warning:hover {
  background-color: #d97706;
}

.btn-danger {
  background-color: #ef4444;
  color: white;
}

.btn-danger:hover {
  background-color: #dc2626;
}

.btn-info {
  background-color: #06b6d4;
  color: white;
}

.btn-info:hover {
  background-color: #0891b2;
}

/* Status badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  white-space: nowrap;
}

.status-active {
  background-color: #dcfce7;
  color: #166534;
}

.status-inactive {
  background-color: #fee2e2;
  color: #991b1b;
}

.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-completed {
  background-color: #dcfce7;
  color: #166534;
}

.status-cancelled {
  background-color: #fee2e2;
  color: #991b1b;
}

/* Mobile responsive cards for tables */
@media (max-width: 640px) {
  .mobile-card {
    display: block;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }

  .mobile-card-header {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f3f4f6;
  }

  .mobile-card-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .mobile-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
  }

  .mobile-card-label {
    font-weight: 500;
    color: #6b7280;
    font-size: 0.875rem;
  }

  .mobile-card-value {
    color: #374151;
    font-size: 0.875rem;
  }
}
