/* RetailPOS custom styles */
.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #94a3b8;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.nav-btn:hover { background: #1e293b; color: #e2e8f0; }
.nav-btn.active { background: #1e293b; color: #34d399; border-left-color: #34d399; }

.product-card {
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  user-select: none;
}
.product-card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.product-card:active { transform: scale(0.97); }
.product-card.out-of-stock { opacity: 0.45; cursor: not-allowed; }

.pin-key {
  height: 3.25rem;
  border-radius: 0.75rem;
  background: #f1f5f9;
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: 700;
  transition: all 0.1s;
  user-select: none;
}
.pin-key:hover { background: #e2e8f0; }
.pin-key:active { transform: scale(0.94); }

.qty-btn {
  width: 1.75rem; height: 1.75rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0.375rem;
  background: #e2e8f0; color: #334155;
  font-size: 0.75rem;
  transition: background 0.15s;
}
.qty-btn:hover { background: #cbd5e1; }

.pay-method-btn {
  flex: 1;
  padding: 0.625rem;
  border-radius: 0.5rem;
  border: 2px solid #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  transition: all 0.15s;
}
.pay-method-btn.selected { border-color: #10b981; background: #ecfdf5; color: #059669; }

.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 23, 42, 0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 50;
  padding: 1rem;
}
.modal-box {
  background: white;
  border-radius: 0.75rem;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
  animation: modalIn 0.15s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.toast {
  padding: 0.75rem 1.25rem;
  border-radius: 0.5rem;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex; align-items: center; gap: 0.5rem;
  animation: toastIn 0.2s ease-out;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
.toast.success { background: #059669; }
.toast.error { background: #dc2626; }
.toast.info { background: #2563eb; }

.form-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus { border-color: #10b981; box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
.form-label { display: block; font-size: 0.75rem; font-weight: 600; color: #475569; margin-bottom: 0.25rem; text-transform: uppercase; letter-spacing: 0.03em; }

.data-table th {
  text-align: left;
  padding: 0.625rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  position: sticky; top: 0;
}
.data-table td {
  padding: 0.625rem 1rem;
  font-size: 0.85rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
.data-table tbody tr:hover { background: #f8fafc; }

.badge {
  display: inline-flex; align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-green { background: #d1fae5; color: #065f46; }
.badge-red { background: #fee2e2; color: #991b1b; }
.badge-amber { background: #fef3c7; color: #92400e; }
.badge-gray { background: #f1f5f9; color: #475569; }
.badge-blue { background: #dbeafe; color: #1e40af; }

/* Receipt print styles */
@media print {
  body * { visibility: hidden; }
  #receipt-print, #receipt-print * { visibility: visible; }
  #receipt-print {
    position: absolute; left: 0; top: 0;
    width: 80mm; font-family: 'Courier New', monospace;
  }
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }
