* { box-sizing: border-box; font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif; }
body { margin: 0; background: #0f172a; color: #e2e8f0; }
.container { max-width: 960px; margin: 0 auto; padding: 24px; }
h1, h2 { font-weight: 600; }
.card { background: #1e293b; border-radius: 10px; padding: 20px; margin-bottom: 16px; }
input, select { width: 100%; padding: 10px; margin: 6px 0; border-radius: 6px; border: 1px solid #334155; background: #0f172a; color: #e2e8f0; }
button { background: #22c55e; color: #06210f; border: none; padding: 10px 16px; border-radius: 6px; font-weight: 600; cursor: pointer; }
button:hover { background: #16a34a; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #334155; font-size: 14px; }
/* Wraps every table so wide ones scroll horizontally on small screens
   instead of clipping columns off the edge of the viewport. On desktop
   widths tables keep wrapping normally — the forced min-width/nowrap only
   kicks in below 700px, where wrapping every column would otherwise squish
   rows into unreadable slivers. */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 10px; }
.table-scroll table { margin-top: 0; }
@media (max-width: 700px) {
  .table-scroll table { min-width: 640px; }
  .table-scroll th, .table-scroll td { white-space: nowrap; }
}
.badge { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 12px; white-space: nowrap; }
.badge.active { background: #14532d; color: #86efac; }
.badge.trial { background: #713f12; color: #fde68a; }
.badge.suspended { background: #7f1d1d; color: #fca5a5; }
/* Order status badges — lets staff scan the Order Inbox by color instead of
   reading every row during a rush. */
.badge.status-new { background: #713f12; color: #fde68a; }
.badge.status-preparing { background: #1e3a8a; color: #93c5fd; }
.badge.status-ready { background: #14532d; color: #86efac; }
.badge.status-out_for_delivery { background: #134e4a; color: #5eead4; }
.badge.status-completed { background: #334155; color: #cbd5e1; }
.badge.status-cancelled { background: #7f1d1d; color: #fca5a5; }
/* Payment status badges (order.payment_status) */
.badge.pay-unpaid { background: #334155; color: #cbd5e1; }
.badge.pay-pending_verification { background: #713f12; color: #fde68a; }
.badge.pay-paid { background: #14532d; color: #86efac; }
/* Mobile-money submission status badges (payments.status) */
.badge.pmt-submitted { background: #713f12; color: #fde68a; }
.badge.pmt-verified { background: #14532d; color: #86efac; }
.badge.pmt-rejected { background: #7f1d1d; color: #fca5a5; }
.error { color: #fca5a5; font-size: 14px; }
.stats-row { display: flex; gap: 16px; }
.stats-row .card { flex: 1; text-align: center; }
.hidden { display: none; }
nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
