/* Hoá đơn popup + in */
.inv-sheet {
  color: #1f2937;
  font-size: 0.92rem;
  line-height: 1.45;
}

.inv-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.inv-brand {
  font-family: var(--tchg-font-serif, Georgia, "Times New Roman", serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--tchg-primary, #5d1212);
}

.inv-number {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.inv-status {
  background: rgba(25, 135, 84, 0.12);
  color: #198754;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  white-space: nowrap;
}

.inv-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.inv-meta-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 0.15rem;
}

.inv-meta-note {
  font-size: 0.82rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.inv-parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.inv-party {
  background: #faf8f5;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
}

.inv-party-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.inv-profile {
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

.inv-table-wrap {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.inv-table thead th {
  background: #f8f5f1;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 600;
}

.inv-table td,
.inv-table th {
  padding: 0.65rem 0.85rem;
  vertical-align: top;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.inv-table tbody tr:last-child td {
  border-bottom: none;
}

.inv-table tfoot td {
  border-top: 1px solid rgba(0, 0, 0, 0.12);
  border-bottom: none;
  background: #faf8f5;
}

.text-center {
  text-align: center;
}

.text-end {
  text-align: right;
}

.fw-semibold {
  font-weight: 600;
}

.small {
  font-size: 0.875em;
}

.text-muted {
  color: #6b7280;
}

.mb-0 {
  margin-bottom: 0;
}

.mt-3 {
  margin-top: 1rem;
}

.inv-total {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--tchg-primary, #5d1212);
}

.inv-amount--deduction {
  color: #dc3545;
}

.inv-footer-note,
.inv-vat-note {
  color: #6b7280;
}

@media (max-width: 575.98px) {
  .inv-parties,
  .inv-meta-grid {
    grid-template-columns: 1fr;
  }
}
