Add travel-expense letter template with RTL amount list.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-06 13:45:11 +03:30
parent 46505eb3ee
commit 2db757877a
5 changed files with 213 additions and 6 deletions

View File

@@ -41,6 +41,20 @@ h1, h2, h3 {
line-height: 1.4;
}
p {
margin: 0.5em 0 0.85em 0;
}
ul, ol {
margin: 0.5em 0 0.9em 0;
padding-right: 1.4em;
padding-left: 0;
}
li {
margin: 0.35em 0;
}
/* Quarto default title — replaced by .print-title-block (same as PDF) */
#title-block-header,
header#title-block-header,
@@ -149,6 +163,74 @@ tbody tr + tr td {
border-top: 1px solid var(--stroke);
}
.table-body-right tbody td {
text-align: right;
}
/* Letter date / signature — left edge (Word jc=end / left block) */
.letter-date {
margin: 0 0 1.25rem 0;
}
.letter-date p,
.letter-signature p {
text-align: left;
}
.letter-signature {
margin: 5rem 0 0 0;
padding-left: 2.5rem;
}
/* Expense amounts: bullet | desc | : amount | currency (Word tab columns) */
.expense-amounts {
margin: 2.7rem 0 3rem 0;
padding-right: 2.5rem;
direction: rtl;
}
.expense-amounts > ul {
list-style: circle;
margin: 0;
padding-right: 4.2em;
padding-left: 0;
direction: rtl;
}
.expense-amounts li {
direction: rtl;
unicode-bidi: embed;
margin: 0.45em 0;
}
.expense-amounts .desc,
.expense-amounts .amount,
.expense-amounts .currency {
direction: rtl;
unicode-bidi: isolate;
}
.expense-amounts .desc {
display: inline-block;
min-width: 12.5rem;
text-align: right;
}
.expense-amounts .amount {
display: inline-block;
min-width: 8.5rem;
font-variant-numeric: tabular-nums;
text-align: right;
white-space: nowrap;
}
.expense-amounts .currency {
display: inline-block;
min-width: 2.5rem;
text-align: right;
white-space: nowrap;
}
/* Keep compound LTR numerics (e.g. 0.850 ± 0.05) in visual LTR order inside RTL tables */
table [dir="ltr"],
table .ltr {