.input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus {
  outline: none;
  border-color: #1b7a54;
  box-shadow: 0 0 0 3px rgba(27,122,84,0.15);
}
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.9rem;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-weight: 600;
  font-size: .875rem;
  padding: .55rem 1.1rem;
  border-radius: .6rem;
  transition: background .15s, transform .05s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: #1b7a54; color: #fff; }
.btn-primary:hover { background: #186246; }
.btn-secondary { background: #f1f5f9; color: #0f172a; }
.btn-secondary:hover { background: #e2e8f0; }
.btn-danger { background: #fee2e2; color: #b91c1c; }
.btn-danger:hover { background: #fecaca; }
.btn-outline { border: 1px solid #cbd5e1; color: #0f172a; }
.btn-outline:hover { background: #f8fafc; }

table.styled-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
table.styled-table th { text-align: left; font-weight: 600; color: #475569; padding: 0.6rem 0.8rem;
  background: #f8fafc; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
table.styled-table td { padding: 0.6rem 0.8rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
table.styled-table tr:hover td { background: #fafcfb; }

.badge { display:inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.badge-green { background:#d7f0e2; color:#186246; }
.badge-red { background:#fee2e2; color:#b91c1c; }
.badge-amber { background:#fef3c7; color:#92400e; }
.badge-slate { background:#f1f5f9; color:#475569; }

/* ---------------- Receipt / Thermal print styles ---------------- */
.receipt-58mm { width: 58mm; }
.receipt-80mm { width: 80mm; }
.receipt-paper {
  background: #fff;
  font-family: 'Courier New', monospace;
  padding: 4mm;
  margin: 0 auto;
  font-size: 11px;
  line-height: 1.45;
}
.receipt-paper hr { border: none; border-top: 1px dashed #333; margin: 4px 0; }
.receipt-paper .center { text-align: center; }
.receipt-paper .bold { font-weight: 700; }
.receipt-paper .row { display: flex; justify-content: space-between; gap: 6px; }

@media print {
  .no-print { display: none !important; }
  body { background: #fff !important; }
  main { padding: 0 !important; max-width: none !important; }
  .receipt-paper { padding: 0; }
}
