/* ============================================================
   OnlineInvoicesMaker.com — Invoice Template Styles
   10 Premium Templates: Classic, Modern, Minimal, Bold, Elegant,
   Corporate, Creative, Executive, Neon, Retro
   ============================================================ */

/* ============================================================
   BASE INVOICE LAYOUT (shared across all templates)
   ============================================================ */
.invoice-doc {
  font-family: var(--font-sans);
  color: #1a1a2e;
  background: #ffffff;
  width: 100%;
  min-height: 1000px;
  position: relative;
  overflow: hidden;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Watermark */
.invoice-watermark {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: #9ca3af;
  text-align: center;
  letter-spacing: 0.04em;
  z-index: 1;
}
.invoice-watermark a { color: #6366f1; }

/* ============================================================
   TEMPLATE 1: CLASSIC
   ============================================================ */
.tpl-classic {
  padding: 48px 52px;
  font-family: Georgia, 'Times New Roman', serif;
}
.tpl-classic .inv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid #1e293b;
}
.tpl-classic .inv-logo img { max-height: 64px; max-width: 200px; }
.tpl-classic .inv-logo-text {
  font-size: 28px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
}
.tpl-classic .inv-title-block { text-align: right; }
.tpl-classic .inv-title {
  font-size: 36px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.tpl-classic .inv-number { font-size: 14px; color: #64748b; }
.tpl-classic .inv-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}
.tpl-classic .inv-meta-item label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
}
.tpl-classic .inv-meta-item span {
  font-size: 13px;
  color: #1e293b;
  font-weight: 600;
}
.tpl-classic .inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.tpl-classic .party-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 8px;
}
.tpl-classic .party-name { font-size: 16px; font-weight: 700; color: #1e293b; margin-bottom: 4px; }
.tpl-classic .party-detail { font-size: 12px; color: #64748b; line-height: 1.6; }
.tpl-classic table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.tpl-classic thead th {
  padding: 10px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--tpl-accent, #1e293b);
}
.tpl-classic tbody td { padding: 12px; font-size: 13px; color: #374151; border-bottom: 1px solid #e5e7eb; }
.tpl-classic tbody tr:last-child td { border-bottom: none; }
.tpl-classic tbody tr:nth-child(even) td { background: #f8fafc; }
.tpl-classic .inv-totals { margin-left: auto; width: 280px; }
.tpl-classic .inv-total-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: #374151; }
.tpl-classic .inv-total-row.grand { border-top: 2px solid #1e293b; margin-top: 6px; padding-top: 10px; font-size: 16px; font-weight: 700; color: #1e293b; }
.tpl-classic .inv-footer { margin-top: 40px; padding-top: 20px; border-top: 1px solid #e5e7eb; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tpl-classic .inv-footer-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #94a3b8; margin-bottom: 6px; }
.tpl-classic .inv-footer-text { font-size: 12px; color: #64748b; line-height: 1.6; }

/* ============================================================
   TEMPLATE 2: MODERN
   ============================================================ */
.tpl-modern { font-family: 'Inter', sans-serif; }
.tpl-modern .inv-header-band {
  background: var(--tpl-accent, #6366f1);
  padding: 36px 48px 32px;
  position: relative;
  overflow: hidden;
}
.tpl-modern .inv-header-band::after {
  content: '';
  position: absolute;
  right: -40px; bottom: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.tpl-modern .inv-header-band::before {
  content: '';
  position: absolute;
  right: 60px; top: -20px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
}
.tpl-modern .inv-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 1;
}
.tpl-modern .inv-logo img { max-height: 52px; max-width: 160px; filter: brightness(10); }
.tpl-modern .inv-logo-text { font-size: 24px; font-weight: 800; color: white; }
.tpl-modern .inv-title { font-size: 40px; font-weight: 900; color: white; letter-spacing: -0.03em; opacity: 0.95; }
.tpl-modern .inv-number { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.tpl-modern .inv-header-meta {
  display: flex;
  gap: 32px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}
.tpl-modern .inv-meta-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tpl-modern .inv-meta-chip label { font-size: 10px; font-weight: 600; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }
.tpl-modern .inv-meta-chip span { font-size: 14px; font-weight: 700; color: white; }
.tpl-modern .inv-body { padding: 36px 48px; }
.tpl-modern .inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.tpl-modern .party-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px 20px;
  border-left: 4px solid var(--tpl-accent, #6366f1);
}
.tpl-modern .party-label { font-size: 10px; font-weight: 700; color: var(--tpl-accent, #6366f1); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.tpl-modern .party-name { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.tpl-modern .party-detail { font-size: 12px; color: #6b7280; line-height: 1.6; }
.tpl-modern table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.tpl-modern thead { background: #f1f5f9; }
.tpl-modern thead th { padding: 10px 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #64748b; text-align: left; }
.tpl-modern tbody td { padding: 14px; font-size: 13px; color: #374151; border-bottom: 1px solid #f1f5f9; }
.tpl-modern .inv-totals { background: #f8fafc; border-radius: 12px; padding: 20px; margin-left: auto; width: 300px; }
.tpl-modern .inv-total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; color: #6b7280; }
.tpl-modern .inv-total-row.grand { border-top: 2px solid var(--tpl-accent, #6366f1); margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 800; color: var(--tpl-accent, #6366f1); }
.tpl-modern .inv-footer { padding: 0 48px 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ============================================================
   TEMPLATE 3: MINIMAL
   ============================================================ */
.tpl-minimal { padding: 52px 56px; font-family: 'Inter', sans-serif; }
.tpl-minimal .inv-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 52px; }
.tpl-minimal .inv-logo img { max-height: 44px; max-width: 160px; }
.tpl-minimal .inv-logo-text { font-size: 20px; font-weight: 700; color: #111827; }
.tpl-minimal .inv-title { font-size: 44px; font-weight: 900; letter-spacing: -0.04em; color: #111827; line-height: 1; }
.tpl-minimal .inv-number { font-size: 13px; color: #9ca3af; margin-top: 8px; letter-spacing: 0.02em; }
.tpl-minimal hr { border: none; border-top: 1px solid #e5e7eb; margin-bottom: 32px; }
.tpl-minimal .inv-parties { display: flex; justify-content: space-between; margin-bottom: 40px; }
.tpl-minimal .party-label { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #9ca3af; margin-bottom: 8px; }
.tpl-minimal .party-name { font-size: 14px; font-weight: 700; color: #111827; }
.tpl-minimal .party-detail { font-size: 12px; color: #6b7280; line-height: 1.65; margin-top: 4px; }
.tpl-minimal .inv-meta { display: flex; gap: 32px; margin-bottom: 40px; }
.tpl-minimal .inv-meta-item label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9ca3af; display: block; margin-bottom: 4px; }
.tpl-minimal .inv-meta-item span { font-size: 14px; color: #111827; font-weight: 600; }
.tpl-minimal table { width: 100%; border-collapse: collapse; margin-bottom: 32px; }
.tpl-minimal thead th { padding: 8px 0; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #9ca3af; border-bottom: 1px solid #e5e7eb; text-align: left; }
.tpl-minimal thead th:last-child, .tpl-minimal tbody td:last-child { text-align: right; }
.tpl-minimal tbody td { padding: 14px 0; font-size: 13px; color: #374151; border-bottom: 1px solid #f3f4f6; }
.tpl-minimal .inv-totals { margin-left: auto; width: 260px; }
.tpl-minimal .inv-total-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: #9ca3af; }
.tpl-minimal .inv-total-row.grand { border-top: 1px solid #111827; margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 800; color: #111827; }
.tpl-minimal .inv-footer { margin-top: 48px; padding-top: 24px; border-top: 1px solid #e5e7eb; display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

/* ============================================================
   TEMPLATE 4: BOLD
   ============================================================ */
.tpl-bold { font-family: 'Inter', sans-serif; }
.tpl-bold .inv-header {
  background: var(--tpl-accent, #111827);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  min-height: 120px;
}
.tpl-bold .inv-header-left {
  padding: 32px 40px;
  border-right: 6px solid var(--tpl-accent2, #f59e0b);
}
.tpl-bold .inv-logo img { max-height: 52px; max-width: 160px; filter: brightness(10); }
.tpl-bold .inv-logo-text { font-size: 26px; font-weight: 900; color: white; letter-spacing: -0.03em; }
.tpl-bold .inv-header-right {
  padding: 32px 40px;
  text-align: right;
  background: var(--tpl-accent2, #f59e0b);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 200px;
}
.tpl-bold .inv-title { font-size: 32px; font-weight: 900; color: #111827; letter-spacing: -0.03em; }
.tpl-bold .inv-number { font-size: 12px; color: rgba(17,24,39,0.6); margin-top: 4px; font-weight: 600; }
.tpl-bold .inv-body { padding: 36px 40px; }
.tpl-bold .inv-meta-strip {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
}
.tpl-bold .inv-meta-item {
  flex: 1;
  padding: 12px 16px;
  border-right: 1px solid #e5e7eb;
}
.tpl-bold .inv-meta-item:last-child { border-right: none; }
.tpl-bold .inv-meta-item label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: #9ca3af; display: block; margin-bottom: 4px; }
.tpl-bold .inv-meta-item span { font-size: 14px; font-weight: 700; color: #111827; }
.tpl-bold .inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.tpl-bold .party-label { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tpl-accent, #111827); margin-bottom: 8px; padding-left: 10px; border-left: 3px solid var(--tpl-accent2, #f59e0b); }
.tpl-bold .party-name { font-size: 15px; font-weight: 700; color: #111827; }
.tpl-bold .party-detail { font-size: 12px; color: #6b7280; line-height: 1.6; margin-top: 4px; }
.tpl-bold table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.tpl-bold thead { background: var(--tpl-accent, #111827); }
.tpl-bold thead th { padding: 12px 14px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: white; text-align: left; }
.tpl-bold tbody td { padding: 13px 14px; font-size: 13px; color: #374151; border-bottom: 2px solid #f3f4f6; font-weight: 500; }
.tpl-bold .inv-totals { background: #f9fafb; border: 2px solid #e5e7eb; border-radius: 10px; padding: 20px; margin-left: auto; width: 300px; }
.tpl-bold .inv-total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; color: #6b7280; }
.tpl-bold .inv-total-row.grand { border-top: 3px solid var(--tpl-accent, #111827); margin-top: 8px; padding-top: 12px; font-size: 20px; font-weight: 900; color: var(--tpl-accent, #111827); }

/* ============================================================
   TEMPLATE 5: ELEGANT
   ============================================================ */
.tpl-elegant { padding: 52px; font-family: 'Georgia', serif; background: #fdfcfa; }
.tpl-elegant .inv-header { text-align: center; margin-bottom: 40px; position: relative; padding-bottom: 32px; }
.tpl-elegant .inv-header::after { content: ''; display: block; width: 80px; height: 2px; background: var(--tpl-accent, #d4a853); margin: 20px auto 0; }
.tpl-elegant .inv-logo img { max-height: 60px; max-width: 180px; margin: 0 auto 16px; display: block; }
.tpl-elegant .inv-logo-text { font-size: 26px; font-weight: 700; color: #1a1a2e; margin-bottom: 8px; }
.tpl-elegant .inv-title { font-size: 13px; font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase; color: var(--tpl-accent, #d4a853); }
.tpl-elegant .inv-subtitle { font-size: 11px; color: #9ca3af; letter-spacing: 0.15em; margin-top: 6px; }
.tpl-elegant .inv-meta { display: flex; justify-content: space-between; margin-bottom: 36px; padding: 20px 24px; background: var(--tpl-accent-light, #fdf8ee); border: 1px solid var(--tpl-accent-border, #e8d5a3); border-radius: 8px; }
.tpl-elegant .inv-meta-item label { font-size: 10px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: #9ca3af; display: block; margin-bottom: 4px; }
.tpl-elegant .inv-meta-item span { font-size: 13px; color: #1a1a2e; font-weight: 600; }
.tpl-elegant .inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.tpl-elegant .party-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tpl-accent, #d4a853); margin-bottom: 10px; }
.tpl-elegant .party-name { font-size: 15px; font-weight: 700; color: #1a1a2e; margin-bottom: 6px; }
.tpl-elegant .party-detail { font-size: 12px; color: #6b7280; line-height: 1.7; }
.tpl-elegant table { width: 100%; border-collapse: collapse; margin-bottom: 28px; }
.tpl-elegant thead th { padding: 10px 12px; font-size: 10px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: #9ca3af; border-bottom: 1px solid var(--tpl-accent, #d4a853); text-align: left; }
.tpl-elegant tbody td { padding: 13px 12px; font-size: 13px; color: #374151; border-bottom: 1px solid #f0ebe0; }
.tpl-elegant .inv-totals { margin-left: auto; width: 270px; }
.tpl-elegant .inv-total-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: #6b7280; }
.tpl-elegant .inv-total-row.grand { border-top: 1px solid var(--tpl-accent, #d4a853); margin-top: 8px; padding-top: 12px; font-size: 17px; font-weight: 700; color: #1a1a2e; }
.tpl-elegant .inv-footer { margin-top: 44px; padding-top: 24px; border-top: 1px solid #e5e7eb; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ============================================================
   TEMPLATE 6: CORPORATE
   ============================================================ */
.tpl-corporate { font-family: 'Inter', sans-serif; }
.tpl-corporate .inv-header {
  background: linear-gradient(135deg, var(--tpl-accent, #1e3a5f) 0%, var(--tpl-accent2, #0f2240) 100%);
  padding: 40px 48px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.tpl-corporate .inv-logo img { max-height: 52px; filter: brightness(10); }
.tpl-corporate .inv-logo-text { font-size: 24px; font-weight: 800; color: white; letter-spacing: -0.02em; }
.tpl-corporate .inv-logo-sub { font-size: 11px; color: rgba(255,255,255,0.5); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 4px; }
.tpl-corporate .inv-title-block { text-align: right; }
.tpl-corporate .inv-title { font-size: 36px; font-weight: 800; color: white; letter-spacing: -0.025em; }
.tpl-corporate .inv-number { font-size: 13px; color: rgba(255,255,255,0.6); margin-top: 4px; }
.tpl-corporate .inv-meta-bar {
  background: #f0f4f8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 3px solid var(--tpl-accent, #1e3a5f);
}
.tpl-corporate .inv-meta-item { padding: 14px 20px; border-right: 1px solid #e2e8f0; }
.tpl-corporate .inv-meta-item:last-child { border-right: none; }
.tpl-corporate .inv-meta-item label { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #64748b; display: block; margin-bottom: 5px; }
.tpl-corporate .inv-meta-item span { font-size: 14px; color: #1e293b; font-weight: 700; }
.tpl-corporate .inv-body { padding: 36px 48px; }
.tpl-corporate .inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 32px; }
.tpl-corporate .party-label { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tpl-accent, #1e3a5f); margin-bottom: 10px; }
.tpl-corporate .party-name { font-size: 15px; font-weight: 700; color: #111827; }
.tpl-corporate .party-detail { font-size: 12px; color: #6b7280; line-height: 1.6; margin-top: 4px; }
.tpl-corporate table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.tpl-corporate thead { background: var(--tpl-accent, #1e3a5f); }
.tpl-corporate thead th { padding: 12px 16px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: white; text-align: left; }
.tpl-corporate tbody tr:nth-child(even) td { background: #f8fbff; }
.tpl-corporate tbody td { padding: 13px 16px; font-size: 13px; color: #374151; border-bottom: 1px solid #e2e8f0; }
.tpl-corporate .inv-totals { background: linear-gradient(135deg, var(--tpl-accent, #1e3a5f) 0%, var(--tpl-accent2, #0f2240) 100%); border-radius: 12px; padding: 24px; margin-left: auto; width: 300px; }
.tpl-corporate .inv-total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; color: rgba(255,255,255,0.7); }
.tpl-corporate .inv-total-row.grand { border-top: 1px solid rgba(255,255,255,0.2); margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 800; color: white; }

/* ============================================================
   TEMPLATE 7: CREATIVE
   ============================================================ */
.tpl-creative { font-family: 'Inter', sans-serif; padding: 0; overflow: hidden; }
.tpl-creative .inv-sidebar {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 200px;
  background: var(--tpl-accent, #7c3aed);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.tpl-creative .inv-main { margin-left: 200px; padding: 40px 44px; }
.tpl-creative .inv-logo img { max-height: 48px; filter: brightness(10); }
.tpl-creative .inv-logo-text { font-size: 20px; font-weight: 800; color: white; }
.tpl-creative .inv-sidebar .party-section { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; }
.tpl-creative .inv-sidebar .party-label { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 8px; }
.tpl-creative .inv-sidebar .party-name { font-size: 13px; font-weight: 700; color: white; }
.tpl-creative .inv-sidebar .party-detail { font-size: 11px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-top: 4px; }
.tpl-creative .inv-sidebar .inv-meta-item { margin-bottom: 16px; }
.tpl-creative .inv-sidebar .inv-meta-item label { font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); display: block; margin-bottom: 3px; }
.tpl-creative .inv-sidebar .inv-meta-item span { font-size: 13px; color: white; font-weight: 600; }
.tpl-creative .inv-title { font-size: 42px; font-weight: 900; letter-spacing: -0.04em; color: #111827; margin-bottom: 4px; }
.tpl-creative .inv-number { font-size: 13px; color: #9ca3af; }
.tpl-creative .inv-main-header { margin-bottom: 32px; padding-bottom: 20px; border-bottom: 2px solid #e5e7eb; }
.tpl-creative table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.tpl-creative thead th { padding: 10px 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--tpl-accent, #7c3aed); border-bottom: 2px solid var(--tpl-accent, #7c3aed); text-align: left; }
.tpl-creative tbody td { padding: 13px 12px; font-size: 13px; color: #374151; border-bottom: 1px solid #f3f4f6; }
.tpl-creative .inv-totals { background: #faf7ff; border: 2px solid #e9d5ff; border-radius: 12px; padding: 20px; margin-left: auto; width: 280px; }
.tpl-creative .inv-total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; color: #6b7280; }
.tpl-creative .inv-total-row.grand { border-top: 2px solid var(--tpl-accent, #7c3aed); margin-top: 8px; padding-top: 10px; font-size: 18px; font-weight: 800; color: var(--tpl-accent, #7c3aed); }

/* ============================================================
   TEMPLATE 8: EXECUTIVE
   ============================================================ */
.tpl-executive { padding: 0; font-family: 'Inter', sans-serif; }
.tpl-executive .inv-accent-bar { height: 6px; background: linear-gradient(90deg, var(--tpl-accent, #059669) 0%, var(--tpl-accent2, #0d9488) 100%); }
.tpl-executive .inv-header { padding: 40px 52px 32px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid #e5e7eb; }
.tpl-executive .inv-logo img { max-height: 56px; }
.tpl-executive .inv-logo-text { font-size: 24px; font-weight: 700; color: #111827; }
.tpl-executive .inv-logo-detail { font-size: 11px; color: #9ca3af; margin-top: 4px; line-height: 1.5; }
.tpl-executive .inv-title-block { text-align: right; }
.tpl-executive .inv-title { font-size: 13px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--tpl-accent, #059669); margin-bottom: 8px; }
.tpl-executive .inv-number { font-size: 28px; font-weight: 900; color: #111827; letter-spacing: -0.03em; }
.tpl-executive .inv-status { display: inline-block; padding: 3px 10px; background: #d1fae5; color: #065f46; font-size: 11px; font-weight: 700; border-radius: 100px; margin-top: 8px; }
.tpl-executive .inv-body { padding: 36px 52px; }
.tpl-executive .inv-meta { display: flex; gap: 40px; margin-bottom: 36px; }
.tpl-executive .inv-meta-item label { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #9ca3af; display: block; margin-bottom: 5px; }
.tpl-executive .inv-meta-item span { font-size: 14px; color: #111827; font-weight: 700; }
.tpl-executive .inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.tpl-executive .party-label { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #9ca3af; margin-bottom: 10px; }
.tpl-executive .party-name { font-size: 16px; font-weight: 700; color: #111827; }
.tpl-executive .party-detail { font-size: 12px; color: #6b7280; line-height: 1.65; margin-top: 5px; }
.tpl-executive table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.tpl-executive thead th { padding: 11px 14px; font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: #9ca3af; border-bottom: 2px solid #e5e7eb; text-align: left; }
.tpl-executive tbody td { padding: 14px; font-size: 13px; color: #374151; border-bottom: 1px solid #f3f4f6; }
.tpl-executive .inv-totals { margin-left: auto; width: 280px; }
.tpl-executive .inv-total-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; color: #6b7280; }
.tpl-executive .inv-total-row.grand { border-top: 2px solid var(--tpl-accent, #059669); margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 800; color: var(--tpl-accent, #059669); }
.tpl-executive .inv-bottom-bar { height: 4px; background: linear-gradient(90deg, var(--tpl-accent, #059669) 0%, var(--tpl-accent2, #0d9488) 100%); margin-top: 48px; }

/* ============================================================
   TEMPLATE 9: NEON
   ============================================================ */
.tpl-neon { font-family: 'Inter', sans-serif; background: #0a0a0f; color: #e2e8f0; }
.tpl-neon .inv-header {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a0a2e 100%);
  padding: 40px 48px;
  border-bottom: 1px solid rgba(139,92,246,0.3);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
}
.tpl-neon .inv-header::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.tpl-neon .inv-logo-text { font-size: 22px; font-weight: 800; background: linear-gradient(135deg, #8b5cf6, #06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.tpl-neon .inv-title { font-size: 36px; font-weight: 900; color: white; letter-spacing: -0.03em; text-shadow: 0 0 30px rgba(139,92,246,0.5); }
.tpl-neon .inv-number { font-size: 12px; color: rgba(139,92,246,0.8); margin-top: 4px; letter-spacing: 0.05em; }
.tpl-neon .inv-body { padding: 36px 48px; }
.tpl-neon .inv-meta { display: flex; gap: 32px; margin-bottom: 32px; }
.tpl-neon .inv-meta-item { background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.2); border-radius: 8px; padding: 12px 16px; }
.tpl-neon .inv-meta-item label { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(139,92,246,0.7); display: block; margin-bottom: 4px; }
.tpl-neon .inv-meta-item span { font-size: 14px; color: #e2e8f0; font-weight: 600; }
.tpl-neon .inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 32px; }
.tpl-neon .party-box { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 16px; }
.tpl-neon .party-label { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #8b5cf6; margin-bottom: 8px; }
.tpl-neon .party-name { font-size: 15px; font-weight: 700; color: white; }
.tpl-neon .party-detail { font-size: 12px; color: #94a3b8; line-height: 1.6; margin-top: 4px; }
.tpl-neon table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.tpl-neon thead th { padding: 11px 14px; font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8b5cf6; border-bottom: 1px solid rgba(139,92,246,0.3); text-align: left; }
.tpl-neon tbody td { padding: 13px 14px; font-size: 13px; color: #cbd5e1; border-bottom: 1px solid rgba(255,255,255,0.05); }
.tpl-neon .inv-totals { background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.25); border-radius: 12px; padding: 20px; margin-left: auto; width: 280px; }
.tpl-neon .inv-total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; color: #94a3b8; }
.tpl-neon .inv-total-row.grand { border-top: 1px solid rgba(139,92,246,0.4); margin-top: 8px; padding-top: 10px; font-size: 18px; font-weight: 800; color: #8b5cf6; text-shadow: 0 0 20px rgba(139,92,246,0.5); }

/* ============================================================
   TEMPLATE 10: RETRO
   ============================================================ */
.tpl-retro { padding: 48px 52px; font-family: 'Courier New', monospace; background: #faf6ef; }
.tpl-retro .inv-header { border: 3px solid #2d2d2d; margin-bottom: 0; }
.tpl-retro .inv-header-top { display: flex; justify-content: space-between; align-items: stretch; }
.tpl-retro .inv-logo-section { padding: 24px 28px; border-right: 3px solid #2d2d2d; flex: 1; }
.tpl-retro .inv-logo-text { font-size: 24px; font-weight: 700; color: #2d2d2d; font-family: 'Courier New', monospace; }
.tpl-retro .inv-logo-sub { font-size: 11px; color: #6b7280; margin-top: 4px; }
.tpl-retro .inv-title-section { background: #2d2d2d; padding: 24px 28px; text-align: center; min-width: 200px; display: flex; flex-direction: column; justify-content: center; }
.tpl-retro .inv-title { font-size: 28px; font-weight: 700; color: var(--tpl-accent, #f59e0b); letter-spacing: 0.05em; font-family: 'Courier New', monospace; }
.tpl-retro .inv-number { font-size: 12px; color: rgba(245,158,11,0.7); margin-top: 4px; }
.tpl-retro .inv-header-meta { border-top: 3px solid #2d2d2d; display: grid; grid-template-columns: repeat(3, 1fr); }
.tpl-retro .inv-meta-item { padding: 12px 16px; border-right: 1px solid #2d2d2d; }
.tpl-retro .inv-meta-item:last-child { border-right: none; }
.tpl-retro .inv-meta-item label { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #9ca3af; display: block; margin-bottom: 4px; }
.tpl-retro .inv-meta-item span { font-size: 14px; color: #2d2d2d; font-weight: 700; }
.tpl-retro .inv-body { border: 3px solid #2d2d2d; border-top: none; padding: 28px; }
.tpl-retro .inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 28px; }
.tpl-retro .party-label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--tpl-accent, #f59e0b); margin-bottom: 8px; border-bottom: 1px dashed #9ca3af; padding-bottom: 4px; }
.tpl-retro .party-name { font-size: 15px; font-weight: 700; color: #2d2d2d; }
.tpl-retro .party-detail { font-size: 12px; color: #6b7280; line-height: 1.65; margin-top: 4px; }
.tpl-retro table { width: 100%; border-collapse: collapse; margin-bottom: 24px; border: 2px solid #2d2d2d; }
.tpl-retro thead { background: #2d2d2d; }
.tpl-retro thead th { padding: 10px 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tpl-accent, #f59e0b); text-align: left; font-family: 'Courier New', monospace; }
.tpl-retro tbody td { padding: 11px 12px; font-size: 13px; color: #2d2d2d; border-bottom: 1px dashed #d1d5db; }
.tpl-retro .inv-totals { margin-left: auto; width: 260px; border: 2px solid #2d2d2d; padding: 16px; }
.tpl-retro .inv-total-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; color: #6b7280; font-family: 'Courier New', monospace; }
.tpl-retro .inv-total-row.grand { border-top: 2px dashed #2d2d2d; margin-top: 8px; padding-top: 10px; font-size: 17px; font-weight: 700; color: #2d2d2d; }

/* ============================================================
   GST SUMMARY BLOCK
   ============================================================ */
.gst-summary-block {
  margin: 16px 0;
  padding: 14px 16px;
  background: rgba(99,102,241,0.05);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 8px;
}
.gst-summary-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 10px;
}
.gst-summary-table { width: 100%; border-collapse: collapse; }
.gst-summary-table th, .gst-summary-table td { padding: 5px 8px; font-size: 11px; text-align: left; }
.gst-summary-table th { color: #6b7280; font-weight: 600; border-bottom: 1px solid rgba(99,102,241,0.1); }
.gst-summary-table td { color: #374151; }

/* ============================================================
   SIGNATURE BLOCK
   ============================================================ */
.inv-signature-block {
  display: flex;
  justify-content: flex-end;
  margin-top: 32px;
}
.inv-signature-inner {
  text-align: center;
  min-width: 180px;
}
.inv-signature-img { max-height: 60px; max-width: 180px; margin-bottom: 4px; }
.inv-signature-line { width: 180px; height: 1px; background: currentColor; opacity: 0.2; margin-bottom: 6px; }
.inv-signature-label { font-size: 10px; color: #9ca3af; letter-spacing: 0.06em; text-transform: uppercase; }

/* ============================================================
   PAYMENT DETAILS BLOCK
   ============================================================ */
.inv-payment-block {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 20px;
}
.inv-payment-title { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; margin-bottom: 8px; }
.inv-payment-detail { font-size: 12px; color: #374151; line-height: 1.6; }

/* ============================================================
   QR CODE BLOCK IN INVOICE
   ============================================================ */
.inv-qr-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.inv-qr-label { font-size: 11px; color: #6b7280; }
.inv-qr-img { width: 72px; height: 72px; border: 1px solid #e5e7eb; border-radius: 6px; padding: 4px; background: white; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  .invoice-watermark { display: block !important; }
  .tpl-neon .inv-header,
  .tpl-neon { background-color: #0a0a0f !important; }
  .tpl-retro { background-color: #faf6ef !important; }
}
