Files
bin/finance/app/static/style.css

160 lines
2.1 KiB
CSS

* { box-sizing: border-box; }
body {
font-family: system-ui, sans-serif;
max-width: 960px;
margin: 0 auto;
padding: 1rem;
color: #222;
background: #fff;
}
nav {
display: flex;
gap: 1rem;
align-items: center;
border-bottom: 1px solid #ccc;
padding-bottom: 0.5rem;
margin-bottom: 1rem;
}
nav a {
text-decoration: none;
color: #06c;
}
nav form {
margin-left: auto;
}
table {
border-collapse: collapse;
width: 100%;
margin-bottom: 1.5rem;
}
th, td {
border: 1px solid #ddd;
padding: 0.4rem 0.6rem;
text-align: left;
}
th {
background: #f2f2f2;
}
tr:nth-child(even) {
background: #fafafa;
}
.neg {
color: #b00;
}
.amount {
text-align: right;
}
td.account {
word-break: break-all;
max-width: 12rem;
}
.warning {
background: #fff3cd;
border: 1px solid #e0c26b;
padding: 0.75rem 1rem;
margin-bottom: 1rem;
border-radius: 4px;
}
.total-balance {
font-size: 1.5rem;
font-weight: bold;
margin-bottom: 1rem;
}
fieldset {
margin-bottom: 1.5rem;
}
form.filter-form {
display: flex;
flex-wrap: wrap;
gap: 0.5rem;
align-items: end;
margin-bottom: 1rem;
}
form.filter-form label {
display: flex;
flex-direction: column;
font-size: 0.85rem;
}
iframe.grafana {
width: 100%;
height: 480px;
border: 1px solid #ccc;
}
button {
cursor: pointer;
}
.badge {
display: inline-block;
padding: 0.15rem 0.6rem;
border-radius: 999px;
font-size: 0.85rem;
}
.badge-warning {
background: #fff3cd;
color: #7a5c00;
}
.badge-error {
background: #fdecea;
color: #b00020;
}
.badge-ok {
background: #e6f4ea;
color: #1e7e34;
}
#dropzone {
border: 2px dashed #999;
border-radius: 8px;
padding: 2rem;
text-align: center;
cursor: pointer;
margin-bottom: 0.5rem;
color: #555;
}
#dropzone.dragover {
background: #f0f6ff;
border-color: #06c;
}
.inline-form {
display: inline-block;
margin-right: 0.5rem;
}
section.planning-section {
margin-bottom: 2rem;
}
section.planning-section fieldset {
margin-top: 0.75rem;
}
.version {
margin-top: 2rem;
color: #888;
font-size: 0.85rem;
}