/* Controlab - Estilos personalizados */

:root {
  --primary: #0f766e;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* Navigation items */
.nav-item {
  color: #4b5563;
}

.nav-item:hover {
  background-color: #f0fdfa;
  color: #0f766e;
}

.nav-item.active {
  background-color: #ccfbf1;
  color: #0f766e;
  font-weight: 600;
}

/* Pages */
.page {
  display: none;
  animation: fadeIn 0.25s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Modal */
.modal {
  animation: fadeIn 0.2s ease;
}

.modal-content {
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (min-width: 640px) {
  @keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
}

/* Toast */
#toast.show {
  display: block;
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Product / list cards */
.list-item {
  transition: background-color 0.15s;
}

.list-item:hover {
  background-color: #f9fafb;
}

/* Safe area for mobile */
@supports (padding: max(0px)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* Print styles for invoices */
@media print {
  body * {
    visibility: hidden;
  }
  .invoice-print, .invoice-print * {
    visibility: visible;
  }
  .invoice-print {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
}
