280 lines
4.8 KiB
CSS
280 lines
4.8 KiB
CSS
@font-face {
|
|
font-family: "IRNazanin";
|
|
src: url("../assets/fonts/IRNazanin.ttf") format("truetype");
|
|
font-weight: normal;
|
|
font-style: normal;
|
|
}
|
|
|
|
@font-face {
|
|
font-family: "IRNazanin";
|
|
src: url("../assets/fonts/IRNazanin-Bold.ttf") format("truetype");
|
|
font-weight: bold;
|
|
font-style: normal;
|
|
}
|
|
|
|
:root {
|
|
--text: #1f2328;
|
|
--text2: #57606a;
|
|
--stroke: #d0d7de;
|
|
--bg: #ffffff;
|
|
--fill: #f6f8fa;
|
|
}
|
|
|
|
html {
|
|
direction: rtl;
|
|
lang: fa;
|
|
}
|
|
|
|
body {
|
|
font-family: "IRNazanin", "Tahoma", sans-serif;
|
|
font-size: 1.05rem;
|
|
line-height: 1.7;
|
|
max-width: 48rem;
|
|
margin: 2rem auto;
|
|
padding: 0 1.25rem;
|
|
color: var(--text);
|
|
background: var(--bg);
|
|
}
|
|
|
|
h1, h2, h3 {
|
|
font-weight: bold;
|
|
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,
|
|
.quarto-title-block,
|
|
.quarto-title,
|
|
.quarto-title-meta,
|
|
.quarto-title-meta-contents,
|
|
header.quarto-title-block,
|
|
h1.title,
|
|
p.subtitle,
|
|
p.author,
|
|
.quarto-title-meta-author {
|
|
display: none;
|
|
}
|
|
|
|
/* Screen header — same markup/layout as PDF .print-title-block */
|
|
.print-title-block {
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
align-items: flex-start;
|
|
width: 100%;
|
|
margin: 0 0 1.5rem 0;
|
|
padding-bottom: 3.4rem;
|
|
border-bottom: 1px solid #999999;
|
|
direction: ltr;
|
|
}
|
|
|
|
.print-title-block .title-text {
|
|
direction: rtl;
|
|
text-align: right;
|
|
line-height: 1.15;
|
|
flex: 1 1 auto;
|
|
}
|
|
|
|
.print-title-block .company-line {
|
|
font-size: 2.15rem;
|
|
font-weight: bold;
|
|
margin: 0;
|
|
color: var(--text);
|
|
}
|
|
|
|
.print-title-block .company-line .subtitle {
|
|
display: inline;
|
|
font-size: 1.4rem;
|
|
font-weight: normal;
|
|
color: var(--text);
|
|
}
|
|
|
|
.print-title-block .report-title {
|
|
font-size: 1.4rem;
|
|
font-weight: bold;
|
|
margin: 0.2rem 0 0 0;
|
|
color: var(--text);
|
|
}
|
|
|
|
.print-title-block .logo {
|
|
height: 3.4rem;
|
|
width: auto;
|
|
}
|
|
|
|
.report-meta {
|
|
margin: 1.5rem 0;
|
|
padding: 1rem 1.25rem;
|
|
background: #f6f6f6;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.report-meta dt {
|
|
font-weight: bold;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.report-meta dd {
|
|
margin: 0.15rem 0 0.5rem 0;
|
|
}
|
|
|
|
/* Match Inco Mixed ICJ108 HTML table chrome */
|
|
table {
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
width: 100%;
|
|
margin: 1rem 0;
|
|
border: 1px solid var(--stroke);
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
th, td {
|
|
padding: 0.55rem 0.75rem;
|
|
text-align: center;
|
|
font-size: 1.05rem;
|
|
font-variant-numeric: tabular-nums;
|
|
border: none;
|
|
}
|
|
|
|
thead th {
|
|
background: var(--fill);
|
|
font-size: 1rem;
|
|
color: var(--text2);
|
|
border-bottom: 1px solid var(--stroke);
|
|
line-height: 1.35;
|
|
}
|
|
|
|
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 {
|
|
direction: ltr;
|
|
unicode-bidi: isolate;
|
|
display: inline-block;
|
|
}
|
|
|
|
/* Summary / callout box — same chrome as tables */
|
|
.summary-box {
|
|
border: 1px solid var(--stroke);
|
|
border-radius: 8px;
|
|
background: var(--fill);
|
|
padding: 0.85rem 1.1rem;
|
|
margin: 1rem 0;
|
|
color: var(--text);
|
|
}
|
|
|
|
.summary-box > :first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.summary-box > :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.summary-box [dir="ltr"],
|
|
.summary-box .ltr {
|
|
direction: ltr;
|
|
unicode-bidi: isolate;
|
|
display: inline-block;
|
|
}
|
|
|
|
code {
|
|
direction: ltr;
|
|
unicode-bidi: embed;
|
|
}
|
|
|
|
/* Running header / sidebar are PDF-only; title block stays visible on screen */
|
|
@media screen {
|
|
.print-running-header,
|
|
.print-sidebar,
|
|
.print-only {
|
|
display: none !important;
|
|
}
|
|
}
|