- View switch Ausgaben | Einnahmen | Netto | Vermögen (URL: view=).
ExpenseAnalysis becomes AccountingAnalysis:
- Income: bookings from income accounts positive, to them negative
- Net: income positive, expenses negative, ordered by size; bar chart with
a net line, savings-rate tile, no treemap (areas can't be negative)
- Assets: month-end balances of asset accounts in CHF (foreign balances
converted once per currency, like the balance sheet); periods take their
last balance, drill-down ends at the account
- Change colours follow the view: more expenses red, more income/assets green
- Old Vermögen chart page and its menu entry removed
- Narrow screens: side menu starts collapsed below 700px, slimmer header,
wrapping button groups, two KPI tiles per row, pinned name column in the
year table
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
311 lines
4.5 KiB
CSS
311 lines
4.5 KiB
CSS
.analytics {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 16px;
|
|
}
|
|
|
|
.toolbar {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-end;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.filters {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.segmented {
|
|
display: flex;
|
|
gap: 2px;
|
|
margin-left: 8px;
|
|
}
|
|
|
|
.kpis {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
|
|
gap: 12px;
|
|
}
|
|
|
|
::deep .kpi {
|
|
padding: 14px 16px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.kpi-label {
|
|
color: #52514e;
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.04em;
|
|
}
|
|
|
|
.kpi-value {
|
|
font-size: 24px;
|
|
font-weight: 600;
|
|
margin: 4px 0 2px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.kpi-name,
|
|
.ellipsis {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.kpi-value.worse {
|
|
color: #c50f1f;
|
|
}
|
|
|
|
.kpi-value.better {
|
|
color: #107c10;
|
|
}
|
|
|
|
.kpi-sub {
|
|
color: #52514e;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.main {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 2.2fr) minmax(260px, 1fr);
|
|
gap: 12px;
|
|
align-items: start;
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.main {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
}
|
|
|
|
::deep .chart-card,
|
|
::deep .list-card {
|
|
padding: 16px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.card-title {
|
|
font-weight: 600;
|
|
font-size: 15px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.hint,
|
|
.empty {
|
|
color: #52514e;
|
|
font-size: 12px;
|
|
margin-top: 8px;
|
|
}
|
|
|
|
.categories {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
|
|
.categories td {
|
|
padding: 6px 4px;
|
|
border-bottom: 1px solid #e1e0d9;
|
|
vertical-align: top;
|
|
}
|
|
|
|
.categories tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.swatch-cell {
|
|
width: 14px;
|
|
}
|
|
|
|
.swatch {
|
|
display: inline-block;
|
|
width: 10px;
|
|
height: 10px;
|
|
border-radius: 3px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.name a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.name a:hover,
|
|
.name a:focus-visible {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.share-bar {
|
|
height: 4px;
|
|
background: #f0efea;
|
|
border-radius: 2px;
|
|
margin-top: 4px;
|
|
}
|
|
|
|
.share-bar > div {
|
|
height: 100%;
|
|
border-radius: 2px;
|
|
}
|
|
|
|
.amount {
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.share {
|
|
color: #52514e;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.pair {
|
|
display: grid;
|
|
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
|
|
gap: 12px;
|
|
}
|
|
|
|
@media (max-width: 1100px) {
|
|
.pair {
|
|
grid-template-columns: minmax(0, 1fr);
|
|
}
|
|
}
|
|
|
|
.card-header {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
margin-bottom: 12px;
|
|
}
|
|
|
|
.card-header .card-title {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.segmented.small {
|
|
margin-left: 0;
|
|
}
|
|
|
|
::deep .table-card {
|
|
padding: 16px;
|
|
min-width: 0;
|
|
}
|
|
|
|
.table-scroll {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.years {
|
|
width: 100%;
|
|
border-collapse: separate;
|
|
border-spacing: 2px;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
.years th,
|
|
.years td {
|
|
padding: 6px 8px;
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.years thead th {
|
|
color: #52514e;
|
|
font-weight: 600;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.years .name {
|
|
text-align: left;
|
|
font-weight: normal;
|
|
max-width: 280px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.years thead .name {
|
|
font-weight: 600;
|
|
}
|
|
|
|
.years .name a {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.years .name a:hover,
|
|
.years .name a:focus-visible {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.years .total {
|
|
font-weight: 600;
|
|
border-left: 1px solid #e1e0d9;
|
|
}
|
|
|
|
.years tfoot th,
|
|
.years tfoot td {
|
|
font-weight: 600;
|
|
border-top: 1px solid #e1e0d9;
|
|
}
|
|
|
|
.years .zero {
|
|
color: #c4c3be;
|
|
}
|
|
|
|
.change {
|
|
font-size: 11px;
|
|
color: #52514e;
|
|
min-height: 14px;
|
|
}
|
|
|
|
.change.worse {
|
|
color: #c50f1f;
|
|
}
|
|
|
|
.change.better {
|
|
color: #107c10;
|
|
}
|
|
|
|
.segmented.views {
|
|
margin-left: 0;
|
|
}
|
|
|
|
/* Narrow screens: button groups and the category list wrap instead of widening the page. */
|
|
.segmented {
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.categories .name {
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
@media (max-width: 600px) {
|
|
.segmented {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.kpis {
|
|
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
|
|
}
|
|
|
|
.kpi-value {
|
|
font-size: 20px;
|
|
}
|
|
}
|
|
|
|
/* Year table on a phone: a narrow name column that stays in place while the years scroll. */
|
|
@media (max-width: 600px) {
|
|
.years .name {
|
|
max-width: 120px;
|
|
position: sticky;
|
|
left: 0;
|
|
z-index: 1;
|
|
background: #ffffff;
|
|
}
|
|
}
|