/* BahiQo web app */
:root {
  --bahiqo-primary: #0B6E4F;
  --bahiqo-primary-dark: #084C37;
  --bahiqo-accent: #E8A317;
  --bahiqo-credit: #C0392B;
  --bahiqo-surface: #F7F9F8;
  --bahiqo-text: #1A1F1C;
  --bahiqo-muted: #5C6B63;
  --bahiqo-border: #D8E2DC;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --display: "Source Serif 4", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--bahiqo-text);
  background: var(--bahiqo-surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--bahiqo-primary); text-decoration: none; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; margin: 0 0 0.6rem; }
button, input, select, textarea { font: inherit; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 1px solid transparent; border-radius: 12px; padding: 0.7rem 1.1rem;
  font-weight: 700; cursor: pointer; background: var(--bahiqo-primary); color: #fff;
}
.btn:hover { background: var(--bahiqo-primary-dark); color: #fff; }
.btn.ghost { background: #fff; color: var(--bahiqo-primary); border-color: var(--bahiqo-border); }
.btn.ghost:hover { border-color: var(--bahiqo-primary); }
.btn.danger { background: var(--bahiqo-credit); color: #fff; }
.btn.danger:hover { background: #9b2e24; color: #fff; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.card {
  background: #fff; border: 1px solid var(--bahiqo-border); border-radius: 14px; padding: 1.15rem;
}
.muted { color: var(--bahiqo-muted); }
.field { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.85rem; }
.field span { font-size: 0.86rem; font-weight: 700; }
.field input, .field select, .field textarea {
  border: 1px solid var(--bahiqo-border); border-radius: 12px; padding: 0.65rem 0.8rem; background: #fff;
}
.alert { background: #fde8e6; color: var(--bahiqo-credit); padding: 0.7rem 0.9rem; border-radius: 12px; font-weight: 600; }
.notice { background: #e7f6ee; color: #084C37; padding: 0.7rem 0.9rem; border-radius: 12px; font-weight: 600; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.login-box { width: min(100%, 420px); text-align: center; }
.login-box .brand-link { display: inline-block; margin: 0 auto 1rem; }
.login-box img.logo { height: 42px; width: auto; display: block; }
.qr-wrap {
  background: #fff; border: 1px solid var(--bahiqo-border); border-radius: 16px;
  padding: 1.2rem; margin: 1rem 0;
}
.qr-wrap canvas { width: min(100%, 240px); height: auto; margin: 0 auto; display: block; }
.shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side {
  background: #08281e; color: #c5d9d0; padding: 1.2rem 1rem; display: flex; flex-direction: column; gap: 1rem;
}
.side img { height: 36px; width: auto; }
.side nav a {
  display: block; color: #d7efe6; padding: 0.55rem 0.7rem; border-radius: 10px; font-weight: 600;
}
.side nav a.router-link-active, .side nav a:hover { background: #0B6E4F; color: #fff; }
.side .foot { margin-top: auto; font-size: 0.82rem; }
.biz {
  width: 100%; margin-top: 0.45rem; border-radius: 10px; border: 1px solid #1a4638;
  background: #0d3a2c; color: #fff; padding: 0.4rem 0.5rem;
}
.main { padding: 1.4rem 1.5rem 2.5rem; }
.top {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; flex-wrap: wrap;
}
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.stat b { display: block; font-size: 1.25rem; }
.list { display: flex; flex-direction: column; gap: 0.55rem; }
.row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: #fff; border: 1px solid var(--bahiqo-border); border-radius: 14px; padding: 0.9rem 1rem;
}
.row:hover { border-color: #b8d4c8; }
.search { display: flex; gap: 0.6rem; margin-bottom: 1rem; flex-wrap: wrap; }
.search input, .search select { flex: 1; border: 1px solid var(--bahiqo-border); border-radius: 12px; padding: 0.65rem 0.8rem; min-width: 140px; }
.credit { color: var(--bahiqo-credit); font-weight: 800; }
.pay { color: var(--bahiqo-primary); font-weight: 800; }
.txn-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.txn-form .span { grid-column: 1 / -1; }
.row-main { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.row.stack { flex-direction: column; align-items: stretch; }
.row-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.row-actions .btn { padding: 0.4rem 0.7rem; font-size: 0.82rem; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #e3eee8; flex-shrink: 0; }
.avatar.lg { width: 56px; height: 56px; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: flex-end; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.row-main a { margin-right: 0.75rem; }
@media print {
  .side, .no-print, .btn, nav { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  .print-sheet { border: none; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .side nav { display: flex; gap: 0.3rem; flex-wrap: wrap; }
  .side .foot { margin-top: 0; width: 100%; }
  .grid-4, .txn-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .grid-4, .txn-form { grid-template-columns: 1fr; }
  .main { padding: 1rem; }
}
