/* Tooltips de Plotly amb cantonades arrodonides i fons fosc
   (abans: fill: red — pintava TOTS els tooltips de vermell) */
.hoverlayer .hoverlabel rect {
    fill: #1A1F29 !important;
    stroke: #2B313C !important;
    rx: 10px;
    ry: 10px;
}

.hoverlayer .hoverlabel text {
    fill: #FFFFFF !important;
}

/* El número i el període ocupen dues línies, sense partir les dates. */
:is(#income-table, #gastos-table, #cash-table, #assets-units-table)
  td[data-dash-column="Semana"] {
    padding: 4px 3px !important;
}
:is(#income-table, #gastos-table, #cash-table, #assets-units-table)
  td[data-dash-column="Semana"] .cell-markdown p {
    margin: 0 !important;
    white-space: nowrap !important;
    font-size: 10px !important;
    line-height: 14px !important;
    text-align: center;
}
:is(#income-table, #gastos-table, #cash-table, #assets-units-table)
  td[data-dash-column="Semana"] .cell-markdown strong {
    font-size: 14px;
}

:is(#income-table, #gastos-table, #cash-table, #assets-units-table) th[data-dash-column^="val_"],
:is(#income-table, #gastos-table, #cash-table, #assets-units-table) th[data-dash-column^="unit_"] { cursor: pointer; }
:is(#income-table, #gastos-table, #cash-table, #assets-units-table) th.register-column-picked { box-shadow: inset 0 -3px #3b82f6; }
