/* Invoice and terms pages */
.invoice { max-width: 820px; margin: 0 auto; padding: 2.5rem 1.5rem 4rem; background: #fff; color: #17282B; }
.inv-actions { display: flex; justify-content: flex-end; margin-bottom: 1rem; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; border-bottom: 1px solid #d9ddd8; padding-bottom: 1.4rem; }
.inv-logo { height: 46px; width: auto; }
.inv-from { text-align: right; font-size: .9rem; line-height: 1.5; }
.inv-title { font-family: 'Italiana', serif; font-size: 2.4rem; margin: 1.6rem 0 1rem; letter-spacing: .02em; }
.inv-meta { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.inv-meta span { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: #5b6a6c; }
.inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 1.6rem; }
.invoice h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: #1F4A4C; margin: 0 0 .5rem; font-family: inherit; }
.invoice table { width: 100%; border-collapse: collapse; }
.inv-items th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #5b6a6c; border-bottom: 2px solid #17282B; padding: .5rem 0; }
.inv-items td { padding: .7rem 0; border-bottom: 1px solid #e6e8e4; vertical-align: top; }
.inv-items tfoot td { border-bottom: none; padding-top: .8rem; }
.inv-items tfoot tr.sub td { padding-top: .2rem; color: #5b6a6c; font-size: .92rem; }
.invoice .num { text-align: right; white-space: nowrap; padding-left: 1rem; }
.inv-schedule, .inv-pay, .inv-notes { margin-top: 1.8rem; }
.inv-schedule td { padding: .45rem 0; border-bottom: 1px solid #e6e8e4; }
.inv-missing { color: #9a5b12; font-style: italic; }
.inv-terms { margin-top: 2.6rem; border-top: 1px solid #d9ddd8; padding-top: 1.6rem; font-size: .88rem; }
.inv-terms .terms-title { font-size: 1rem; }
.terms-section h3 { font-size: .95rem; margin: 1.2rem 0 .3rem; }
.terms-section ol { margin: 0; padding-left: 1.2rem; }
.terms-section li { margin: .3rem 0; line-height: 1.55; }
.terms .terms-section h2 { font-size: 1.3rem; margin: 2rem 0 .5rem; }
.terms-summary { background: #fff; border-radius: 14px; padding: 1rem 1.4rem; margin: 1.4rem 0; border: 1px solid #e1e4e1; }
.terms-summary h2 { margin-top: 0; font-size: 1.1rem; }
@media (max-width: 600px) { .inv-grid { grid-template-columns: 1fr; } .inv-head { flex-direction: column; } .inv-from { text-align: left; } }
@media print {
  body { background: #fff; }
  .no-print { display: none !important; }
  .invoice { padding: 0; max-width: none; }
  .inv-terms { break-before: page; }
  a { color: inherit; text-decoration: none; }
}
.inv-due-box, .inv-paid-box { margin-top: 1.8rem; padding: 1.1rem 1.3rem; border-radius: 14px; background: #F2F3EF; }
.inv-paid-box { background: #e7f0ec; }
.inv-due-amount { font-size: 2rem; margin: .2rem 0; font-weight: 600; }
.inv-bank td { padding: .3rem 1rem .3rem 0; border-bottom: 1px solid #e6e8e4; }
.inv-bank td:first-child { color: #5b6a6c; width: 9rem; }
