:root { --brand: #2c3e50; --brand-dark: #1f2d3a; }
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1f2933; background: #f5f6f8; line-height: 1.5; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site { background: var(--brand); color: #fff; }
header.site .container { display: flex; align-items: center; gap: 24px; height: 64px; }
header.site a { color: #fff; }
header.site .logo { font-weight: 700; font-size: 20px; }
header.site nav { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.badge { background: #fff; color: var(--brand); border-radius: 999px; padding: 1px 8px; font-size: 12px; font-weight: 700; }

/* Buttons */
.btn { display: inline-block; background: var(--brand); color: #fff; border: 0; padding: 9px 16px;
  border-radius: 6px; cursor: pointer; font-size: 14px; text-align: center; }
.btn:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn.secondary { background: #e4e7eb; color: #1f2933; }
.btn.danger { background: #c0392b; }
.btn.small { padding: 5px 10px; font-size: 13px; }

/* Layout helpers */
main { padding: 28px 0 60px; }
.card { background: #fff; border: 1px solid #e4e7eb; border-radius: 8px; padding: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.muted { color: #7b8794; font-size: 14px; }
.price { font-weight: 700; font-size: 18px; color: var(--brand); }
h1 { font-size: 26px; } h2 { font-size: 20px; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: #fff; }
th, td { padding: 10px 12px; border-bottom: 1px solid #eceff1; text-align: left; font-size: 14px; }
th { color: #52606d; font-weight: 600; }

/* Forms */
label { display: block; font-size: 13px; color: #52606d; margin: 10px 0 4px; }
input, select, textarea { width: 100%; padding: 9px; border: 1px solid #cbd2d9; border-radius: 6px; font-size: 14px; }
input[type=checkbox] { width: auto; }
.form-narrow { max-width: 440px; }
.inline { display: flex; gap: 8px; align-items: center; }
.qty { width: 70px; }

/* Flash */
.flash { padding: 11px 16px; border-radius: 6px; margin-bottom: 12px; font-size: 14px; }
.flash.success { background: #e3f9e5; color: #1a7f37; }
.flash.error { background: #fde8e8; color: #c0392b; }

/* Status pills */
.pill { font-size: 12px; padding: 2px 9px; border-radius: 999px; background: #e4e7eb; color: #3e4c59; }
.pill.pending { background: #fff3cd; color: #8a6d00; }
.pill.approved, .pill.paid, .pill.pushed, .pill.confirmed { background: #e3f9e5; color: #1a7f37; }
.pill.rejected, .pill.failed { background: #fde8e8; color: #c0392b; }

/* Admin */
.admin-shell { display: flex; min-height: 100vh; }
.admin-side { width: 220px; background: #1f2d3a; color: #cbd2d9; padding: 18px 0; }
.admin-side a { display: block; color: #cbd2d9; padding: 9px 22px; font-size: 14px; }
.admin-side a:hover, .admin-side a.active { background: #2c3e50; color: #fff; text-decoration: none; }
.admin-side .brandname { color: #fff; font-weight: 700; padding: 0 22px 14px; }
.admin-main { flex: 1; background: #f5f6f8; }
.admin-main .container { padding: 24px; max-width: none; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid #e4e7eb; border-radius: 8px; padding: 16px; }
.stat .n { font-size: 28px; font-weight: 700; color: var(--brand); }
.right { text-align: right; } .nowrap { white-space: nowrap; }
