Files
business-report-templates/styles/report.css
2026-07-27 14:49:48 +03:30

198 lines
3.5 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;
}
/* 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);
}
/* 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;
}
}