/* Product tour */

/* Backdrop covers the page behind the active step element. */
.tour-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1200;
    cursor: pointer;
}

/* Wrapper for every potential tour step */
.tour-step {
    position: relative;
}

/* Active step punches through the backdrop via z-index and a box-shadow halo. */
.tour-step--active {
    position: relative;
    z-index: 1201;
    border-radius: 6px;
    overflow: visible;
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.9),
        0 0 0 9999px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
}

.tour-step--active .tour-callout {
    z-index: 1300;
}

/* Table targets are often small action groups or cells; keep the highlight tight. */
.mud-table .tour-step,
.lgrid .tour-step {
    display: inline-block;
}

/* Right-aligned table actions need the bottom callout to stay inside the page. */
.mud-table .tour-step--active .tour-callout--bottom {
    left: auto;
    right: 0;
    transform: none;
}

.mud-table .tour-step--active .tour-callout--bottom::before {
    left: auto;
    right: 24px;
    margin-left: 0;
}

/* Buildings tour uses broad workspace targets; keep their spotlight local. */
.tour-step--active:has(.building-tour-assigned-target),
.tour-step--active:has(.building-tour-create-target),
.tour-step--active:has(.building-tour-units-target),
.tour-step--active:has(.building-tour-actions-target) {
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.9),
        0 10px 28px rgba(15, 23, 42, 0.18);
}

.mud-table td:has(.tour-step--active .building-tour-actions-target) {
    position: relative;
    z-index: 1201;
    overflow: visible;
}

/* Callout bubble */
.tour-callout {
    position: absolute;
    z-index: 1202;
    width: min(280px, calc(100vw - 2rem));
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Arrow via ::before pseudo-element */
.tour-callout::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
}

/* Placement variants */
.tour-callout--bottom {
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
}
.tour-callout--bottom::before {
    top: -6px;
    left: 50%;
    margin-left: -6px;
    box-shadow: -2px -2px 4px rgba(0,0,0,0.06);
}

.tour-callout--top {
    bottom: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
}
.tour-callout--top::before {
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
    box-shadow: 2px 2px 4px rgba(0,0,0,0.06);
}

.tour-callout--right {
    left: calc(100% + 16px);
    top: 50%;
    transform: translateY(-50%);
}
.tour-callout--right::before {
    left: -6px;
    top: 50%;
    margin-top: -6px;
    box-shadow: -2px 2px 4px rgba(0,0,0,0.06);
}

.tour-callout--left {
    right: calc(100% + 16px);
    top: 50%;
    transform: translateY(-50%);
}
.tour-callout--left::before {
    right: -6px;
    top: 50%;
    margin-top: -6px;
    box-shadow: 2px -2px 4px rgba(0,0,0,0.06);
}

.tour-callout__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tour-callout__counter {
    font-size: 0.75rem;
    color: #888;
    font-weight: 500;
}

.tour-callout__close {
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 0 2px;
}
.tour-callout__close:hover { color: #333; }

.tour-callout__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1f2933;
}

.tour-callout__body {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
}

.tour-callout__footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.tour-callout__spacer { flex: 1; }

.tour-btn {
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.tour-btn--primary {
    background: var(--mud-palette-primary);
    color: #fff;
}
.tour-btn--primary:hover { filter: brightness(1.08); }

.tour-btn--ghost {
    background: transparent;
    color: var(--mud-palette-primary);
    border: 1px solid var(--mud-palette-primary);
}
.tour-btn--ghost:hover { background: rgba(0,0,0,0.04); }

@media (max-width: 599.98px) {
    .tour-callout,
    .tour-callout--top,
    .tour-callout--bottom,
    .tour-callout--left,
    .tour-callout--right {
        position: fixed;
        left: 1rem;
        right: 1rem;
        top: auto;
        bottom: calc(4.75rem + env(safe-area-inset-bottom));
        width: auto;
        transform: none;
    }

    .tour-callout::before {
        display: none;
    }
}

/* End product tour */

@keyframes tx-flash {
    0%   { background-color: rgba(134, 239, 172, 0.35); }
    70%  { background-color: rgba(134, 239, 172, 0.35); }
    100% { background-color: transparent; }
}

@keyframes urbanis-loading-pulse {
    0% {
        transform: scale(0.92);
        opacity: 0.55;
    }
    100% {
        transform: scale(1.08);
        opacity: 1;
    }
}

html, body {
    font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: #1f2933;
    margin: 0;
}

a {
    color: #1b4d3e;
}

h1, h2, h3, h4 {
    color: #173b32;
    letter-spacing: -0.02em;
}

.page-stack {
    gap: 1.25rem;
}

.page-grid {
    min-height: calc(100vh - 12rem);
    align-items: center;
}

.page-card {
    padding: 1.5rem;
    border: 1px solid rgba(23, 59, 50, 0.08);
    border-radius: 24px;
    background: rgba(255, 253, 249, 0.9);
}

.hero-card {
    max-width: 48rem;
}

.hero-copy {
    max-width: 36rem;
}

.auth-card,
.profile-card {
    max-width: 32rem;
}

.state-card {
    max-width: 34rem;
    margin: 0 auto;
    text-align: center;
}

.urbanis-dashboard {
    --urbanis-dashboard-border: rgba(23, 59, 50, 0.08);
}

.urbanis-dashboard-hero {
    width: 100%;
    background: linear-gradient(135deg, #f5f1e8 0%, #e6efe9 100%);
    border-color: var(--urbanis-dashboard-border);
}

.urbanis-dashboard-hero__copy {
    max-width: 44rem;
}

.urbanis-dashboard-section {
    display: grid;
    gap: 0.85rem;
}

.urbanis-dashboard-section__header {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.25rem;
    color: #173b32;
}

.urbanis-dashboard-card {
    height: 100%;
    min-height: 13rem;
    border-color: var(--urbanis-dashboard-border);
}

.urbanis-dashboard-card .mud-button-root {
    align-self: flex-start;
    min-width: 6.5rem;
}

.urbanis-dashboard-card--primary {
    background: linear-gradient(180deg, rgba(232, 244, 253, 0.78), rgba(255, 253, 249, 0.96));
}

.urbanis-dashboard-card--warm {
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.88), rgba(255, 253, 249, 0.96));
}

.urbanis-dashboard-card--success {
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.84), rgba(255, 253, 249, 0.96));
}

.urbanis-dashboard-card--teal {
    background: linear-gradient(180deg, rgba(236, 253, 245, 0.76), rgba(255, 253, 249, 0.96));
}

.urbanis-dashboard-card--annual {
    background: linear-gradient(180deg, rgba(254, 242, 242, 0.76), rgba(255, 253, 249, 0.96));
}

.urbanis-dashboard-card--resident {
    background: linear-gradient(180deg, rgba(250, 245, 255, 0.82), rgba(255, 253, 249, 0.96));
}

.urbanis-dashboard-card--info {
    background: linear-gradient(180deg, rgba(240, 249, 255, 0.84), rgba(255, 253, 249, 0.96));
}

.urbanis-dashboard-card--neutral {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.88), rgba(255, 253, 249, 0.96));
}

.demo-card {
    max-width: 24rem;
}

.weather-table {
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 253, 249, 0.9);
}

h1:focus {
    outline: none;
}

.urbanis-building-context-group {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    max-width: 100%;
}

.urbanis-building-context-menu {
    min-width: 0;
}

.urbanis-building-context-popover {
    width: clamp(14rem, 32vw, 360px) !important;
    max-width: calc(100vw - 1rem) !important;
}

.urbanis-building-context-popover .mud-list {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
}

.urbanis-building-context-option {
    box-sizing: border-box !important;
    display: flex;
    align-items: stretch;
    gap: 0.25rem;
    width: 100% !important;
    min-width: 0 !important;
}

.urbanis-building-context-option--selected {
    background: rgba(var(--mud-palette-primary-rgb), 0.08);
}

.urbanis-building-option-select.mud-list-item,
.urbanis-building-option-select .mud-list-item-clickable,
.urbanis-building-option-select .mud-list-item-text,
.urbanis-building-option-select .mud-list-item-text > * {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
}

.urbanis-building-option-select.mud-list-item {
    flex: 1 1 auto;
    border-radius: 0;
}

.urbanis-building-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}

.urbanis-building-option__copy {
    flex: 1 1 auto;
    min-width: 0;
}

.urbanis-building-option__actions {
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
    flex: 0 0 auto;
    padding-right: 0.25rem;
}

.urbanis-building-option__action.mud-icon-button {
    width: 1.875rem;
    height: 1.875rem;
    padding: 0.25rem;
}

@media (max-width: 959.98px) {
    .urbanis-building-context-popover {
        width: min(64vw, 17rem) !important;
    }
}

@media (max-width: 420px) {
    .urbanis-building-context-popover {
        width: min(74vw, 17rem) !important;
    }
}

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

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

.validation-message {
    color: #e50000;
}

.mud-snackbar-container .mud-snackbar {
    border-radius: 12px;
}

@media (max-width: 767.98px) {
    .mud-snackbar-location-top-right,
    .mud-snackbar-location-top-center {
        top: calc(3.75rem + env(safe-area-inset-top)) !important;
        right: auto !important;
        left: 50% !important;
        width: calc(100vw - 1.5rem);
        max-width: 34rem;
        transform: translateX(-50%);
        align-items: stretch;
    }

    .mud-snackbar-location-top-right .mud-snackbar,
    .mud-snackbar-location-top-center .mud-snackbar {
        width: 100%;
        max-width: none;
        margin-inline: 0;
    }
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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.";
}

.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #fffdf9;
        width: 100%;
        z-index: 1;
    }

    .mud-drawer,
    .urbanis-brand {
        padding-left: env(safe-area-inset-left);
    }
}



.urbanis-active-edit-surface {
    background: rgba(245, 158, 11, 0.09);
    box-shadow: inset 3px 0 0 var(--mud-palette-primary);
}

.urbanis-loading-shell {
    display: flex;
    align-items: center;
    justify-content: center;
}

.urbanis-loading-shell--context {
    flex: 1;
    min-height: 8rem;
    width: 100%;
}

.urbanis-loading-shell--fullscreen {
    min-height: 100vh;
    width: 100%;
    padding: 2rem;
    background:
        radial-gradient(circle at top, rgba(27, 77, 62, 0.08), transparent 42%),
        linear-gradient(180deg, rgba(245, 241, 232, 0.75) 0%, rgba(255, 253, 249, 1) 100%);
}

.urbanis-loading-indicator {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
}

.urbanis-loading-shell--fullscreen .urbanis-loading-indicator {
    min-width: min(22rem, 100%);
    padding: 2rem 2.25rem;
    border: 1px solid rgba(23, 59, 50, 0.08);
    border-radius: 28px;
    background: rgba(255, 253, 249, 0.92);
    box-shadow: 0 24px 48px rgba(23, 59, 50, 0.1);
}

.urbanis-loading-shell--context .urbanis-loading-indicator {
    padding: 1rem 1.25rem;
}

.urbanis-loading-indicator__halo {
    position: absolute;
    width: 4.25rem;
    height: 4.25rem;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(27, 77, 62, 0.16) 0%, rgba(245, 158, 11, 0.12) 42%, transparent 72%);
    animation: urbanis-loading-pulse 1.4s ease-in-out infinite alternate;
}

.urbanis-loading-shell--context .urbanis-loading-indicator__halo {
    width: 3rem;
    height: 3rem;
}

.urbanis-loading-indicator__spinner {
    position: relative;
    z-index: 1;
}

.urbanis-loading-indicator__label {
    position: relative;
    z-index: 1;
    color: #4b5563;
    font-weight: 600;
}

.urbanis-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1290;
    background: rgba(0, 0, 0, 0.5);
}

.urbanis-drawer {
    --urbanis-drawer-width: 520px;
    position: fixed;
    top: 0;
    right: 0;
    width: min(100vw, var(--urbanis-drawer-width));
    height: 100vh;
    z-index: 1300;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.urbanis-drawer--narrow {
    --urbanis-drawer-width: 440px;
}

.urbanis-drawer--compact {
    --urbanis-drawer-width: 480px;
}

.urbanis-drawer__layout {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.urbanis-drawer__context {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(245, 241, 232, 0.5);
}

.urbanis-drawer__form {
    flex-shrink: 0;
    overflow: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.urbanis-transaction-drawer .urbanis-transaction-drawer__context-header {
    position: sticky;
    top: -12px;
    z-index: 1;
    margin: -12px -16px 8px;
    padding: 12px 16px 10px;
    background: rgba(245, 241, 232, 0.96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.urbanis-transaction-drawer .urbanis-transaction-drawer__context-header .mud-typography {
    min-width: 0;
}

.urbanis-drawer__footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.urbanis-relation-card {
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.urbanis-relation-card--active {
    border-color: var(--mud-palette-primary);
    background: rgba(25, 118, 210, 0.06);
}

@media (max-width: 767.98px) {
    .urbanis-drawer {
        width: 100vw;
        height: 100%;
        max-height: 100%;
        overflow: hidden;
        overscroll-behavior: none;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .urbanis-drawer__context,
    .urbanis-drawer__form {
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .urbanis-drawer__footer .mud-stack-row {
        flex-direction: column;
        align-items: stretch;
    }

    .urbanis-drawer__footer .urbanis-drawer__footer-row--inline {
        flex-direction: row;
        align-items: center;
    }

    .urbanis-drawer__footer .mud-button-root,
    .urbanis-drawer .urbanis-mobile-full-width-action {
        width: 100%;
        min-height: 44px;
    }

    .urbanis-drawer__footer .urbanis-drawer__footer-row--inline .mud-button-root {
        width: auto;
        min-width: 0;
        flex: 1 1 0;
    }

    .page-card {
        padding: 1rem;
        border-radius: 16px;
    }
}

.urbanis-mobile-page-header {
    gap: 0.25rem;
}

.urbanis-mobile-page-header .mud-typography-h4 {
    font-size: 1.45rem;
    line-height: 1.2;
}

.urbanis-mobile-filter-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: end;
}

.urbanis-mobile-filter-row > * {
    min-width: 0;
}

.urbanis-mobile-filter-row .mud-input-control {
    margin-top: 0;
    min-width: 0;
}

.urbanis-building-selector-header {
    min-width: 0;
}

.urbanis-building-count-chip {
    flex-shrink: 0;
}

.transaction-picker-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1300;
}

.transaction-month-picker {
    width: min(19rem, calc(100vw - 2rem));
    padding: 0.75rem;
    display: grid;
    gap: 0.75rem;
}

.transaction-month-picker__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.transaction-month-picker__month {
    position: relative;
    min-height: 56px;
    border: 1px solid rgba(23, 59, 50, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    color: #173b32;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.45rem 0.25rem;
}

.transaction-month-picker__label,
.transaction-month-picker__amounts {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transaction-month-picker__amounts {
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.1;
    opacity: 0.78;
    font-variant-numeric: tabular-nums;
}

.transaction-month-picker__month--paid {
    border-color: rgba(34, 197, 94, 0.55);
    background: rgba(34, 197, 94, 0.13);
}

.transaction-month-picker__month--partial {
    border-color: rgba(245, 158, 11, 0.6);
    background: rgba(245, 158, 11, 0.16);
}

.transaction-month-picker__month--unpaid {
    border-color: rgba(239, 68, 68, 0.5);
    background: rgba(239, 68, 68, 0.12);
}

.transaction-month-picker__month--selected {
    box-shadow: inset 0 0 0 2px var(--mud-palette-primary);
}

.transaction-month-picker__month--disabled {
    opacity: 0.45;
}

.transaction-month-picker__check {
    position: absolute;
    top: 4px;
    right: 6px;
    color: var(--mud-palette-primary);
    font-size: 0.8rem;
    line-height: 1;
}

@media (max-width: 380px) {
    .urbanis-building-selector-header .mud-typography-h6 {
        font-size: 1rem;
    }
}

.urbanis-mobile-action-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    margin-inline: -1rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 253, 249, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(23, 59, 50, 0.08);
}

.urbanis-mobile-snap-row {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.1rem 17vw 0.25rem 0;
    scrollbar-width: none;
}

.urbanis-mobile-snap-row::-webkit-scrollbar {
    display: none;
}

.urbanis-mobile-snap-card {
    flex: 0 0 clamp(12.5rem, 66vw, 15.75rem);
    min-width: 0;
    scroll-snap-align: center;
    border: 1px solid rgba(23, 59, 50, 0.10);
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.94);
}

.urbanis-mobile-snap-card:first-child {
    scroll-snap-align: start;
}

.urbanis-mobile-snap-card.pa-3 {
    padding: 0.7rem !important;
}

.urbanis-mobile-snap-card .mud-typography-subtitle2,
.urbanis-mobile-snap-card .mud-typography-caption {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.urbanis-mobile-snap-card--selected {
    border-color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 11%, white);
    box-shadow: inset 0 0 0 1px var(--mud-palette-primary);
}

.urbanis-mobile-segmented {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding: 0.25rem;
    border: 1px solid rgba(23, 59, 50, 0.10);
    border-radius: 999px;
    background: rgba(23, 59, 50, 0.04);
    scrollbar-width: none;
}

.urbanis-mobile-segmented::-webkit-scrollbar {
    display: none;
}

.urbanis-mobile-segment {
    min-height: 40px;
    padding: 0.45rem 0.85rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #374151;
    white-space: nowrap;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
}

.urbanis-mobile-segment--active {
    background: #fffdf9;
    color: var(--mud-palette-primary);
    box-shadow: 0 1px 4px rgba(23, 59, 50, 0.12);
}

.urbanis-mobile-card-list {
    display: grid;
    gap: 0.75rem;
}

.urbanis-mobile-record-card {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid rgba(23, 59, 50, 0.10);
    border-radius: 16px;
    background: rgba(255, 253, 249, 0.94);
}

.urbanis-mobile-record-card > .mud-stack {
    min-width: 0;
}

.urbanis-mobile-record-card--active {
    border-color: var(--mud-palette-primary);
    box-shadow: inset 3px 0 0 var(--mud-palette-primary);
}

.spendings-mobile-expense-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.spendings-mobile-expense-card__identity {
    flex: 1 1 auto;
    min-width: 0;
}

.spendings-mobile-expense-card__title,
.spendings-mobile-expense-card__meta {
    overflow-wrap: anywhere;
}

.spendings-mobile-expense-card__meta {
    color: var(--mud-palette-text-secondary);
}

.spendings-mobile-expense-card__header-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.15rem;
    min-width: 0;
}

.spendings-mobile-expense-card__amount {
    color: var(--mud-palette-primary);
    font-weight: 700;
    white-space: nowrap;
}

.spendings-mobile-expense-card__scope {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    min-width: 0;
}

.spendings-mobile-expense-card__scope .mud-chip {
    max-width: 100%;
    height: auto;
    min-height: 2rem;
}

.spendings-mobile-expense-card__scope .mud-chip-content {
    padding-block: 0.3rem;
    overflow-wrap: anywhere;
    white-space: normal;
}

.spendings-mobile-expense-card__description {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    min-width: 0;
    padding: 0.7rem 0.75rem;
    border-left: 3px solid color-mix(in srgb, var(--mud-palette-primary) 55%, transparent);
    border-radius: 0 10px 10px 0;
    background: color-mix(in srgb, var(--mud-palette-primary) 5%, transparent);
    color: var(--mud-palette-text-secondary);
}

.spendings-mobile-expense-card__description .mud-typography {
    min-width: 0;
    overflow-wrap: anywhere;
}

.urbanis-mobile-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.urbanis-mobile-kpi {
    padding: 0.75rem;
    border: 1px solid rgba(23, 59, 50, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.72);
}

.urbanis-mobile-month-strip,
.urbanis-mobile-chip-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.urbanis-mobile-month-strip {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
}

.urbanis-mobile-month-strip--five {
    width: 100%;
    max-width: 19.25rem;
}

.urbanis-mobile-month-strip--twelve {
    width: 100%;
    max-width: 100%;
    padding-block: 0.05rem;
}

.urbanis-mobile-month-strip::-webkit-scrollbar,
.urbanis-mobile-chip-strip::-webkit-scrollbar {
    display: none;
}

.urbanis-mobile-month-chip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 3.45rem;
    scroll-snap-align: center;
    padding-block: 0.5rem;
}

.urbanis-mobile-month-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.15rem;
    min-height: 28px;
    border: 1px solid rgba(23, 59, 50, 0.18);
    border-radius: 999px;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1;
}

.urbanis-mobile-month-chip--paid {
    border-color: color-mix(in srgb, var(--mud-palette-success) 62%, transparent);
    color: var(--mud-palette-success);
}

.urbanis-mobile-month-chip--partial {
    border-color: color-mix(in srgb, var(--mud-palette-warning) 66%, transparent);
    color: var(--mud-palette-warning);
}

.urbanis-mobile-month-chip--unpaid {
    border-color: color-mix(in srgb, var(--mud-palette-error) 62%, transparent);
    color: var(--mud-palette-error);
}

.urbanis-mobile-month-chip--empty {
    opacity: 0.35;
}

.urbanis-mobile-month-chip__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.urbanis-mobile-show-more {
    padding-top: 0.25rem;
}

.urbanis-mobile-record-primary-action {
    margin-top: 0.25rem;
    min-height: 44px;
}

.urbanis-mobile-row-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.urbanis-mobile-row-actions .mud-button-root {
    min-width: 0;
    min-height: 44px;
}

.urbanis-mobile-row-action--wide {
    grid-column: 1 / -1;
}

.urbanis-mobile-current-marker {
    position: absolute;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.urbanis-mobile-current-marker--top {
    top: 0;
    border-top: 6px solid var(--urbanis-mobile-month-status-color, var(--mud-palette-primary));
}

.urbanis-mobile-current-marker--bottom {
    bottom: 0;
    border-bottom: 6px solid var(--urbanis-mobile-month-status-color, var(--mud-palette-primary));
}

.urbanis-mobile-month-button,
.urbanis-mobile-chip-button {
    min-height: 44px;
    min-width: 64px;
    padding: 0.45rem 0.75rem;
    border: 1px solid rgba(23, 59, 50, 0.10);
    border-radius: 999px;
    background: #fffdf9;
    color: #374151;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.urbanis-mobile-month-button--active,
.urbanis-mobile-chip-button--active {
    border-color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 13%, white);
    color: var(--mud-palette-primary);
}

.urbanis-mobile-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (max-width: 767.98px) {
    .urbanis-main {
        padding: 0;
    }

    .urbanis-content {
        min-height: calc(100vh - 3.5rem);
        padding: 0.75rem 0.75rem calc(4.5rem + env(safe-area-inset-bottom));
        border: 0;
        border-radius: 0;
        box-shadow: none;
        background: rgba(255, 253, 249, 0.9);
    }

    .mud-container.urbanis-content-shell {
        max-width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}

.annual-reports-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, rgba(27, 94, 32, 0.16), transparent 28%),
        radial-gradient(circle at bottom right, rgba(2, 136, 209, 0.18), transparent 32%),
        linear-gradient(135deg, #f7efe1 0%, #fcfaf5 42%, #eef7f5 100%);
}

.annual-reports-orbit {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.annual-reports-orbit__ring {
    position: absolute;
    border-radius: 999px;
    border: 1px dashed rgba(23, 59, 50, 0.18);
}

.annual-reports-orbit__ring--outer {
    width: 220px;
    height: 220px;
}

.annual-reports-orbit__ring--inner {
    width: 140px;
    height: 140px;
    border-style: solid;
    border-color: rgba(23, 59, 50, 0.08);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(246, 250, 249, 0.75));
}

.annual-reports-orbit__card {
    position: absolute;
    min-width: 110px;
    padding: 0.75rem 0.9rem;
    border-radius: 18px;
    border: 1px solid rgba(23, 59, 50, 0.08);
    box-shadow: 0 18px 40px rgba(23, 59, 50, 0.08);
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.annual-reports-orbit__card span {
    font-size: 0.78rem;
    color: #4b5563;
}

.annual-reports-orbit__card strong {
    font-size: 0.95rem;
    color: #173b32;
}

.annual-reports-orbit__card--income {
    top: 10px;
    left: 34px;
    background: rgba(240, 253, 244, 0.92);
}

.annual-reports-orbit__card--expense {
    right: 26px;
    top: 74px;
    background: rgba(255, 247, 237, 0.94);
}

.annual-reports-orbit__card--balance {
    bottom: 16px;
    left: 68px;
    background: rgba(239, 246, 255, 0.94);
}

.annual-reports-filter-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(247, 250, 248, 0.94) 100%);
}

.annual-reports-filter-hint {
    color: #6b7280;
}

.annual-report-context-card {
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.09), rgba(14, 165, 233, 0.08)),
        rgba(255, 255, 255, 0.92);
}

.annual-report-export-card {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(23, 59, 50, 0.08);
}

.annual-report-metric {
    height: 100%;
    color: #173b32;
    border: 1px solid rgba(33, 150, 243, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.annual-report-metric .mud-icon-root {
    opacity: 0.85;
}

.annual-report-metric--collections {
    background: linear-gradient(180deg, rgba(232,245,233,0.98) 0%, rgba(248,252,248,1) 100%);
    border-color: rgba(76,175,80,0.22);
}

.annual-report-metric--expenses {
    background: linear-gradient(180deg, rgba(255,235,238,0.98) 0%, rgba(255,249,249,1) 100%);
    border-color: rgba(244,67,54,0.22);
}

.annual-report-metric--balance {
    background: linear-gradient(180deg, rgba(232,244,253,0.98) 0%, rgba(248,251,255,1) 100%);
    border-color: rgba(33,150,243,0.18);
}

.annual-report-insight {
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
}

.annual-report-timeline-card {
    background:
        radial-gradient(circle at top right, rgba(255, 183, 77, 0.16), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 250, 0.94));
}

.annual-report-month-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(120px, 1fr));
    gap: 0.75rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.annual-report-month-card {
    min-height: 132px;
    border-radius: 20px;
    padding: 0.95rem;
    border: 1px solid rgba(23, 59, 50, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    box-shadow: 0 12px 24px rgba(23, 59, 50, 0.05);
}

.annual-report-month-card strong {
    font-size: 1rem;
    color: #173b32;
}

.annual-report-month-card span {
    font-size: 0.78rem;
    color: #475569;
}

.annual-report-month-card__label {
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #173b32;
}

.annual-report-month-card--positive {
    background: linear-gradient(180deg, rgba(236, 253, 245, 1), rgba(220, 252, 231, 0.82));
}

.annual-report-month-card--negative {
    background: linear-gradient(180deg, rgba(254, 242, 242, 1), rgba(254, 205, 211, 0.78));
}

.annual-report-month-card--neutral {
    background: linear-gradient(180deg, rgba(248, 250, 252, 1), rgba(226, 232, 240, 0.75));
}

.annual-report-section-card {
    overflow: hidden;
}

.annual-report-section-card--collections {
    background: linear-gradient(180deg, rgba(248, 255, 251, 0.98), rgba(255, 255, 255, 0.96));
}

.annual-report-section-card--expenses {
    background: linear-gradient(180deg, rgba(255, 251, 245, 0.98), rgba(255, 255, 255, 0.96));
}

.annual-report-section-card--balance {
    background: linear-gradient(180deg, rgba(245, 250, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.annual-report-table {
    border-radius: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
}

.annual-report-table .mud-table-container {
    border-radius: 18px;
}

.annual-report-table table thead th {
    background: linear-gradient(180deg, #dcefe7 0%, #cfe6dd 100%);
    color: #173b32;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.annual-report-table table tbody td {
    vertical-align: top;
}

.annual-report-table table tbody tr:hover td {
    background-color: rgba(23, 59, 50, 0.035);
}

.annual-report-table--balance table thead th {
    background: linear-gradient(180deg, #d9ebfa 0%, #c9e0f4 100%);
}

.reporting-rollup-panels {
    border-radius: var(--mud-default-borderradius);
}

.reporting-rollup-panel {
    border: 1px solid rgba(23, 59, 50, 0.08);
    box-shadow: none;
}

.reporting-rollup-panel.page-card {
    padding: 0;
}

.reporting-rollup-panel .mud-expand-panel-header {
    min-height: 42px;
    padding: 0.55rem 0.85rem;
}

.reporting-rollup-panel .mud-expand-panel-content {
    padding: 0 0.85rem 0.85rem;
}

.unit-section-surface {
    padding: 0;
    border: 1px solid var(--mud-palette-divider);
    overflow: visible;
}

.unit-section-toolbar {
    display: flex;
    align-items: stretch;
    min-height: 58px;
    border-bottom: 1px solid var(--mud-palette-divider);
    background: var(--mud-palette-surface);
}

.unit-section-toolbar__tabs {
    display: flex;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.unit-section-toolbar__tabs::-webkit-scrollbar {
    display: none;
}

.unit-section-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 10px 20px;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    color: var(--mud-palette-text-secondary);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.unit-section-tab:hover,
.unit-section-tab:focus-visible {
    background: var(--mud-palette-action-default-hover);
    color: var(--mud-palette-primary);
    outline: none;
}

.unit-section-tab--active {
    color: var(--mud-palette-primary);
    border-bottom-color: var(--mud-palette-primary);
}

.unit-section-tab__label {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
}

.unit-section-tab__meta {
    font-size: 0.6875rem;
    line-height: 1.2;
    opacity: 0.68;
}

.reporting-section-surface {
    padding: 0;
    overflow: hidden;
}

.reporting-section-toolbar {
    border-bottom: 1px solid rgba(23, 59, 50, 0.08);
}

.monthly-unit-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.monthly-unit-list-tabs {
    display: none;
}

.monthly-unit-list-tab {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-width: 0;
    padding: 0.58rem 0.72rem;
    border: 1px solid var(--mud-palette-divider);
    border-radius: var(--mud-default-borderradius);
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-secondary);
    font-weight: 600;
}

.monthly-unit-list-tab span:first-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.monthly-unit-list-tab span:last-child {
    flex: 0 0 auto;
    font-size: 0.75rem;
    opacity: 0.72;
}

.monthly-unit-list-tab--active {
    border-color: var(--mud-palette-primary);
    background: color-mix(in srgb, var(--mud-palette-primary) 9%, var(--mud-palette-surface));
    color: var(--mud-palette-primary);
}

.monthly-unit-panel {
    min-width: 0;
    padding: 1rem;
    border: 1px solid rgba(23, 59, 50, 0.08);
    border-radius: var(--mud-default-borderradius);
    background: rgba(255, 255, 255, 0.94);
}

.monthly-unit-panel--attention {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.9), rgba(255, 255, 255, 0.96));
}

.monthly-unit-panel--paid {
    background: linear-gradient(180deg, rgba(240, 253, 244, 0.9), rgba(255, 255, 255, 0.96));
}

.statement-summary .mud-table {
    background: transparent;
}

.statement-context-card,
.statement-detail-card,
.statement-metric {
    padding: 0.9rem;
    border: 1px solid rgba(23, 59, 50, 0.08);
    border-radius: var(--mud-default-borderradius);
    background: rgba(255, 255, 255, 0.96);
}

.statement-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.statement-metric--remaining {
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.9), rgba(255, 255, 255, 0.96));
}

.annual-report-context-card--simple {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 248, 0.94));
}

.annual-report-metric--ending {
    background: linear-gradient(180deg, rgba(232,244,253,0.98) 0%, rgba(248,251,255,1) 100%);
    border-color: rgba(33,150,243,0.18);
}

.annual-report-grid-card {
    overflow: visible;
}

.annual-report-unified-grid {
    overflow: visible;
    max-height: none;
    border: 1px solid rgba(23, 59, 50, 0.08);
    border-radius: var(--mud-default-borderradius);
}

.annual-report-unified-table {
    width: 100%;
    min-width: 1160px;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.96);
}

.annual-report-unified-table th,
.annual-report-unified-table td {
    padding: 0.72rem 0.8rem;
    border-bottom: 1px solid var(--mud-palette-divider);
    text-align: right;
    vertical-align: middle;
    white-space: nowrap;
}

.annual-report-unified-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
    font-size: 0.78rem;
    font-weight: 700;
}

.annual-report-unified-table thead .annual-report-unified-table__label {
    z-index: 4;
    background: var(--mud-palette-surface);
}

.annual-report-unified-table__month {
    position: relative;
    text-align: center !important;
}

.annual-report-unified-table__month--current {
    color: var(--mud-palette-primary) !important;
    border-bottom-color: var(--mud-palette-primary) !important;
}

.annual-report-unified-table__month--current::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--mud-palette-primary);
}

.annual-report-unified-table__label {
    position: sticky;
    left: 0;
    z-index: 2;
    min-width: 220px;
    width: 220px;
    max-width: 220px;
    text-align: left !important;
    background: inherit;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

.annual-report-group-row td {
    text-align: right;
    color: var(--mud-palette-text-primary);
    font-size: 0.86rem;
    border-bottom: 1px solid var(--mud-palette-divider);
    background: color-mix(in srgb, var(--mud-palette-surface) 94%, var(--mud-palette-primary) 6%);
}

.annual-report-group-row .annual-report-unified-table__label {
    padding: 0;
    z-index: 3;
}

.annual-report-unified-table__label:has(.tour-step--active) {
    z-index: 1201;
    overflow: visible;
}

.annual-report-unified-table .tour-step--active {
    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.9),
        0 10px 28px rgba(15, 23, 42, 0.18);
}

.annual-report-group-row__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 44px;
    padding: 0.65rem 0.9rem 0.65rem 1rem;
    border-left: 4px solid var(--mud-palette-primary);
    background: transparent;
}

.annual-report-group-row__title {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.annual-report-group-row__title strong {
    min-width: 0;
    overflow-wrap: anywhere;
}

.annual-report-group-row__meta {
    color: var(--mud-palette-text-secondary);
    font-size: 0.78rem;
}

.annual-report-group-row--expenses .annual-report-group-row__content {
    border-left-color: var(--mud-palette-warning);
}

.annual-report-group-row--balance .annual-report-group-row__content {
    position: relative;
    border-left-color: var(--mud-palette-info);
    padding-right: 0.1rem;
}

.annual-report-group-row--balance .annual-report-group-row__title {
    flex-shrink: 0;
}

.annual-report-group-row--balance .annual-report-group-row__title strong {
    white-space: nowrap;
}

.annual-report-group-row--balance .annual-report-group-row__meta {
    position: absolute;
    right: 0.75rem;
    width: 6rem;
}

.annual-report-data-row {
    background: rgba(255, 255, 255, 0.96);
}

.annual-report-data-row .annual-report-unified-table__label {
    vertical-align: top;
}

.annual-report-total-row td {
    border-top: 2px solid color-mix(in srgb, var(--mud-palette-divider) 72%, transparent);
    background: color-mix(in srgb, var(--mud-palette-surface) 92%, var(--mud-palette-primary) 8%);
}

.annual-report-total-row--expenses td {
    background: color-mix(in srgb, var(--mud-palette-surface) 92%, var(--mud-palette-warning) 8%);
}

.annual-report-amount-cell {
    color: #374151;
}

.annual-report-amount-cell--positive.annual-report-amount-cell--collections {
    background: rgba(76, 175, 80, 0.045);
}

.annual-report-amount-cell--positive.annual-report-amount-cell--expenses {
    background: rgba(255, 193, 7, 0.05);
}

.annual-report-amount-cell--positive.annual-report-amount-cell--balance {
    background: rgba(33, 150, 243, 0.045);
}

.annual-report-amount-cell--negative {
    background: rgba(244, 67, 54, 0.055);
    color: #9f1239;
}

@media (max-width: 959.98px) {
    .annual-report-grid-card {
        min-width: 0;
        overflow: hidden;
    }

    .annual-report-unified-grid {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        background: #fff;
    }

    .statement-metric-grid {
        grid-template-columns: 1fr;
    }

    .monthly-unit-list-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .monthly-unit-split {
        display: block;
    }

    .monthly-unit-split--show-attention .monthly-unit-panel--paid,
    .monthly-unit-split--show-paid .monthly-unit-panel--attention {
        display: none;
    }

    .monthly-unit-panel {
        padding: 0.75rem;
    }
}

@media (max-width: 599.98px) {
    .annual-report-metric {
        padding: 0.82rem;
    }

    .annual-report-metric .mud-typography-h5 {
        font-size: 1rem;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    .annual-report-unified-table {
        min-width: 930px;
    }

    .annual-report-unified-grid {
        max-height: calc(100vh - 18rem);
        min-height: 320px;
    }

    .annual-report-unified-table {
        width: max-content;
    }

    .annual-report-unified-table th,
    .annual-report-unified-table td {
        padding: 0.55rem 0.42rem;
        font-size: 0.78rem;
    }

    .annual-report-unified-table__label {
        min-width: 132px;
        width: 132px;
        max-width: 132px;
    }

    .annual-report-group-row__content {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.18rem;
        min-height: 52px;
        padding: 0.5rem 0.55rem 0.5rem 0.65rem;
    }

    .annual-report-group-row__meta {
        font-size: 0.7rem;
    }

    .annual-report-group-row--balance .annual-report-group-row__content {
        padding: 0.5rem 0.55rem 0.5rem 0.65rem;
    }

    .annual-report-group-row--balance .annual-report-group-row__meta {
        position: static;
        align-self: flex-end;
        width: auto;
        text-align: right;
    }
}

@media (max-width: 959.98px) {
    .annual-reports-orbit {
        min-height: 180px;
        margin-top: 0.5rem;
    }

    .annual-reports-orbit__ring--outer {
        width: 180px;
        height: 180px;
    }

    .annual-reports-orbit__ring--inner {
        width: 116px;
        height: 116px;
    }

    .annual-reports-orbit__card {
        min-width: 94px;
        padding: 0.65rem 0.75rem;
    }

    .annual-reports-orbit__card--income {
        left: 10px;
    }

    .annual-reports-orbit__card--expense {
        right: 8px;
    }

    .annual-reports-orbit__card--balance {
        left: 38px;
    }
}


