@import url('fonts.css');


#figure-center{
    text-align: center;
}
#figure-right{
    text-align: right;
}
html, body {
    font-family: 'Poppins', sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #00B1F3;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

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

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.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."
    }

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #00B1F3;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }
.btn-fab-rounded {
    width: 200px;
    height: 50px;
    border-radius: 10px;
}

.fab {
    position: fixed;
    bottom: 65px;
    right: 5px;
    padding: 20px;
    animation: bot-to-top 2s ease-out;
}

.fab-sync {
    position: fixed;
    bottom: 5px;
    right: 5px;
    padding: 20px;
    animation: bot-to-top 2s ease-out;
}

.fabs-container {
    position: fixed;
    bottom: 0px;
    right: 0px;
    z-index: 9999;
    cursor: pointer;
}

.fab-options {
    list-style-type: none;
    margin: 0;
    position: absolute;
    bottom: 50px;
    right: 0;
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0);
    transform-origin: 85% bottom;
}

    .fab:hover + .fab-options,
    .fab-options:hover {
        opacity: 1;
        transform: scale(1);
    }

    .fab-options li {
        display: flex;
        justify-content: flex-end;
        padding: 5px;
    }


.loader-container {
    width: 100%;
    min-height: 50vh;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background-repeat: no-repeat;
    background-position: right;
    background-size: cover;
}

.loader-main {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: inline-block;
    border-top: 4px solid #00B1F3;
    border-right: 4px solid transparent;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border-bottom: 4px solid #00B1F3;
    border-left: 4px solid transparent;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#figure {
    text-align: right;
}

/* Sync */
.sync-container {
    width: 400px;
    position: fixed;
    right: 0;
    left: 0;
    padding: 20px;
    z-index: 200;
    margin: 15% auto;
    cursor: wait;
    animation: show_toast 1s ease-in-out backwards;
    backdrop-filter: blur(15px);
}

.sync-child {
    position: relative;
    left: -50%;
}

@keyframes show_toast {
    0% {
        transform: translateX(-100%);
    }

    40% {
        transform: translateX(10%);
    }

    80%, 100% {
        transform: translateX(20px);
    }
}

/* Dashboard Design System & Adaptive Theme Tokens */
:root {
    color-scheme: light dark;
    --amqa-surface: var(--mud-palette-surface, #ffffff);
    --amqa-surface-subtle: #f8fafc;
    --amqa-surface-elevated: #ffffff;
    --amqa-banner-bg: linear-gradient(135deg, rgba(0, 177, 243, 0.11) 0%, rgba(74, 134, 255, 0.05) 55%, rgba(255, 255, 255, 0.92) 100%);
    --amqa-banner-border: rgba(0, 177, 243, 0.22);
    --amqa-border: rgba(15, 23, 42, 0.09);
    --amqa-border-strong: rgba(0, 177, 243, 0.38);
    --amqa-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 16px -4px rgba(15, 23, 42, 0.05);
    --amqa-shadow-hover: 0 12px 28px -8px rgba(15, 23, 42, 0.14);
    --amqa-focus-ring: #0284c7;
    --amqa-text-primary: #0f172a;
    --amqa-text-secondary: #475569;
    --amqa-text-muted: #475569;
    --amqa-pin-bg: #e0e7ff;
    --amqa-pin-fg: #1e1b4b;
    --amqa-pin-border: rgba(79, 70, 229, 0.28);
    --amqa-phone-bg: #e0f2fe;
    --amqa-phone-fg: #0c4a6e;
    --amqa-tag-bg: #e2e8f0;
    --amqa-tag-fg: #1e293b;
}

@supports (color: light-dark(white, black)) {
    :root {
        --amqa-surface-subtle: light-dark(#f8fafc, #242436);
        --amqa-surface-elevated: light-dark(#ffffff, #1e1e2d);
        --amqa-border: light-dark(rgba(15, 23, 42, 0.09), rgba(255, 255, 255, 0.1));
        --amqa-text-primary: light-dark(#0f172a, #e2e8f0);
        --amqa-text-secondary: light-dark(#475569, #cbd5e1);
        --amqa-text-muted: light-dark(#475569, #cbd5e1);
        --amqa-pin-bg: light-dark(#e0e7ff, rgba(99, 102, 241, 0.22));
        --amqa-pin-fg: light-dark(#1e1b4b, #e0e7ff);
        --amqa-pin-border: light-dark(rgba(79, 70, 229, 0.28), rgba(165, 180, 252, 0.35));
        --amqa-phone-bg: light-dark(#e0f2fe, rgba(14, 165, 233, 0.2));
        --amqa-phone-fg: light-dark(#0c4a6e, #bae6fd);
        --amqa-tag-bg: light-dark(#e2e8f0, rgba(148, 163, 184, 0.2));
        --amqa-tag-fg: light-dark(#1e293b, #e2e8f0);
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --amqa-surface-subtle: #242436;
        --amqa-surface-elevated: #1e1e2d;
        --amqa-banner-bg: linear-gradient(135deg, rgba(0, 177, 243, 0.16) 0%, rgba(30, 30, 45, 0.88) 100%);
        --amqa-banner-border: rgba(0, 177, 243, 0.28);
        --amqa-border: rgba(255, 255, 255, 0.1);
        --amqa-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);
        --amqa-shadow-hover: 0 14px 30px -6px rgba(0, 0, 0, 0.5);
        --amqa-focus-ring: #38bdf8;
        --amqa-text-primary: #e2e8f0;
        --amqa-text-secondary: #cbd5e1;
        --amqa-text-muted: #cbd5e1;
        --amqa-pin-bg: rgba(99, 102, 241, 0.22);
        --amqa-pin-fg: #e0e7ff;
        --amqa-pin-border: rgba(165, 180, 252, 0.35);
        --amqa-phone-bg: rgba(14, 165, 233, 0.2);
        --amqa-phone-fg: #bae6fd;
        --amqa-tag-bg: rgba(148, 163, 184, 0.2);
        --amqa-tag-fg: #e2e8f0;
    }
}

.amqa-theme-light {
    color-scheme: light;
    --amqa-surface-subtle: #f8fafc;
    --amqa-surface-elevated: #ffffff;
    --amqa-banner-bg: linear-gradient(135deg, rgba(0, 177, 243, 0.11) 0%, rgba(74, 134, 255, 0.05) 55%, rgba(255, 255, 255, 0.92) 100%);
    --amqa-banner-border: rgba(0, 177, 243, 0.22);
    --amqa-border: rgba(15, 23, 42, 0.09);
    --amqa-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 16px -4px rgba(15, 23, 42, 0.05);
    --amqa-shadow-hover: 0 12px 28px -8px rgba(15, 23, 42, 0.14);
    --amqa-focus-ring: #0284c7;
    --amqa-text-primary: #0f172a;
    --amqa-text-secondary: #475569;
    --amqa-text-muted: #475569;
    --amqa-pin-bg: #e0e7ff;
    --amqa-pin-fg: #1e1b4b;
    --amqa-pin-border: rgba(79, 70, 229, 0.28);
    --amqa-phone-bg: #e0f2fe;
    --amqa-phone-fg: #0c4a6e;
    --amqa-tag-bg: #e2e8f0;
    --amqa-tag-fg: #1e293b;
}

.amqa-theme-dark,
.mud-theme-dark {
    color-scheme: dark;
    --amqa-surface-subtle: #242436;
    --amqa-surface-elevated: #1e1e2d;
    --amqa-banner-bg: linear-gradient(135deg, rgba(0, 177, 243, 0.16) 0%, rgba(74, 134, 255, 0.08) 55%, rgba(30, 30, 45, 0.88) 100%);
    --amqa-banner-border: rgba(0, 177, 243, 0.28);
    --amqa-border: rgba(255, 255, 255, 0.1);
    --amqa-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.3);
    --amqa-shadow-hover: 0 14px 30px -6px rgba(0, 0, 0, 0.5);
    --amqa-focus-ring: #38bdf8;
    --amqa-text-primary: #e2e8f0;
    --amqa-text-secondary: #cbd5e1;
    --amqa-text-muted: #cbd5e1;
    --amqa-pin-bg: rgba(99, 102, 241, 0.22);
    --amqa-pin-fg: #e0e7ff;
    --amqa-pin-border: rgba(165, 180, 252, 0.35);
    --amqa-phone-bg: rgba(14, 165, 233, 0.2);
    --amqa-phone-fg: #bae6fd;
    --amqa-tag-bg: rgba(148, 163, 184, 0.2);
    --amqa-tag-fg: #e2e8f0;
}

.amqa-tabular-num {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.amqa-kpi-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.72rem;
}

.amqa-kpi-value {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.amqa-meta-sub {
    font-size: 0.74rem;
    color: var(--amqa-text-muted);
    display: block;
}

.dashboard-banner {
    background: var(--amqa-banner-bg);
    border: 1px solid var(--amqa-banner-border);
    border-radius: 16px;
    padding-block: 18px;
    padding-inline: 22px;
    margin-block-end: 20px;
    box-shadow: var(--amqa-shadow-card);
    position: relative;
    overflow: hidden;
}

.dashboard-filter-control {
    min-inline-size: 155px;
    background: var(--mud-palette-surface, var(--amqa-surface-elevated));
    border-radius: 8px;
}

.dashboard-stat-card {
    background: var(--mud-palette-surface, var(--amqa-surface-elevated));
    border-radius: 14px;
    border: 1px solid var(--amqa-border);
    box-shadow: var(--amqa-shadow-card);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.dashboard-stat-card::before {
    content: "";
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    block-size: 3px;
    background: var(--stat-accent-color, transparent);
}

.stat-accent-primary { --stat-accent-color: linear-gradient(90deg, #00B1F3, #4A86FF); }
.stat-accent-success { --stat-accent-color: linear-gradient(90deg, #10B981, #43A047); }
.stat-accent-warning { --stat-accent-color: linear-gradient(90deg, #F59E0B, #FB8C00); }
.stat-accent-error { --stat-accent-color: linear-gradient(90deg, #EF4444, #E53935); }
.stat-accent-info { --stat-accent-color: linear-gradient(90deg, #0284C7, #4A86FF); }
.stat-accent-secondary { --stat-accent-color: linear-gradient(90deg, #8B5CF6, #8E24AA); }

.dashboard-stat-card-compact {
    background: var(--mud-palette-surface, var(--amqa-surface-elevated));
    border-radius: 12px;
    border: 1px solid var(--amqa-border);
    box-shadow: var(--amqa-shadow-card);
    height: 100%;
    position: relative;
    overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
    .dashboard-stat-card,
    .dashboard-stat-card-compact,
    .bank-account-card,
    .amqa-debtor-row {
        transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                    box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1),
                    border-color 0.22s ease;
    }

    .dashboard-stat-card:hover,
    .dashboard-stat-card-compact:hover {
        transform: translateY(-2px);
        box-shadow: var(--amqa-shadow-hover);
        border-color: var(--amqa-border-strong);
    }

    .bank-account-card:hover,
    .amqa-debtor-row:hover {
        transform: translateY(-2px);
        box-shadow: var(--amqa-shadow-hover);
    }
}

.stat-avatar-wrapper {
    inline-size: 46px;
    block-size: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid currentColor;
    border-color: color-mix(in srgb, currentColor 18%, transparent);
}

.stat-avatar-sm {
    inline-size: 40px;
    block-size: 40px;
    border-radius: 10px;
}

.stat-avatar-primary {
    background-color: rgba(0, 177, 243, 0.13);
    color: #0284c7;
}

.stat-avatar-success {
    background-color: rgba(16, 185, 129, 0.13);
    color: #059669;
}

.stat-avatar-warning {
    background-color: rgba(245, 158, 11, 0.14);
    color: #d97706;
}

.stat-avatar-error {
    background-color: rgba(239, 68, 68, 0.13);
    color: #dc2626;
}

.stat-avatar-info {
    background-color: rgba(74, 134, 255, 0.13);
    color: #2563eb;
}

.stat-avatar-secondary {
    background-color: rgba(139, 92, 246, 0.13);
    color: #7c3aed;
}

.amqa-theme-dark .stat-avatar-primary,
.mud-theme-dark .stat-avatar-primary { color: #38bdf8; }
.amqa-theme-dark .stat-avatar-success,
.mud-theme-dark .stat-avatar-success { color: #34d399; }
.amqa-theme-dark .stat-avatar-warning,
.mud-theme-dark .stat-avatar-warning { color: #fbbf24; }
.amqa-theme-dark .stat-avatar-error,
.mud-theme-dark .stat-avatar-error { color: #f87171; }
.amqa-theme-dark .stat-avatar-info,
.mud-theme-dark .stat-avatar-info { color: #60a5fa; }
.amqa-theme-dark .stat-avatar-secondary,
.mud-theme-dark .stat-avatar-secondary { color: #a78bfa; }

.chart-card {
    background: var(--mud-palette-surface, var(--amqa-surface-elevated));
    border-radius: 14px;
    border: 1px solid var(--amqa-border);
    box-shadow: var(--amqa-shadow-card);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    contain: layout style;
}

.chart-card-header {
    padding-block: 14px;
    padding-inline: 18px;
    background: var(--amqa-surface-subtle);
    border-block-end: 1px solid var(--amqa-border);
}

.amqa-defer-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-block-size: 440px;
    overflow-y: auto;
    padding-inline-end: 2px;
}

@supports (content-visibility: auto) {
    .amqa-defer-row {
        content-visibility: auto;
        contain-intrinsic-size: auto 76px;
    }
}

@supports not (content-visibility: auto) {
    .amqa-defer-row {
        contain: layout style paint;
    }
}

.amqa-recovery-tile {
    background: var(--amqa-surface-subtle);
    border: 1px solid var(--amqa-border);
    border-radius: 10px;
    padding: 12px;
}

.amqa-debtor-row {
    background: var(--amqa-surface-subtle);
    border: 1px solid var(--amqa-border);
    border-inline-start: 4px solid var(--mud-palette-error, #e53935);
    border-radius: 10px;
    padding: 12px 14px;
}

.amqa-wallet-row {
    background: var(--amqa-surface-subtle);
    border: 1px solid var(--amqa-border);
    border-inline-start: 4px solid var(--mud-palette-success, #43a047);
    border-radius: 10px;
    padding: 12px 14px;
}

.amqa-phone-link {
    text-decoration: none;
    font-size: 0.75rem;
    background: var(--amqa-phone-bg);
    color: var(--amqa-phone-fg);
    padding-block: 3px;
    padding-inline: 8px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-block-size: 24px;
}

.amqa-class-tag {
    font-size: 0.72rem;
    background: var(--amqa-tag-bg);
    color: var(--amqa-tag-fg);
    padding-block: 2px;
    padding-inline: 7px;
    border-radius: 5px;
    font-weight: 600;
}

.amqa-meta-caption {
    font-size: 0.74rem;
    color: var(--amqa-text-muted);
}

.amqa-meta-strong {
    font-size: 0.74rem;
    color: var(--amqa-text-primary);
    font-weight: 600;
}

.amqa-pin-badge {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 700;
    font-size: 1.15rem;
    background: var(--amqa-pin-bg);
    color: var(--amqa-pin-fg);
    border: 1px solid var(--amqa-pin-border);
    padding-block: 4px;
    padding-inline: 12px;
    border-radius: 6px;
    letter-spacing: 0.1em;
    font-variant-numeric: tabular-nums;
}

.amqa-pin-preview-box {
    background-color: var(--amqa-surface-subtle) !important;
    border: 1.5px dashed var(--mud-palette-primary, #00B1F3) !important;
}

.amqa-callout-info {
    background: rgba(0, 177, 243, 0.08);
    border-inline-start: 4px solid var(--mud-palette-primary, #00B1F3);
    border-radius: 10px;
    padding: 12px 14px;
}

.pulse-live-dot {
    position: relative;
    display: inline-block;
    inline-size: 8px;
    block-size: 8px;
    border-radius: 50%;
    background-color: #10b981;
    margin-inline-end: 6px;
    flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .pulse-live-dot::after {
        content: "";
        position: absolute;
        inset: -3px;
        border-radius: 50%;
        border: 2px solid #10b981;
        animation: pulse-live-ring 2s infinite cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes pulse-live-ring {
        0% {
            transform: scale(0.75);
            opacity: 0.85;
        }
        75%, 100% {
            transform: scale(1.65);
            opacity: 0;
        }
    }
}

.rank-badge {
    inline-size: 26px;
    block-size: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.rank-badge-1 {
    background: linear-gradient(135deg, #ffd700, #ffb300);
    color: #000000;
}

.rank-badge-2 {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    color: #0f172a;
}

.rank-badge-3 {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: #ffffff;
}

.rank-badge-other {
    background: var(--amqa-tag-bg);
    color: var(--amqa-tag-fg);
}

/* Financial Hero Alerts & Guidance */
.financial-hero-alert-arrears {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.09) 0%, rgba(251, 140, 0, 0.06) 100%);
    border: 1px solid rgba(229, 57, 53, 0.28);
    border-radius: 14px;
    padding: 18px 22px;
    position: relative;
    overflow: hidden;
}

.amqa-theme-dark .financial-hero-alert-arrears,
.mud-theme-dark .financial-hero-alert-arrears {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.18) 0%, rgba(30, 30, 45, 0.78) 100%);
    border: 1px solid rgba(248, 113, 113, 0.36);
}

.financial-hero-alert-cleared {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.09) 0%, rgba(0, 177, 243, 0.05) 100%);
    border: 1px solid rgba(16, 185, 129, 0.24);
    border-radius: 14px;
    padding: 18px 22px;
}

.amqa-theme-dark .financial-hero-alert-cleared,
.mud-theme-dark .financial-hero-alert-cleared {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(30, 30, 45, 0.72) 100%);
    border: 1px solid rgba(52, 211, 153, 0.34);
}

.bursary-instruction-box {
    background: linear-gradient(135deg, rgba(0, 177, 243, 0.06) 0%, rgba(74, 134, 255, 0.03) 100%);
    border: 1px dashed rgba(0, 177, 243, 0.35);
    border-radius: 14px;
    padding: 20px;
}

.amqa-theme-dark .bursary-instruction-box,
.mud-theme-dark .bursary-instruction-box {
    background: rgba(0, 177, 243, 0.09);
    border: 1px dashed rgba(56, 189, 248, 0.42);
}

.bank-account-card {
    background: var(--mud-palette-surface, var(--amqa-surface-elevated));
    border: 1px solid var(--amqa-border);
    border-radius: 12px;
    padding: 16px;
}

.bank-account-card:hover {
    border-color: var(--mud-palette-primary, #00B1F3);
}

.account-number-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
}

.dashboard-stat-card a:focus-visible,
.amqa-phone-link:focus-visible,
.amqa-focus-ring:focus-visible,
.bank-account-card button:focus-visible {
    outline: 2px solid var(--amqa-focus-ring);
    outline-offset: 2px;
}

@media (pointer: coarse) {
    .amqa-phone-link {
        min-block-size: 36px;
        padding-block: 6px;
        padding-inline: 10px;
    }
}

@media (forced-colors: active) {
    .dashboard-banner,
    .dashboard-stat-card,
    .dashboard-stat-card-compact,
    .chart-card,
    .amqa-recovery-tile,
    .amqa-debtor-row,
    .amqa-wallet-row,
    .bank-account-card,
    .amqa-pin-badge,
    .financial-hero-alert-arrears,
    .financial-hero-alert-cleared {
        border: 1px solid CanvasText;
        box-shadow: none;
    }
}

/* Report Preview Dialog - Wide & Responsive */
.mud-dialog.report-preview-dialog,
.report-preview-dialog {
    max-width: 95vw !important;
    width: 95vw !important;
    margin: 16px auto !important;
}

.report-preview-dialog .mud-dialog-content {
    padding: 8px 16px !important;
}



