/* Printable documents: invoice, quotation, receipt voucher, reports (palette + A4 sheet) */
  .doc-trn { font-size: 13px; font-weight: 700; color: #222; margin-top: 4px; text-align: right; }
  .doc-infobar { display: grid; grid-template-columns: 1.4fr 1fr; background: #ECECEC; margin-top: 4px; }
  .doc-infobar > div { padding: 12px 16px; }
  .doc-infobar > div:first-child { border-right: 1px solid #D8D8D8; }
  .doc-fieldlabel { font-size: 12.5px; font-weight: 700; color: #444; }
  .doc-fieldrow { display: flex; font-size: 12.5px; color: #333; margin-top: 6px; }
  .doc-fieldrow .k { width: 90px; font-weight: 700; color: #444; flex-shrink: 0; }
  table.doc-table { width: 100%; border-collapse: collapse; margin-top: 2px; }
  .doc-table th { background: #DCDCDC; font-size: 11px; font-weight: 700; padding: 8px; border: 1px solid #D8D8D8; color: #333; }
  .doc-table td { font-size: 12px; padding: 7px 8px; border: 1px solid #E4E4E4; color: #222; }
  .doc-footerbar { display: grid; grid-template-columns: 1.4fr 1fr; background: #ECECEC; margin-top: -1px; }
  .doc-footerbar > div { padding: 12px 16px; }
  .doc-totalrow { display: flex; justify-content: space-between; font-size: 12.5px; padding: 2px 0; }
  .doc-totalrow.net { font-weight: 800; font-size: 13.5px; border-top: 1px solid #C9C9C9; margin-top: 4px; padding-top: 6px; }
  .doc-bankbox { background: #ECECEC; margin-top: 4px; padding: 12px 16px; font-size: 12px; color: #333; }
  .doc-signrow { display: flex; justify-content: space-between; margin-top: 28px; padding: 0 4px; }
  .doc-signfor { text-align: right; font-weight: 700; color: var(--brand-orange); font-size: 13px; }
  .doc-bottombar { display: flex; height: 10px; margin-top: 30px; }

  /* ---- A4 sheet: items area stretches so totals / T&C / signatures always sit at the bottom ---- */
  .doc-sheet.doc-a4 { min-height: 1103px; }
  .doc-a4 .doc-items { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
  .doc-a4 .doc-items > table { flex: 1 1 auto; }
  .doc-a4 tr.doc-fill { height: 100%; }
  .doc-a4 tr.doc-fill td { padding: 0; border-top: 0; border-bottom: 0; }
  .doc-a4 .doc-header { align-items: center !important; }
  .doc-a4 .doc-logo { height: 100px; max-width: 50%; object-fit: contain; object-position: left center; }
  .doc-a4 .doc-bottom { flex: none; break-inside: avoid; page-break-inside: avoid; }

  .inv-socialbar { background: #111; color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 9px 18px; font-size: 11.5px; }

  .qp-title { font-size: 22px; font-weight: 800; color: #17130F; text-align: right; letter-spacing: 0.01em; margin-top: 6px; }
  .qp-infobox { display: grid; grid-template-columns: 58% 42%; background: #fff; margin-top: 12px; border: 1px solid #100F0D; }
  .qp-infobox > div { padding: 10px 14px; }
  .qp-col-left { border-right: 1px solid #100F0D; }
  .qp-field { display: flex; font-size: 11.5px; color: #222; margin-bottom: 7px; }
  .qp-field .k { width: 92px; font-weight: 700; color: #17130F; flex-shrink: 0; }
  table.qp-table { width: 100%; border-collapse: collapse; margin-top: 12px; border: 1px solid #100F0D; table-layout: fixed; }
  .qp-table th { background: #FCD7BF; color: #17130F; font-size: 9.5px; font-weight: 700; padding: 7px 5px; text-align: left; border: 1px solid #100F0D; }
  .qp-table td { font-size: 10.5px; padding: 6px 5px; border: 1px solid #100F0D; color: #222; word-wrap: break-word; }
  .qp-totalbar { display: flex; justify-content: space-between; background: #fff; border: 1px solid #100F0D; border-top: none; padding: 9px 14px; font-size: 12px; font-weight: 700; color: #17130F; }
  .qp-terms { margin-top: 12px; font-size: 10.5px; color: #222; border: 1px solid #100F0D; padding: 10px 14px; }
  .qp-terms ul { margin: 6px 0 0 18px; padding: 0; }
  .qp-terms li { margin-bottom: 4px; }
  .qp-signrow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 46px; text-align: center; }
  .qp-signrow > div { border-top: 1px dashed #999; padding-top: 6px; font-size: 10.5px; color: #444; }
  .qp-footerband { background: #211D1D; color: #fff; text-align: center; padding: 14px 20px 4px 20px; margin-top: 26px; font-size: 11px; line-height: 1.6; }
  .qp-footerband .brand-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.2); margin-top: 10px; padding: 10px 4px; font-size: 10.5px; }

  .rv-sheet { background: #fff; color: #222; font-family: Arial, Helvetica, sans-serif; width: 100%; max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; padding: 4px; }
  .rv-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; border-bottom: 2px solid #211D1D; padding-bottom: 10px; margin-bottom: 12px; }
  .rv-logo { height: 46px; object-fit: contain; }
  .rv-title { font-size: 18px; font-weight: 800; color: #17130F; text-align: right; }
  .rv-bizinfo { font-size: 10px; color: #555; margin-top: 4px; line-height: 1.4; }
  .rv-toprow { display: flex; gap: 24px; margin-bottom: 8px; }
  .rv-field { font-size: 11.5px; color: #222; margin-bottom: 7px; display: flex; gap: 4px; }
  .rv-field .k { font-weight: 700; color: #17130F; min-width: 88px; }
  .rv-amountbox { border: 1px solid #100F0D; margin: 10px 0; padding: 8px 12px; }
  .rv-amountfigure { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
  .rv-amountfigure .k { font-weight: 700; font-size: 11.5px; }
  .rv-wordsrow { display: flex; gap: 26px; font-size: 11px; border-top: 1px dashed #ccc; padding-top: 6px; }
  .rv-wordsrow .k { font-weight: 700; margin-right: 4px; }
  .rv-modelow { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 6px; }
  .rv-spacer { flex: 1 1 auto; min-height: 8px; }
  .rv-signrow { display: flex; justify-content: space-between; margin-top: 30px; font-size: 11px; color: #444; }
  .rv-signrow > div { border-top: 1px solid #999; padding-top: 6px; min-width: 160px; text-align: center; }
  .rv-footerband { background: #211D1D; color: #fff; text-align: center; padding: 8px 14px 3px 14px; margin-top: 14px; font-size: 9.5px; line-height: 1.5; }
  .rv-footerband .brand-row { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,0.2); margin-top: 6px; padding: 6px 2px; font-size: 9.5px; }

  .rpt-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; border-bottom: 2px solid #211D1D; padding-bottom: 10px; margin-bottom: 6px; }
  .rpt-logo { height: 42px; object-fit: contain; }
  .rpt-title { font-size: 16px; font-weight: 800; color: #17130F; text-align: right; }
  .rpt-meta { font-size: 10.5px; color: #777; margin-top: 4px; }

  /* ---- Print template palette (from the approved Sales Quotation): orange #F1511B, peach #FCD7BF, black #100F0D, dark #211D1D ---- */
  .doc-sheet, .rv-sheet { --brand-orange: #F1511B; color: #231F20; }
  .doc-infobar, .doc-footerbar, .doc-bankbox { background: #fff; border: 1px solid #100F0D; }
  .doc-infobar { margin-top: 4px; }
  .doc-footerbar { margin-top: -1px; }
  .doc-infobar > div:first-child { border-right: 1px solid #100F0D; }
  .doc-fieldlabel, .doc-fieldrow .k, .qp-field .k, .rv-field .k, .rv-amountfigure .k, .rv-wordsrow .k { color: #F1511B; }
  .doc-table th { background: #FCD7BF; color: #F1511B; border: 1px solid #100F0D; }
  .doc-table td { border: 1px solid #100F0D; color: #231F20; }
  .doc-totalrow.net { border-top: 1px solid #100F0D; }
  .qp-table th { color: #F1511B; }
  .qp-title { display: inline-block; background: #F1511B; color: #fff; padding: 7px 18px; border-radius: 4px; font-size: 17px; letter-spacing: 0.02em; margin-top: 0; }
  .qp-totalbar { color: #231F20; }
  .qp-terms strong { color: #231F20; }
  .inv-socialbar { background: #211D1D; }
  .qp-footerband { background: none !important; padding: 0 !important; text-align: left !important; }
  .qp-footbar { background: #211D1D; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 18px; font-size: 10px; line-height: 1.5; }
  .qp-footbar .fb-c { text-align: center; }

