/* years screens: rules beyond src/ui/style.css (Salaris, Inkomen sinds 1995, Belastingjaar). */

/* the year chips with the downloads at the right */
.yearbar { align-items: center; }
.yearbar .grow { flex: 1; }
.chip.download svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip[aria-busy="true"], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }

/* the tabs are buttons here: the tab is in the address, changed in place */
.tabsline button {
  font: inherit; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px;
  padding: 10px 14px; min-height: 44px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.tabsline button.on { color: var(--fg); border-color: var(--fg); font-weight: 600; }
.taxyear .notice.running { margin-top: 12px; }

/* a tax line: what it is and what it rests on at the left, the figure at the right */
.taxline { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.taxline:last-child { border-bottom: 0; }
.taxline .l { min-width: 0; }
.taxline .lbl { color: var(--fg); }
.taxline .src { color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.taxline .v { white-space: nowrap; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.taxline .v.missing { color: var(--amber-fg); font-weight: 500; white-space: normal; text-align: right; }
.taxline .tag { height: 18px; }

/* Salaris */
.salary .statement { font-size: 13px; }
.salary-months td.slip { white-space: nowrap; }
.salary .sub { margin-bottom: 4px; }
.salary .kv + .card { margin-top: 12px; }
/* an opened month is as wide as its table, so the table may not be wider than the phone */
.salary-months td .small { white-space: normal; }
.salary-months td.slip .small { max-width: 9em; }
@media (max-width: 480px) {
  .salary-months th, .salary-months td { padding-left: 3px; padding-right: 3px; }
  .salary-months td.slip { white-space: normal; padding-right: 0; }
}
.salary-months td.rowopen { padding: 6px 10px 10px; }
.taxline.sum { border-top: 1px solid var(--muted); border-bottom: 0; }
.taxline.sum .lbl { font-weight: 600; }
.payslip .taxline, .year-pay .taxline { padding: 6px 0; }
.payslip .taxline:not(.sum) .v, .year-pay .taxline:not(.sum) .v { font-weight: 500; }
.bonuses > .small:last-child { margin-top: 8px; }

/* Inkomen: a year opened below the chart */
.income .chart { margin-top: 8px; }
.income-year .rowopen { margin: 10px -16px -14px; border-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }
.income-year h3 { margin: 8px 0 4px; font-size: 15px; }

/* the dossier */
.tax-dossier .section > h2 .count { margin-left: auto; }
.doc .nm .doclink { min-width: 0; }
