.invoice-sheet { width: min(100%, 760px); margin: 0 auto; padding: 30px; background: #fff; color: #1d1a18; font: 13px/1.5 'Inter', system-ui, sans-serif; }
.invoice-sheet * { box-sizing: border-box; }
.invoice-sheet__header { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 22px; border-bottom: 2px solid #1d1a18; }
.invoice-sheet__brand { display: flex; align-items: center; gap: 10px; }
.invoice-sheet__logo { width: 54px; height: 48px; object-fit: contain; }
.invoice-sheet__brand strong { display: block; font-size: 21px; line-height: 1.1; letter-spacing: -.04em; }
.invoice-sheet__brand small { display: block; margin-top: 4px; color: #70655f; font-size: 11px; }
.invoice-sheet__title { text-align: right; }
.invoice-sheet__title strong { display: block; font-size: 22px; line-height: 1.1; }
.invoice-sheet__title small { color: #70655f; }
.invoice-sheet__accent { height: 5px; width: 56px; margin: 18px 0; border-radius: 999px; background: #ff5a00; }
.invoice-sheet__meta { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 22px; }
.invoice-sheet__label { margin: 0 0 6px; color: #8b807a; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.invoice-sheet__meta strong { display: block; font-size: 14px; }
.invoice-sheet__meta p { margin: 2px 0; overflow-wrap: anywhere; }
.invoice-sheet__section-title { margin: 0 0 9px; font-size: 14px; font-weight: 800; }
.invoice-sheet__table { width: 100%; border-collapse: collapse; }
.invoice-sheet__table th { padding: 9px 7px; border-bottom: 1px solid #eadfd8; color: #70655f; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-align: left; text-transform: uppercase; }
.invoice-sheet__table td { padding: 10px 7px; border-bottom: 1px solid #f1e8e1; vertical-align: top; }
.invoice-sheet__table th:last-child, .invoice-sheet__table td:last-child { text-align: right; white-space: nowrap; }
.invoice-sheet__table th:nth-child(2), .invoice-sheet__table td:nth-child(2) { text-align: center; }
.invoice-sheet__item-name { display: block; font-weight: 700; }
.invoice-sheet__item-detail { display: block; color: #70655f; font-size: 11px; }
.invoice-sheet__totals { width: min(100%, 330px); margin: 20px 0 20px auto; }
.invoice-sheet__row { display: flex; justify-content: space-between; gap: 14px; margin: 7px 0; }
.invoice-sheet__row span:last-child { text-align: right; white-space: nowrap; }
.invoice-sheet__row--saving { color: #b34808; }
.invoice-sheet__row--total { margin-top: 12px; padding: 12px 0; border-top: 2px solid #1d1a18; font-size: 17px; font-weight: 800; }
.invoice-sheet__tax { padding: 13px 15px; border: 1px solid #eadfd8; border-radius: 10px; background: #fffaf6; }
.invoice-sheet__tax p { margin: 0 0 8px; font-weight: 700; }
.invoice-sheet__tax .invoice-sheet__table th, .invoice-sheet__tax .invoice-sheet__table td { padding: 5px 4px; font-size: 11px; }
.invoice-sheet__footer { margin-top: 24px; padding-top: 15px; border-top: 1px dashed #d9c8bc; color: #70655f; font-size: 11px; }
.invoice-sheet__footer strong { color: #1d1a18; }
.invoice-sheet__footer p { margin: 4px 0; }

@media (max-width: 560px) {
  .invoice-sheet { padding: 18px; }
  .invoice-sheet__meta { gap: 12px; }
  .invoice-sheet__logo { width: 44px; height: 42px; }
  .invoice-sheet__title strong { font-size: 18px; }
}
@media print {
  @page { size: A4; margin: 12mm; }
  .invoice-sheet { width: 100%; margin: 0; padding: 0; box-shadow: none; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .invoice-sheet__table thead { display: table-header-group; }
  .invoice-sheet__table tr, .invoice-sheet__meta, .invoice-sheet__totals, .invoice-sheet__tax { break-inside: avoid; }
  body.invoice-print-mode > :not(#customerInvoice) { display: none !important; }
  body.invoice-print-mode #customerInvoice { display: block !important; }
}
