/* Mista invoice — table layout with inline styles; CSS enhances web view */

.mista-invoice {
  --inv-brand: #01694a;
  --inv-brand-dark: #004d40;
  --inv-brand-soft: #ecfdf5;
  --inv-border: #e5e7eb;
  --inv-muted: #6b7280;
  --inv-text: #111827;
  width: 100%;
  padding: 8px 0;
}

.mista-invoice__sheet {
  box-shadow: 0 4px 24px rgba(5, 8, 22, 0.06);
}

.mista-invoice--email {
  padding: 0;
}

.mista-invoice--email .mista-invoice__sheet {
  box-shadow: none;
}

/* Brand mark (sidebar / navbar) */
.mista-brand-mark {
  display: inline-block;
  line-height: 0;
  vertical-align: middle;
}

.mista-brand-mark__logo {
  display: block !important;
  object-fit: contain;
  border: 0;
}

.mista-brand-mark--invoice .mista-brand-mark__logo {
  height: 52px !important;
  width: 180px !important;
  max-width: 180px !important;
}

.mista-brand-mark--sidebar .mista-brand-mark__logo {
  height: 38px !important;
  width: 132px !important;
  max-width: 132px !important;
}

.mista-brand-mark--footer .mista-brand-mark__logo {
  height: 34px !important;
  width: 120px !important;
  max-width: 120px !important;
  margin: 0 auto !important;
}

.mista-brand-mark--default .mista-brand-mark__logo {
  height: 40px !important;
  width: 140px !important;
  max-width: 140px !important;
}

/* Web dashboard preview wrapper */
.invoice-preview-wrapper .mista-invoice {
  max-width: 760px;
  margin: 0 auto;
}

.mista-invoice__badge--paid { background: #d1fae5; color: #065f46; }
.mista-invoice__badge--unpaid,
.mista-invoice__badge--pending { background: #fef3c7; color: #92400e; }
.mista-invoice__badge--cancelled { background: #f3f4f6; color: #4b5563; }

.mista-invoice__thanks-note a {
  color: #01694a;
  font-weight: 600;
  text-decoration: none;
}
