/* The merchant dashboard's own layout, on top of /admin/admin.css (ZAY-527).
   Functional on purpose; the designed look is ZAY-532. */

.dashboard-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #ddd;
}
.dashboard-header .brand { font-weight: 600; }
.dashboard-header .spacer { flex: 1; }
.dashboard-header form { display: inline; }
.dashboard-header button { font: inherit; }

.auth-card {
  max-width: 26rem;
  margin: 3rem auto;
}

.stacked-form label {
  display: block;
  margin: 0.75rem 0 0.25rem;
  font-weight: 600;
}
.stacked-form input[type="email"],
.stacked-form input[type="password"],
.stacked-form input[type="text"],
.stacked-form select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem;
  font: inherit;
}
.stacked-form .hint { margin: 0.25rem 0 0; }
.stacked-form button[type="submit"],
.stacked-form input[type="submit"] {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  font: inherit;
}

.form-errors {
  border: 1px solid #c62828;
  padding: 0.5rem 1rem;
  margin: 1rem 0;
}

.qr-code svg { width: 12rem; height: 12rem; }
.totp-secret, .recovery-codes { font-family: ui-monospace, monospace; font-size: 1.1rem; }
.recovery-codes { columns: 2; padding-left: 1.25rem; }

@media (max-width: 40rem) {
  .auth-card { margin: 1.5rem 1rem; }
}
.invite-form { max-width: 26rem; }

.filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.5rem 1rem;
  margin: 1rem 0 0.25rem;
}
.filter-form label { display: flex; flex-direction: column; gap: 0.25rem; font-weight: 600; }
.filter-form input, .filter-form select { font: inherit; padding: 0.25rem; }
.filter-form input[type="search"] { min-width: 18rem; }
.totals { max-width: 40rem; }
