summaryrefslogtreecommitdiffstats
path: root/templates/styles.css
blob: cb0b736d9d34e7bc552a15f54e28ccc5c1452283 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
@page {
	size: A4 portrait;
	margin: 16mm;

	@bottom-right-corner {
		content: counter(page) '/' counter(pages);
		margin-left: 1em;
	}
}

@media print {
	footer {
		position: absolute;
		bottom: 0;
	}
}

@media screen {
	html {
		margin: 4em auto 4em auto;
		width: 60em;
	}

	body > section:not(:first-child) {
		margin-top: 12em;
	}
}

/* */

* {
	margin: 0;
	padding: 0;
	font-family: monospace, monospace;
	font-size: 14px;
	color: #111;
}

h1, h2, h3 {
	margin: 0;
	color: #444;
}

h2 {
	font-size: 1.2em;
}

ul li {
	list-style: none;
}

a, a:visited {
	color: #000;
}

article {
	margin-top: 2em;
	margin-bottom: 2em;
}

header article {
	margin: 0;
}

header {
	display: flex;
}

footer {
	width: 100%;
}

body > section {
	break-before: always;
}

/* table */

table * {
	vertical-align: top;
}

table {
	border-collapse: collapse;
}

table {
	width: 100%
}

/* items */

article.items table {
	width: 100%;
	margin: 4em 0 4em 0;
}

article.items table tr th:last-child,
article.items table tr td:last-child {
	text-align: right;
}

article.items table thead tr th:first-child {
	width: 60%;
}

article.items table tfoot, table thead {
	border-bottom: solid 1px black;
}

article.items table tfoot {
	border-top: solid 1px black;
}

article.items table tfoot td {
	font-weight: 700;
}

/* metadata */

article.metadata {
	width: 40%;
}

article.metadata table {
	width: 100%;
}

article.metadata table tr td:first-child {
	width: 50%;
}

/* */

article.tax table tr td:first-child,
article.bank table tr td:first-child {
	width: 20%;
}


article.company {
	width: 60%;
}

article.bank {
	padding-top: 1em;
	border-top: solid 1px #444;
}

article.annex p {
	background-color: #000;
	color: #fff;
	font-weight: 700;
}

p.comment {
	color: #444;
	margin-left: .5em;
}
remember that computers suck.