:root {
    --primary-color: #0d7377;
    --primary-hover: #0a5c5f;
    --primary-light: #e0f2f1;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --success-light: #d1fae5;
    --warning-color: #f59e0b;
    --warning-light: #fef3c7;
    --danger-color: #ef4444;
    --info-color: #0ea5e9;
    --info-light: #e0f7fa;
    --background: #f8fafc;
    --background-alt: #f1f5f9;
    --surface: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-tertiary: #94a3b8;
    --border-color: #e2e8f0;
    --border-color-light: #f1f5f9;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1:focus {
    outline: none;
}

html {
    scroll-behavior: smooth;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, #0d7377 0%, #14919b 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

.login-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 3rem;
    width: 100%;
    max-width: 460px;
    animation: slideUp 0.4s ease-out;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 115, 119, 0.1);
}

.form-control::placeholder {
    color: var(--text-secondary);
}

.valid.modified:not([type=checkbox]) {
    border-color: var(--success-color);
}

.invalid {
    border-color: var(--danger-color);
}

.validation-message {
    color: var(--danger-color);
    font-size: 0.75rem;
    margin-top: 0.25rem;
    display: block;
}

.btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.alert {
    padding: 0.875rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-info {
    background: #e0f7fa;
    color: #006064;
    border: 1px solid #b2dfdb;
}

.page-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-color-light);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 400;
}

.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-header {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color-light);
    color: var(--text-primary);
}

.table-container {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table thead {
    background: var(--background);
}

.table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table td {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.table tbody tr:hover {
    background: var(--background);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
}

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

#blazor-error-ui {
    background: var(--danger-color);
    color: white;
    padding: 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#blazor-error-ui .reload {
    color: white;
    text-decoration: underline;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    padding: 0 0.5rem;
}

.mud-table-custom {
    background: transparent !important;
}

.mud-table-custom .mud-table-head {
    background: var(--background-alt) !important;
}

.mud-table-custom .mud-table-cell {
    border-bottom: 1px solid var(--border-color) !important;
    padding: 1rem !important;
    font-size: 0.875rem !important;
}

.mud-table-custom .mud-table-row {
    transition: all 0.2s ease !important;
}

.mud-table-custom .mud-table-row:hover {
    background: var(--primary-light) !important;
}

.dashboard-card {
    transition: all 0.3s ease !important;
    border: 1px solid var(--border-color) !important;
    overflow: hidden;
    position: relative;
}

.dashboard-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #14919b);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg) !important;
    border-color: var(--primary-color) !important;
}

.dashboard-card:hover::before {
    transform: scaleX(1);
}

.mud-dialog {
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-xl) !important;
}

.mud-dialog-title {
    font-weight: 600 !important;
    font-size: 1.25rem !important;
    color: var(--text-primary) !important;
}

.mud-button-root {
    border-radius: var(--radius-sm) !important;
    text-transform: none !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
}

.mud-button-filled-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #14919b 100%) !important;
}

.mud-button-filled-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md) !important;
}

.mud-input {
    border-radius: var(--radius-sm) !important;
}

.mud-input-root {
    border-radius: var(--radius-sm) !important;
}

.mud-chip {
    font-weight: 600 !important;
    border-radius: var(--radius-sm) !important;
}

.mud-snackbar {
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
}

.mud-card {
    border-radius: var(--radius-lg) !important;
    transition: all 0.3s ease !important;
}

.mud-card-header {
    padding: 1.5rem !important;
}

.mud-card-content {
    padding: 1.5rem !important;
}

.mud-progress-linear {
    border-radius: 9999px !important;
}

.mud-icon-button {
    transition: all 0.2s ease !important;
}

.mud-icon-button:hover {
    transform: scale(1.1);
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-3 {
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .login-card {
        padding: 2rem;
    }

    .card {
        padding: 1.25rem;
    }
}

.navbar-popover {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
}

.navbar-popover-list {
    padding: 0.375rem !important;
    min-width: 200px;
}

.navbar-signout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font: inherit;
    font-size: 0.875rem;
    color: var(--text-primary);
    text-align: left;
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

.navbar-signout .mud-icon-root {
    color: var(--text-tertiary);
}

.navbar-signout:hover,
.navbar-signout:focus-visible {
    background: var(--background-alt);
    outline: none;
}

.account-brand-mark {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0d7377 0%, #14919b 100%);
    box-shadow: 0 8px 16px rgba(13, 115, 119, 0.3);
}

.account-brand {
    font-weight: 700;
    color: var(--text-primary);
}

.account-brand-tag {
    margin-left: 0.375rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--primary-light);
}

.account-submit {
    width: 100%;
    justify-content: center;
}

.account-links {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
}

.account-links a {
    color: var(--primary-color);
}

.pw-alert {
    margin-top: 1.25rem;
}

.pw-field {
    position: relative;
}

.pw-input {
    padding-right: 3rem;
}

.pw-input[aria-invalid="true"] {
    border-color: #b91c1c;
}

.pw-input[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.pw-toggle {
    position: absolute;
    top: 50%;
    right: 0.375rem;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
}

.pw-toggle[hidden] {
    display: none;
}

.pw-toggle:hover {
    color: var(--text-primary);
    background: var(--background-alt);
}

.pw-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 1px;
}

.pw-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pw-toggle .pw-eye-off,
.pw-toggle[aria-pressed="true"] .pw-eye {
    display: none;
}

.pw-toggle[aria-pressed="true"] .pw-eye-off {
    display: block;
}

.pw-rules {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
    gap: 0.5rem 1rem;
    margin-top: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--background-alt);
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.pw-rule {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    transition: color 0.2s ease;
}

.pw-rule-icon {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    margin-top: 0.0625rem;
    border: 1.5px solid #94a3b8;
    border-radius: 50%;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.pw-rule-icon svg {
    width: 0.75rem;
    height: 0.75rem;
    fill: none;
    stroke: #fff;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pw-rules.is-live .pw-rule.is-met {
    color: var(--text-primary);
}

.pw-rules.is-live .pw-rule.is-met .pw-rule-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.pw-rules.is-live .pw-rule.is-met .pw-rule-icon svg {
    opacity: 1;
    transform: scale(1);
}

.pw-rules.is-live .pw-rule.is-unmet {
    color: #b91c1c;
}

.pw-rules.is-live .pw-rule.is-unmet .pw-rule-icon {
    border-color: #b91c1c;
}

.pw-match {
    min-height: 1.25rem;
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.25rem;
}

.pw-match.is-ok {
    color: var(--primary-color);
}

.pw-match.is-error {
    color: #b91c1c;
}

.pw-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .pw-rule,
    .pw-rule-icon,
    .pw-rule-icon svg {
        transition: none;
    }
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }
}

.partner-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.partner-header .page-title {
    margin-bottom: 0.25rem;
}

.partner-period {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

.period-picker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.period-chip {
    font: inherit;
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: var(--surface);
    color: #475569;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.period-chip:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.period-chip:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.period-chip.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.period-chip:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.period-range {
    width: 260px;
    margin: 0 !important;
}

.tile-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tile-grid--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tile-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.25rem;
}

.tile-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.tile-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.25rem;
    font-variant-numeric: tabular-nums;
}

.tile-value--small {
    font-size: 1.125rem;
}

.tile-caption {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.125rem;
}

.tile--balance {
    background: #041f4f;
    border-color: #041f4f;
    color: #fff;
}

.tile--balance .tile-label,
.tile--balance .tile-caption {
    color: #b7c4dc;
}

.panel-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 2fr 1fr;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    padding: 1rem 1.25rem;
}

.panel-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}

.panel-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color-light);
}

.panel-row:last-child {
    border-bottom: 0;
}

.panel-row dd {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.panel-row--total dt {
    font-weight: 700;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
    background: var(--text-tertiary);
}

.status-dot--inprogress {
    background: var(--info-color);
}

.status-dot--paid {
    background: var(--success-color);
}

.status-dot--failed {
    background: var(--danger-color);
}

.amount-positive {
    color: #065f46;
}

.amount-negative {
    color: var(--mud-palette-error) !important;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.filter-status {
    flex: 0 0 180px;
    margin: 0 !important;
}

.filter-search {
    flex: 0 1 260px;
    margin: 0 !important;
}

.filter-hint {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.filter-export {
    margin-left: auto !important;
}

.table-summary {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.table-panel {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm) !important;
    overflow: hidden;
}

.table-pagination {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.cell-number {
    text-align: right !important;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.cell-nowrap {
    white-space: nowrap;
}

.cursor-pointer {
    cursor: pointer;
}

.detail-status {
    margin-bottom: 0.75rem;
}

.detail-section {
    margin-bottom: 1.25rem;
}

.detail-heading {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.375rem;
}

.detail-list > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.875rem;
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--border-color-light);
}

.detail-list dt {
    color: var(--text-secondary);
}

.detail-list dd {
    text-align: right;
    font-variant-numeric: tabular-nums;
    overflow-wrap: anywhere;
}

.detail-empty {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

@media (max-width: 1023.98px) {
    .tile-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panel-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 639.98px) {
    .tile-grid--four,
    .tile-grid--three {
        grid-template-columns: 1fr;
    }

    .period-range {
        width: 100%;
    }

    .filter-status,
    .filter-search {
        flex: 1 1 100%;
    }

    .filter-export {
        margin-left: 0 !important;
    }
}
