:root {
  --brand: #0d9488;
}

body { -webkit-tap-highlight-color: transparent; }

.label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #475569;
  margin-bottom: 0.375rem;
}

.input {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.9375rem;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus {
  outline: none;
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20,184,166,0.15);
}

.btn-primary {
  background: #0d9488;
  color: #fff;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  transition: background .15s, transform .1s;
}
.btn-primary:hover { background: #0f766e; }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  transition: background .15s;
}
.btn-secondary:hover { background: #e2e8f0; }

.btn-danger {
  background: #e11d48;
  color: #fff;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
}
.btn-danger:hover { background: #be123c; }

.card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid #f1f5f9;
}
.card-title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.card-stat {
  background: #fff;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.04);
  border: 1px solid #f1f5f9;
}
.stat-label { font-size: 0.75rem; color: #64748b; margin-bottom: 0.25rem; }
.stat-value { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.02em; }

.nav-item {
  padding: 0.75rem 1rem;
  white-space: nowrap;
  color: #64748b;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-item:hover { color: #0f766e; }
.nav-item.active {
  color: #0f766e;
  border-bottom-color: #0f766e;
  font-weight: 600;
}

.page { animation: fade .2s ease; }
@keyframes fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* Keypad */
.key {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 0.875rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  transition: background .1s, transform .08s;
}
.key:active { transform: scale(0.96); background: #e2e8f0; }
.key-fn { background: #f1f5f9; color: #475569; font-size: 1rem; }
.key-ok { background: #0d9488; color: #fff; border-color: #0d9488; }
.key-ok:active { background: #0f766e; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(15,23,42,0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}
@media (min-width: 640px) {
  .modal { align-items: center; padding: 1rem; }
}
.modal-box {
  background: #fff;
  width: 100%;
  max-width: 28rem;
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 1.5rem;
  max-height: 90vh;
  overflow-y: auto;
}
@media (min-width: 640px) {
  .modal-box { border-radius: 1.25rem; }
}

/* Presence status dots */
.dot-online { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: #22c55e; }
.dot-offline { width: 0.5rem; height: 0.5rem; border-radius: 9999px; background: #94a3b8; }

/* Product chip */
.prod-chip {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.875rem;
  padding: 0.75rem;
  text-align: left;
  transition: border-color .15s, background .15s;
}
.prod-chip:hover, .prod-chip.active {
  border-color: #14b8a6;
  background: #f0fdfa;
}

/* Scrollbar */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
