﻿.invoice-toolbar {
  padding-top: 20px;
}

.invoice-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.invoice-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid #d3d9e3;
  border-radius: 10px;
  color: #3f4a5e;
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 650;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.04);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, color 0.16s ease;
}
.invoice-action-btn:hover, .invoice-action-btn:focus-visible {
  color: #26358c;
  border-color: rgba(38, 53, 140, 0.38);
  box-shadow: 0 6px 18px rgba(23, 32, 51, 0.08);
  transform: translateY(-1px);
}
.invoice-action-btn i {
  font-size: 15px;
}

.invoice-action-btn-primary {
  color: #fff;
  border-color: #26358c;
  background: linear-gradient(135deg, #26358c 0%, #18245f 100%);
  box-shadow: 0 7px 18px rgba(38, 53, 140, 0.2);
}
.invoice-action-btn-primary:hover, .invoice-action-btn-primary:focus-visible {
  color: #fff;
  border-color: #18245f;
  box-shadow: 0 10px 24px rgba(38, 53, 140, 0.26);
}

.invoice-page-wrap {
  color: #172033;
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

.invoice-sheet,
.invoice-sheet *,
.invoice-payment-summary-card,
.invoice-payment-summary-card * {
  box-sizing: border-box;
}

.invoice-sheet {
  position: relative;
  overflow: hidden;
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid #e2e6ed;
  border-radius: 18px;
  color: #172033;
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(23, 32, 51, 0.12);
}

.invoice-accent {
  height: 5px;
  background: linear-gradient(90deg, #18245f 0%, #26358c 64%, #d91e7a 100%);
}

.invoice-document-header {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 46px;
  padding: 42px 46px 34px;
}

/* Logo-ul firmei pe facturile emise de ea (șablonul PDF al firmei, facturi pe e-mail E3). */
.invoice-logo {
  display: block;
  max-width: 220px;
  max-height: 64px;
  margin-bottom: 20px;
  object-fit: contain;
}

.invoice-eyebrow,
.invoice-section-kicker {
  color: #6f798a;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.invoice-company-name {
  margin: 8px 0 10px;
  color: #18245f;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  text-transform: none;
}

.invoice-company-details {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  color: #3f4a5e;
  font-size: 12.5px;
}
.invoice-company-details strong {
  margin-right: 4px;
  color: #6f798a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.invoice-address,
.invoice-muted-line {
  margin-top: 6px;
  max-width: 660px;
  color: #6f798a;
  font-size: 12.5px;
  line-height: 1.5;
}

.invoice-bank-list {
  display: grid;
  gap: 8px;
  margin-top: 19px;
}

.invoice-bank-item {
  max-width: 600px;
  padding: 10px 12px;
  border: 1px solid #e2e6ed;
  border-radius: 7px;
  background: #f7f8fb;
  color: #3f4a5e;
  font-size: 11.5px;
  line-height: 1.45;
}
.invoice-bank-item > div:not(:first-child) {
  margin-top: 2px;
}

.invoice-detail-label {
  display: block;
  margin-bottom: 2px;
  color: #6f798a;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.invoice-bank-value {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.015em;
  overflow-wrap: anywhere;
}

.invoice-bank-type {
  color: #939cab;
  font-size: 10px;
}

.invoice-meta-card {
  align-self: start;
  padding: 22px 22px 18px;
  border: 1px solid rgba(38, 53, 140, 0.13);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(238, 241, 255, 0.84), rgba(255, 255, 255, 0.96) 58%);
}

.invoice-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(38, 53, 140, 0.12);
}

.invoice-document-title {
  color: #18245f;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 0.065em;
  line-height: 1;
}

.invoice-document-type {
  margin-top: 7px;
  color: #6f798a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.invoice-document-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid rgba(38, 53, 140, 0.13);
  border-radius: 12px;
  color: #26358c;
  background: #ffffff;
  box-shadow: 0 5px 14px rgba(38, 53, 140, 0.07);
  font-size: 19px;
}

.invoice-meta-list {
  margin: 14px 0 0;
}

.invoice-meta-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: baseline;
  gap: 14px;
  padding: 7px 0;
}
.invoice-meta-row dt,
.invoice-meta-row dd {
  margin: 0;
}
.invoice-meta-row dt {
  color: #6f798a;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.02em;
}
.invoice-meta-row dd {
  color: #172033;
  font-size: 13px;
  font-weight: 780;
  text-align: right;
  overflow-wrap: anywhere;
}

.invoice-meta-row-due dd {
  color: #d91e7a;
}

.invoice-document-note {
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid rgba(38, 53, 140, 0.1);
  color: #3f4a5e;
  font-size: 11.5px;
  line-height: 1.48;
}

.invoice-customer-section {
  padding: 0 46px 34px;
}

.invoice-customer-card {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-top: 9px;
  padding: 18px 20px;
  border: 1px solid #e2e6ed;
  border-radius: 11px;
  background: #f7f8fb;
}

.invoice-customer-main {
  min-width: 0;
}
.invoice-customer-main h2 {
  margin: 0 0 7px;
  color: #172033;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.18;
}

.invoice-delivery-address {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  max-width: 360px;
  padding-left: 20px;
  border-left: 1px solid #d3d9e3;
  color: #3f4a5e;
  font-size: 11.5px;
  line-height: 1.45;
}
.invoice-delivery-address > i {
  margin-top: 1px;
  color: #26358c;
  font-size: 15px;
}

.invoice-lines-section {
  padding: 0 46px 34px;
}

.invoice-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 12px;
}
.invoice-section-heading h2 {
  margin: 4px 0 0;
  color: #172033;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.invoice-lines-count {
  color: #6f798a;
  font-size: 11px;
  font-weight: 650;
}

.invoice-table-wrap {
  overflow: hidden;
  border: 1px solid #e2e6ed;
  border-radius: 11px;
}

.invoice-table {
  width: 100%;
  margin: 0;
  border: 0;
  border-collapse: collapse;
  table-layout: auto;
  color: #172033;
  background: #ffffff;
  font-size: 11.5px;
}
.invoice-table thead {
  display: table-header-group;
}
.invoice-table th {
  padding: 10px 7px;
  border: 0;
  border-bottom: 1px solid #d3d9e3;
  color: #3f4a5e;
  background: #f1f3f7;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.045em;
  line-height: 1.18;
  text-transform: uppercase;
  vertical-align: bottom;
}
.invoice-table th span {
  color: #939cab;
  font-size: 0.91em;
}
.invoice-table td {
  padding: 10px 7px;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  vertical-align: top;
}
.invoice-table tbody tr:nth-child(even) td {
  background: rgba(247, 248, 251, 0.66);
}
.invoice-table tbody tr:last-child td {
  border-bottom: 0;
}

.invoice-col-index,
.invoice-line-index {
  width: 32px;
  text-align: center;
}

.invoice-col-number {
  width: 70px;
  text-align: right;
}

.invoice-col-unit {
  width: 48px;
  text-align: center;
}

.invoice-col-vat {
  width: 48px;
  text-align: right;
}

.invoice-col-money {
  min-width: 82px;
  text-align: right;
}

.invoice-line-index {
  color: #939cab;
  font-size: 10px;
  font-weight: 700;
}

.invoice-line-description {
  min-width: 190px;
}

.invoice-line-name {
  color: #172033;
  font-weight: 720;
  line-height: 1.35;
}

.invoice-line-note,
.invoice-line-code {
  margin-top: 3px;
  color: #6f798a;
  font-size: 9.5px;
  line-height: 1.35;
}

.invoice-line-code {
  color: #939cab;
}

.invoice-line-discount {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  color: #b21b4d;
  font-size: 9.5px;
  font-weight: 720;
}

.invoice-number {
  white-space: nowrap;
  color: #3f4a5e;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.invoice-unit {
  color: #6f798a;
  text-align: center;
}

.invoice-currency {
  margin-left: 3px;
  color: #939cab;
  font-size: 0.78em;
  font-weight: 700;
}

.invoice-vat-percent {
  color: #6f798a;
}

.invoice-line-total {
  color: #172033;
  font-weight: 780;
}

.invoice-discount-amount {
  margin-top: 2px;
  color: #b21b4d;
  font-size: 9.5px;
  font-weight: 720;
}

.invoice-summary-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 430px);
  align-items: stretch;
  gap: 34px;
  padding: 0 46px 34px;
}

.invoice-payment-panel {
  align-self: start;
  padding: 18px 0;
}

.invoice-payment-due-label {
  margin-top: 9px;
  color: #6f798a;
  font-size: 11px;
  font-weight: 650;
}

.invoice-payment-due-date {
  margin-top: 2px;
  color: #d91e7a;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.invoice-payment-due-date-muted {
  color: #939cab;
  font-size: 17px;
}

.invoice-payment-hint {
  margin-top: 9px;
  max-width: 390px;
  color: #6f798a;
  font-size: 10.5px;
  line-height: 1.45;
}

.invoice-totals-card {
  overflow: hidden;
  align-self: start;
  border: 1px solid #e2e6ed;
  border-radius: 11px;
  background: #ffffff;
}

.invoice-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e6ed;
  color: #6f798a;
  font-size: 11px;
}
.invoice-total-row strong {
  color: #3f4a5e;
  font-size: 13px;
  font-weight: 770;
  white-space: nowrap;
}
.invoice-total-row small {
  color: #939cab;
  font-size: 9px;
  font-weight: 800;
}

.invoice-total-row-secondary {
  background: #f7f8fb;
  font-size: 10px;
}

.invoice-grand-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 15px 14px;
  color: #fff;
  background: linear-gradient(135deg, #26358c 20%, #d91e7a 100%);
}
.invoice-grand-total span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.invoice-grand-total strong {
  font-size: 21px;
  font-weight: 850;
  letter-spacing: -0.025em;
  white-space: nowrap;
}
.invoice-grand-total small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
  font-weight: 800;
}

.invoice-legal-footer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 46px 32px;
  padding: 12px 14px;
  border-top: 1px solid #e2e6ed;
  color: #6f798a;
  font-size: 9.5px;
  line-height: 1.5;
}
.invoice-legal-footer p {
  margin: 0;
}

.invoice-legal-icon {
  color: #26358c;
  font-size: 14px;
}

.invoice-anaf-section {
  margin: 0 46px 42px;
  padding: 18px;
  border: 1px solid rgba(38, 53, 140, 0.13);
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(238, 241, 255, 0.62), rgba(255, 255, 255, 0.94));
}

.invoice-anaf-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 14px;
}
.invoice-anaf-header h2 {
  margin: 4px 0 0;
  color: #18245f;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.invoice-anaf-header > i {
  color: #26358c;
  font-size: 20px;
}

.invoice-anaf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.invoice-anaf-grid > div {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(38, 53, 140, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.82);
}
.invoice-anaf-grid span {
  display: block;
  margin-bottom: 3px;
  color: #6f798a;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.invoice-anaf-grid strong {
  display: block;
  overflow-wrap: anywhere;
  color: #3f4a5e;
  font-size: 10.5px;
  font-weight: 700;
}

.invoice-anaf-detail {
  margin-top: 9px;
}
.invoice-anaf-detail > span {
  display: block;
  margin-bottom: 4px;
  color: #6f798a;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}
.invoice-anaf-detail code {
  display: block;
  max-height: 78px;
  overflow: auto;
  padding: 8px 10px;
  border: 1px solid #e2e6ed;
  border-radius: 7px;
  color: #3f4a5e;
  background: #ffffff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 8.5px;
  line-height: 1.42;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.invoice-payment-summary-card {
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  overflow: hidden;
  border: 1px solid #e2e6ed;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 12px 36px rgba(23, 32, 51, 0.07);
}

.invoice-payment-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #e2e6ed;
}
.invoice-payment-summary-header h2 {
  margin: 4px 0 0;
  color: #172033;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.018em;
}

.invoice-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.invoice-status-success {
  color: #16805c;
  background: #eaf8f2;
}

.invoice-status-info {
  color: #2869a8;
  background: #eef6ff;
}

.invoice-status-warning {
  color: #a86508;
  background: #fff7e8;
}

.invoice-status-muted {
  color: #6f798a;
  background: #f1f3f7;
}

.invoice-payment-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e2e6ed;
  border-bottom: 1px solid #e2e6ed;
}
.invoice-payment-stats > div {
  padding: 15px 20px;
  background: #f7f8fb;
}
.invoice-payment-stats span {
  display: block;
  color: #6f798a;
  font-size: 10px;
  font-weight: 700;
}
.invoice-payment-stats strong {
  display: block;
  margin-top: 3px;
  color: #172033;
  font-size: 17px;
  font-weight: 820;
  letter-spacing: -0.02em;
}

.invoice-reconciliation-table {
  font-size: 12px;
}
.invoice-reconciliation-table thead th {
  padding: 10px 14px;
  color: #6f798a;
  background: #f1f3f7;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom-color: #e2e6ed;
}
.invoice-reconciliation-table tbody td {
  padding: 11px 14px;
  color: #3f4a5e;
  border-bottom-color: #edf0f4;
}

.invoice-allocation-canceled {
  opacity: 0.62;
  text-decoration: line-through;
}

.invoice-transaction-link {
  color: #26358c;
  font-weight: 700;
  text-decoration: none;
}
.invoice-transaction-link:hover {
  text-decoration: underline;
}

.invoice-empty-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  color: #6f798a;
  font-size: 12px;
}
.invoice-empty-state i {
  color: #939cab;
  font-size: 17px;
}

@media screen {
  body {
    background: #edf1f6;
  }
  .invoice-page-wrap {
    padding-bottom: 42px;
  }
}
@media screen and (max-width: 900px) {
  .invoice-document-header {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 30px 26px 26px;
  }
  .invoice-customer-section,
  .invoice-lines-section,
  .invoice-summary-section {
    padding-right: 26px;
    padding-left: 26px;
  }
  .invoice-legal-footer,
  .invoice-anaf-section {
    margin-right: 26px;
    margin-left: 26px;
  }
  .invoice-summary-section {
    grid-template-columns: 1fr;
  }
  .invoice-customer-card {
    flex-direction: column;
  }
  .invoice-delivery-address {
    max-width: none;
    padding-top: 14px;
    padding-left: 0;
    border-top: 1px solid #e2e6ed;
    border-left: 0;
  }
  .invoice-table-wrap {
    overflow-x: auto;
  }
  .invoice-table {
    min-width: 860px;
  }
}
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }
  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    color: #111827 !important;
    background: #fff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  body * {
    visibility: hidden;
  }
  #invoice,
  #invoice * {
    visibility: visible;
  }
  #invoice {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .invoice-sheet {
    width: 100%;
    max-width: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .invoice-accent {
    height: 3px;
  }
  .invoice-document-header {
    grid-template-columns: minmax(0, 1.3fr) minmax(58mm, 0.7fr);
    gap: 8mm;
    padding: 8mm 8mm 6mm;
  }
  .invoice-company-name {
    margin-top: 1.5mm;
    margin-bottom: 2mm;
    font-size: 18pt;
  }
  .invoice-company-details,
  .invoice-address,
  .invoice-muted-line {
    font-size: 7.8pt;
  }
  .invoice-bank-list {
    gap: 1.2mm;
    margin-top: 3mm;
  }
  .invoice-bank-item {
    padding: 1.7mm 2mm;
    border-radius: 1.5mm;
    font-size: 7pt;
  }
  .invoice-detail-label,
  .invoice-eyebrow,
  .invoice-section-kicker {
    font-size: 6.2pt;
  }
  .invoice-bank-value {
    font-size: 6.8pt;
  }
  .invoice-meta-card {
    padding: 4mm;
    border-radius: 2mm;
  }
  .invoice-document-title {
    font-size: 19pt;
  }
  .invoice-document-icon {
    width: 8mm;
    height: 8mm;
    flex-basis: 8mm;
    border-radius: 2mm;
    box-shadow: none;
    font-size: 10pt;
  }
  .invoice-meta-top {
    padding-bottom: 3mm;
  }
  .invoice-meta-list {
    margin-top: 2mm;
  }
  .invoice-meta-row {
    grid-template-columns: 26mm 1fr;
    gap: 2mm;
    padding: 1.15mm 0;
  }
  .invoice-meta-row dt {
    font-size: 6.6pt;
  }
  .invoice-meta-row dd {
    font-size: 7.6pt;
  }
  .invoice-document-note {
    margin-top: 2mm;
    padding-top: 2mm;
    font-size: 6.8pt;
  }
  .invoice-customer-section {
    padding: 0 8mm 5mm;
  }
  .invoice-customer-card {
    gap: 5mm;
    margin-top: 1.5mm;
    padding: 3mm 3.5mm;
    border-radius: 2mm;
  }
  .invoice-customer-main h2 {
    margin-bottom: 1mm;
    font-size: 10.5pt;
  }
  .invoice-delivery-address {
    max-width: 54mm;
    padding-left: 3mm;
    font-size: 6.8pt;
  }
  .invoice-lines-section {
    padding: 0 8mm 5mm;
  }
  .invoice-section-heading {
    margin-bottom: 2mm;
  }
  .invoice-section-heading h2 {
    margin-top: 0.8mm;
    font-size: 10.5pt;
  }
  .invoice-lines-count {
    font-size: 6.5pt;
  }
  .invoice-table-wrap {
    overflow: visible;
    border-radius: 1.8mm;
  }
  .invoice-table {
    width: 100%;
    table-layout: fixed;
    font-size: 6.7pt;
  }
  .invoice-table th {
    padding: 1.7mm 1mm;
    font-size: 5.3pt;
    letter-spacing: 0.025em;
  }
  .invoice-table td {
    padding: 1.7mm 1mm;
  }
  .invoice-table tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .invoice-col-index,
  .invoice-line-index {
    width: 4%;
  }
  .invoice-col-number {
    width: 8%;
  }
  .invoice-col-unit {
    width: 5%;
  }
  .invoice-col-vat {
    width: 5.5%;
  }
  .invoice-col-money {
    width: 10.5%;
  }
  .invoice-line-description {
    width: auto;
    min-width: 0;
  }
  .invoice-line-name {
    font-size: 6.8pt;
  }
  .invoice-line-note,
  .invoice-line-code,
  .invoice-line-discount,
  .invoice-discount-amount {
    font-size: 5.6pt;
  }
  .invoice-summary-section {
    grid-template-columns: 1fr 76mm;
    gap: 6mm;
    padding: 0 8mm 5mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .invoice-payment-panel {
    padding: 3mm 0;
  }
  .invoice-payment-due-label,
  .invoice-payment-hint {
    font-size: 6.5pt;
  }
  .invoice-payment-due-date {
    font-size: 15pt;
  }
  .invoice-total-row {
    padding: 2mm 2.6mm;
    font-size: 6.6pt;
  }
  .invoice-total-row strong {
    font-size: 7.8pt;
  }
  .invoice-grand-total {
    padding: 2.8mm 2.6mm;
  }
  .invoice-grand-total span {
    font-size: 6.2pt;
  }
  .invoice-grand-total strong {
    font-size: 12pt;
  }
  .invoice-legal-footer {
    margin: 0 8mm 5mm;
    padding: 2mm 0;
    font-size: 5.8pt;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .invoice-anaf-section {
    margin: 0 8mm 7mm;
    padding: 3mm;
    border-radius: 2mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .invoice-anaf-header {
    margin-bottom: 2mm;
  }
  .invoice-anaf-header h2 {
    font-size: 8.5pt;
  }
  .invoice-anaf-grid {
    gap: 1.5mm;
    margin-bottom: 2mm;
  }
  .invoice-anaf-grid > div {
    padding: 1.7mm;
  }
  .invoice-anaf-grid span {
    font-size: 5.3pt;
  }
  .invoice-anaf-grid strong {
    font-size: 6.3pt;
  }
  .invoice-anaf-detail {
    margin-top: 1.5mm;
  }
  .invoice-anaf-detail > span {
    font-size: 5.2pt;
  }
  .invoice-anaf-detail code {
    max-height: none;
    overflow: visible;
    padding: 1.5mm;
    font-size: 5pt;
    line-height: 1.3;
  }
  .invoice-document-header,
  .invoice-customer-card,
  .invoice-summary-section,
  .invoice-legal-footer,
  .invoice-anaf-section {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  a[href]::after {
    content: none !important;
  }
}
