/* ==========================================================================
   TRENDSPICK COMMUNICATION & EMAIL TEMPLATES
   Rule 93.22: Invoices, Order Confirmation Emails, Password Reset
   ========================================================================== */

.comm-preview-container {
  padding: var(--space-8) 0;
  max-width: 900px;
  margin: 0 auto;
}

/* Printable Tax Invoice */
.invoice-sheet {
  background-color: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-8);
  position: relative;
}

.invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--brand-dark);
  margin-bottom: 2rem;
}

.invoice-logo-img {
  height: 48px;
  object-fit: contain;
  margin-bottom: 0.5rem;
}

.invoice-company-details {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
  line-height: 1.5;
}

.invoice-title-block {
  text-align: right;
}

.invoice-title-block h1 {
  font-size: 2rem;
  color: var(--brand-primary);
  font-weight: 900;
  letter-spacing: 0.05em;
}

.invoice-meta-info {
  font-size: var(--font-size-xs);
  color: var(--brand-dark-secondary);
  margin-top: 0.5rem;
}

.invoice-parties-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  font-size: var(--font-size-sm);
}

.party-box h4 {
  font-size: var(--font-size-sm);
  color: var(--brand-primary);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

.invoice-table th {
  background-color: var(--brand-dark);
  color: var(--brand-white);
  padding: 10px 14px;
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  text-align: left;
}

.invoice-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--brand-border);
  font-size: var(--font-size-sm);
  color: var(--brand-dark);
}

.invoice-summary-box {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.invoice-summary-table {
  width: 320px;
}

.invoice-summary-table tr td {
  padding: 6px 12px;
  font-size: var(--font-size-sm);
}

.invoice-summary-table tr.grand-total {
  background-color: var(--brand-primary-light);
  font-weight: var(--font-weight-extrabold);
  color: var(--brand-primary);
  font-size: var(--font-size-base);
}

.invoice-footer {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--brand-border);
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

/* Email Template Box */
.email-mockup-frame {
  background-color: var(--brand-white);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  max-width: 600px;
  margin: 0 auto;
}

.email-header-bar {
  background-color: var(--brand-primary);
  padding: 1.5rem;
  text-align: center;
}

.email-header-bar img {
  height: 42px;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

.email-body {
  padding: 2.5rem 2rem;
}

.email-body h2 {
  font-size: 1.4rem;
  color: var(--brand-dark);
  margin-bottom: 1rem;
}

.email-body p {
  color: var(--brand-dark-secondary);
  font-size: var(--font-size-sm);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.email-cta-box {
  text-align: center;
  margin: 2rem 0;
}

.email-footer-bar {
  background-color: var(--brand-dark);
  color: #9CA3AF;
  padding: 1.5rem;
  text-align: center;
  font-size: 11px;
}

.email-footer-bar a {
  color: var(--brand-primary);
}
