AccountingNext/Schaad.Accounting.UI/Components/Pages/TextCleanup.razor.css
Claudio Schaad f4d9158552 Add "Texte bereinigen" page for cleaning booking texts
Stammdaten -> Texte bereinigen shows the bookings of one account in the
selected year and edits only their Text: inline, search and replace (plain or
regex with $1 groups) over the listed rows, tidying spaces, or setting one
text for selected rows. A group panel shows the first-word groups the Analyse
page will use, updated live. Saving goes through
RawDataRepository.SaveTransactionTextsAsync: refused if the file changed since
loading or a text is empty, previous version backed up, atomic save.

Opened from the menu, a button per account on Konten, and a link on the
Analyse page at account level.

Also: the content area fills the window between header and footer, so
dropdowns on short pages are no longer cut off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-22 20:31:09 +02:00

174 lines
2.4 KiB
CSS

.cleanup {
display: flex;
flex-direction: column;
gap: 10px;
}
.toolbar,
.tools {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: 8px;
}
.tools {
align-items: center;
}
.tools.bulk {
padding: 6px 10px;
background: #ebf3fc;
border-radius: 4px;
}
.year {
color: #52514e;
padding-bottom: 6px;
}
.spacer {
flex: 1;
}
.tool-message {
color: #107c10;
font-size: 13px;
}
.tool-message.error {
color: #c50f1f;
}
.main {
display: grid;
grid-template-columns: 260px minmax(0, 1fr);
gap: 12px;
align-items: start;
}
@media (max-width: 900px) {
.main {
grid-template-columns: minmax(0, 1fr);
}
}
::deep .groups,
::deep .rows {
padding: 12px;
min-width: 0;
}
.card-title {
font-weight: 600;
margin-bottom: 8px;
}
.groups table {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.groups td {
padding: 3px 2px;
border-bottom: 1px solid #f0efea;
}
.groups .name {
overflow-wrap: anywhere;
}
.groups .count,
.amount {
text-align: right;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.link {
border: none;
background: none;
padding: 0;
font: inherit;
color: #0f6cbd;
text-align: left;
cursor: pointer;
}
.link:hover,
.link:focus-visible {
text-decoration: underline;
}
.table-scroll {
overflow-x: auto;
}
.bookings {
width: 100%;
border-collapse: collapse;
font-size: 13px;
}
.bookings th {
text-align: left;
color: #52514e;
font-weight: 600;
font-size: 12px;
padding: 4px 6px;
border-bottom: 1px solid #e1e0d9;
}
.bookings td {
padding: 3px 6px;
border-bottom: 1px solid #f0efea;
vertical-align: top;
}
.bookings .check {
width: 24px;
}
.bookings .date {
white-space: nowrap;
}
.bookings .counter,
.bookings .bank {
max-width: 220px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
color: #52514e;
}
.bookings .text {
min-width: 240px;
}
.bookings .text input {
width: 100%;
box-sizing: border-box;
font: inherit;
padding: 3px 6px;
border: 1px solid #d1d1d1;
border-radius: 3px;
}
.bookings tr.changed .text input {
border-color: #0f6cbd;
background: #ebf3fc;
}
.original {
color: #898781;
font-size: 11px;
text-decoration: line-through;
padding: 1px 2px;
}
.hint {
color: #52514e;
font-size: 12px;
}