.dashboard-title{text-align:center;margin:.35rem 0 1.4rem}.dashboard-title h1{font-size:1.5rem;font-weight:700;margin:0}
body:has(.entry-side-dialog[open]){overflow:hidden}
.entry-side-dialog{position:fixed;inset:0 0 0 auto;margin:0;width:min(420px,100vw);max-width:100vw;height:100dvh;max-height:100dvh;padding:0;border:0;border-radius:18px 0 0 18px;color:var(--ma-text);background:#fff;box-shadow:-8px 0 32px #14213d26;overflow:hidden}
.entry-side-dialog[open]{display:flex;flex-direction:column;animation:entry-slide-in .2s ease-out}
.entry-side-dialog::backdrop{background:#14213d66}
.side-dialog-heading{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.1rem;border-bottom:1px solid var(--ma-border);flex-shrink:0}
.side-dialog-heading h2{font-size:1.3rem;font-weight:700;margin:.2rem 0 0}.side-dialog-heading small{color:var(--ma-muted);font-size:.75rem}.side-dialog-heading .btn-close{padding:.75rem}
.side-dialog-content{padding:.9rem 1.1rem;overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0}
.side-dialog-footer{display:flex;gap:.5rem;padding:.8rem 1.1rem max(.8rem,env(safe-area-inset-bottom));border-top:1px solid var(--ma-border);background:#fff;flex-shrink:0}.side-dialog-footer .btn{flex:1;white-space:nowrap;font-size:.88rem}
.drawer-accounts{display:grid;gap:.65rem}.drawer-accounts .form-label{margin-bottom:.3rem}.drawer-amount-summary{display:flex;justify-content:space-between;font-size:.85rem;background:var(--ma-blue-light);padding:.75rem;border-radius:10px;margin-bottom:.9rem;gap:.5rem}
.keypad-expression{font-size:.75rem;color:var(--ma-muted);min-height:1.25rem;margin-top:.4rem}
.keypad-display{font-size:1.8rem;font-weight:650;text-align:right;background:var(--ma-bg);min-height:64px;cursor:default}.keypad-total{font-size:.8rem;text-align:right;color:var(--ma-blue);padding-top:.35rem}
.keypad-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;margin:.8rem 0 .5rem}
.keypad-digits{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.5rem}
.keypad-key{border:1px solid transparent;border-radius:10px;background:var(--ma-blue-light);color:var(--ma-blue-dark);font-size:1.35rem;min-height:52px;touch-action:manipulation;user-select:none}
.keypad-key:hover{background:#dcecff}.keypad-key:active{transform:scale(.97)}.keypad-key:focus-visible{outline:2px solid var(--ma-blue);outline-offset:1px}.keypad-key:disabled{opacity:.5}
.keypad-operation{background:var(--ma-green-light);color:var(--ma-green-dark)}.keypad-clear{background:#fef3f2;color:var(--ma-danger)}.keypad-zero{grid-column:span 2}
.amount-trigger{min-height:44px;color:var(--ma-blue);background:var(--ma-blue-light);font-weight:650}
@keyframes entry-slide-in{from{transform:translateX(100%)}to{transform:translateX(0)}}
@media(max-height:740px){.keypad-key{min-height:44px}.side-dialog-heading{padding:.65rem 1rem}.keypad-display{min-height:52px;font-size:1.5rem}}
@media(prefers-reduced-motion:reduce){.entry-side-dialog[open]{animation:none}}
.section-title{font-size:.95rem;font-weight:650;margin:0 0 1rem}.chart-box{height:310px}
.mobile-list{display:none}.compact-item{display:block;padding:1rem 0;color:var(--ma-text);text-decoration:none;border-bottom:1px solid var(--ma-border);line-height:1.7;min-width:0}
.compact-item:last-child{border-bottom:0}.compact-item[href]:hover{background:var(--ma-bg)}.compact-item:focus-visible{outline:2px solid var(--ma-blue);outline-offset:2px}
.item-heading,.item-line{display:flex;justify-content:space-between;align-items:baseline;gap:.6rem;min-width:0}.item-heading{font-size:.92rem}.item-heading strong{overflow-wrap:anywhere}
.item-amount{font-weight:650;font-variant-numeric:tabular-nums;text-align:right;flex-shrink:0}.item-amount small{font-weight:400;font-size:.7rem}
.item-line{color:var(--ma-muted);font-size:.75rem;margin-top:.3rem;flex-wrap:wrap}.item-detail{font-size:.82rem;color:var(--ma-muted);margin-top:.2rem;overflow-wrap:anywhere}.type-label{color:var(--ma-blue)}
.pagination-bar{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding-top:1rem;font-size:.8rem}
@media(max-width:767.98px){
 .mobile-list{display:block}.desktop-table{display:none}.chart-box{height:240px}
 .dashboard-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:.65rem}.dashboard-summary .summary-card{padding:.85rem}.dashboard-summary .value{font-size:1rem;overflow-wrap:anywhere}.dashboard-summary .label{font-size:.75rem}
 .page-header h1{font-size:1.3rem}.page-header{margin-bottom:1rem}.page-header p{font-size:.8rem}.filter-bar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.filter-bar>*{min-width:0}.filter-bar .filter-search{grid-column:1/-1}
 .list-card{padding:.5rem 1rem}.list-card>.section-title{padding-top:.5rem}.ma-card{border-radius:14px;box-shadow:0 2px 6px #14213d05}
 .form-control,.form-select{min-width:0;max-width:100%}.page-actions{gap:.5rem}.page-actions .btn{font-size:.8rem}
 /* Compact text-only rows for master, user and report tables. */
 .responsive-list-table,.responsive-list-table tbody,.responsive-list-table tfoot{display:block;width:100%}
 .responsive-list-table thead{display:none}
 .responsive-list-table tr{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.35rem .75rem;padding:.85rem .25rem;border-bottom:1px solid var(--ma-border)}
 .responsive-list-table tr:last-child{border-bottom:0}
 .responsive-list-table td,.responsive-list-table th{display:block;padding:0;border:0;font-size:.83rem;min-width:0;white-space:normal;overflow-wrap:anywhere;background:transparent}
 .responsive-list-table td:first-child{font-weight:650;grid-column:1}.responsive-list-table td[data-label]::before{content:attr(data-label) " ";font-size:.7rem;font-weight:400;color:var(--ma-muted)}
 .responsive-list-table .money{font-variant-numeric:tabular-nums}.responsive-list-table tfoot{border-top:1px solid var(--ma-border);font-weight:650}
 /* Report balances occupy a full row so both label and value reach the trailing edge. */
 .responsive-list-table .report-balance,.responsive-list-table td.report-account,.responsive-list-table th.report-account{grid-column:1/-1}
 .responsive-list-table td .btn{min-height:40px;font-size:.75rem}.table-responsive:has(.responsive-list-table){overflow:visible}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
h1:focus {
    outline: none;
}

/* The runtime overrides display only when a real fatal error occurs. */
#blazor-error-ui { display:none; position:fixed; bottom:0; left:0; width:100%; z-index:2000; background:#fff4e5; color:#663c00; border-top:1px solid #f5c27a; box-shadow:0 -2px 12px #0001; padding:1rem 3rem 1rem 1rem; }
#blazor-error-ui .dismiss { position:absolute; right:.5rem; top:.5rem; border:0; background:transparent; min-width:44px; min-height:44px; }

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
