/* #region Header heading with badge */
.fi-header-heading-badge-wrap {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Allow badge text to wrap instead of truncating (fi-wrapped class on outer badge
   removes outer truncate; this removes the inner label truncate too) */
.fi-badge.fi-wrapped .fi-badge-label {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
}
/* #endregion */

/* #region Detail table */
.fi-detail-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    line-height: 1.5rem;
}

.fi-detail-table-row {
    border-bottom: 1px solid rgb(233 234 236);
}

.fi-detail-table-row:last-child {
    border-bottom: none;
}

.fi-detail-table-label {
    padding: 0.5rem 1.5rem 0.5rem 0;
    font-weight: 500;
    white-space: nowrap;
    vertical-align: top;
    color: rgb(107 114 128);
    text-align: left;
}

.fi-detail-table-value {
    padding: 0.5rem 0;
    color: rgb(17 24 39);
    word-break: break-word;
}

.fi-detail-table-heading {
    padding: 1rem 0 0.25rem;
    font-weight: 600;
    font-size: 1rem;
    color: rgb(17 24 39);
    text-align: left;
}

.fi-detail-table-heading-row:first-child .fi-detail-table-heading {
    padding-top: 0;
}

.fi-detail-table-value-success {
    color: rgb(22 163 74);
}

.fi-detail-table-value-danger {
    color: rgb(220 38 38);
}

.fi-detail-table-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.fi-detail-table-icon-true {
    color: rgb(22 163 74);
}

.fi-detail-table-icon-false {
    color: rgb(220 38 38);
}

.fi-detail-table-link {
    color: rgb(234 88 12);
    text-decoration: none;
}

.fi-detail-table-link:hover {
    text-decoration: underline;
}

/* Dark mode */
.dark .fi-detail-table-row {
    border-bottom-color: rgb(55 65 81);
}

.dark .fi-detail-table-label {
    color: rgb(156 163 175);
}

.dark .fi-detail-table-value {
    color: rgb(229 231 235);
}

.dark .fi-detail-table-heading {
    color: rgb(229 231 235);
}

.dark .fi-detail-table-value-success {
    color: rgb(74 222 128);
}

.dark .fi-detail-table-value-danger {
    color: rgb(248 113 113);
}

.dark .fi-detail-table-icon-true {
    color: rgb(74 222 128);
}

.dark .fi-detail-table-icon-false {
    color: rgb(248 113 113);
}

.dark .fi-detail-table-link {
    color: rgb(251 146 60);
}
/* #endregion */


/* #region Date input */
.fi-fo-date-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}
.fi-fo-date-input-wrap .fi-input {
    flex: 1;
    min-width: 0;
}
.fi-fo-date-input-clear-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    margin-right: 0.25rem;
    color: rgb(156, 163, 175);
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 9999px;
    padding: 0;
    transition: color 0.15s;
}
.fi-fo-date-input-clear-btn:hover {
    color: rgb(107, 114, 128);
}
.dark .fi-fo-date-input-clear-btn {
    color: rgb(107, 114, 128);
}
.dark .fi-fo-date-input-clear-btn:hover {
    color: rgb(156, 163, 175);
}
.fi-fo-date-input-clear-icon {
    width: 1rem;
    height: 1rem;
}
.fi-fo-date-input-panel {
    position: absolute;
    z-index: 20;
    top: calc(100% + 0.5rem);
    left: 0;
    width: 18rem;
    background-color: white;
    border: 1px solid rgb(229, 231, 235);
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    user-select: none;
}
.dark .fi-fo-date-input-panel {
    background-color: rgb(31, 41, 55);
    border-color: rgb(75, 85, 99);
}
.fi-fo-date-input-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.fi-fo-date-input-header-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(17, 24, 39);
}
.dark .fi-fo-date-input-header-label {
    color: rgb(243, 244, 246);
}
.fi-fo-date-input-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    color: rgb(107, 114, 128);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}
.fi-fo-date-input-nav-btn:hover {
    background-color: rgb(243, 244, 246);
    color: rgb(17, 24, 39);
}
.dark .fi-fo-date-input-nav-btn:hover {
    background-color: rgb(55, 65, 81);
    color: rgb(243, 244, 246);
}
.fi-fo-date-input-nav-icon {
    width: 1.25rem;
    height: 1.25rem;
}
.fi-fo-date-input-day-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 0.25rem;
}
.fi-fo-date-input-day-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgb(107, 114, 128);
    padding: 0.25rem 0;
}
.dark .fi-fo-date-input-day-label {
    color: rgb(156, 163, 175);
}
.fi-fo-date-input-calendar {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}
.fi-fo-date-input-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    margin: auto;
    border-radius: 9999px;
    cursor: pointer;
    font-size: 0.875rem;
    font-family: inherit;
    color: rgb(17, 24, 39);
    background: transparent;
    border: none;
    padding: 0;
    transition: background-color 0.15s;
}
.dark .fi-fo-date-input-day {
    color: rgb(229, 231, 235);
}
.fi-fo-date-input-day:hover:not(.fi-disabled):not(.fi-selected) {
    background-color: rgb(243, 244, 246);
}
.dark .fi-fo-date-input-day:hover:not(.fi-disabled):not(.fi-selected) {
    background-color: rgb(55, 65, 81);
}
.fi-fo-date-input-day.fi-today {
    font-weight: 700;
    position: relative;
}
.fi-fo-date-input-day.fi-today::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0.125rem;
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 9999px;
    background-color: var(--c-500, rgb(234, 88, 12));
}
.fi-fo-date-input-day.fi-selected {
    background-color: var(--c-500, rgb(234, 88, 12));
    color: white;
    font-weight: 600;
}
.fi-fo-date-input-day.fi-selected::after {
    display: none;
}
.fi-fo-date-input-day.fi-highlighted {
    background-color: var(--c-100, rgb(255, 237, 213));
    color: var(--c-700, rgb(194, 65, 12));
}
.dark .fi-fo-date-input-day.fi-highlighted {
    background-color: rgba(234, 88, 12, 0.2);
    color: var(--c-400, rgb(251, 146, 60));
}
.fi-fo-date-input-day.fi-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.fi-input-wrp:has(.fi-fo-date-input-wrap) .fi-input-wrp-suffix {
    cursor: pointer;
}
/* #endregion */

/* #region Compact media upload */
.fi-compact-media-upload {
    width: 100%;
}

.fi-compact-media-upload-table-wrapper {
    border: 1px solid rgb(229 231 235);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.dark .fi-compact-media-upload-table-wrapper {
    border-color: rgb(55 65 81);
}

.fi-compact-media-upload-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    table-layout: fixed;
}

.fi-compact-media-upload-row {
    border-bottom: 1px solid rgb(229 231 235);
}

.fi-compact-media-upload-row:last-child {
    border-bottom: none;
}

.dark .fi-compact-media-upload-row {
    border-bottom-color: rgb(55 65 81);
}

.fi-compact-media-upload-cell {
    padding: 0.5rem 0.75rem;
    vertical-align: middle;
}

.fi-compact-media-upload-cell-name {
    width: auto;
    min-width: 0;
}

.fi-compact-media-upload-link,
.fi-compact-media-upload-name-loading {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fi-compact-media-upload-link {
    color: rgb(234 88 12);
    text-decoration: none;
}

.fi-compact-media-upload-link:hover {
    text-decoration: underline;
}

.fi-compact-media-upload-name-loading {
    color: rgb(156 163 175);
}

.fi-compact-media-upload-cell-size {
    white-space: nowrap;
    color: rgb(107 114 128);
    text-align: right;
    width: 70px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.dark .fi-compact-media-upload-cell-size {
    color: rgb(156 163 175);
}

.fi-compact-media-upload-cell-date {
    white-space: nowrap;
    color: rgb(107 114 128);
    text-align: right;
    width: 130px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.dark .fi-compact-media-upload-cell-date {
    color: rgb(156 163 175);
}

.fi-compact-media-upload-cell-actions {
    width: 44px;
    text-align: center;
    padding-left: 0.25rem;
    padding-right: 0.5rem;
}

.fi-compact-media-upload-delete-btn {
    padding: 0.25rem;
    border-radius: 0.375rem;
    color: rgb(234 88 12);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.fi-compact-media-upload-delete-btn:hover {
    background-color: rgb(254 243 199);
}

.dark .fi-compact-media-upload-delete-btn:hover {
    background-color: rgb(55 65 81);
}

.fi-compact-media-upload-delete-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.fi-compact-media-upload-dropzone {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1rem;
    border: 1px dashed rgb(209 213 219);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    background-color: transparent;
    min-height: 48px;
}

.fi-compact-media-upload-dropzone:hover {
    border-color: rgb(156 163 175);
    background-color: rgb(249 250 251);
}

.dark .fi-compact-media-upload-dropzone {
    border-color: rgb(55 65 81);
}

.dark .fi-compact-media-upload-dropzone:hover {
    border-color: rgb(75 85 99);
    background-color: rgb(31 41 55);
}

.fi-compact-media-upload-dropzone-dragging {
    border-color: rgb(234 88 12) !important;
    background-color: rgb(255 247 237) !important;
}

.dark .fi-compact-media-upload-dropzone-dragging {
    background-color: rgb(55 65 81) !important;
}

.fi-compact-media-upload-dropzone-text {
    color: rgb(107 114 128);
    font-size: 0.875rem;
    text-align: center;
}

.dark .fi-compact-media-upload-dropzone-text {
    color: rgb(156 163 175);
}

.fi-compact-media-upload-uploading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fi-compact-media-upload-loading-indicator {
    width: 1.25rem;
    height: 1.25rem;
}

.fi-compact-media-upload-uploading-text {
    color: rgb(107 114 128);
    font-size: 0.875rem;
}

.dark .fi-compact-media-upload-uploading-text {
    color: rgb(156 163 175);
}

.fi-compact-media-upload-error {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: rgb(254 242 242);
    border: 1px solid rgb(252 165 165);
    border-radius: 0.375rem;
    color: rgb(185 28 28);
    font-size: 0.875rem;
}

.dark .fi-compact-media-upload-error {
    background-color: rgb(55 65 81);
    border-color: rgb(185 28 28);
    color: rgb(252 165 165);
}

/* Delete Confirmation Modal */
.fi-compact-media-upload-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.5);
}

.fi-compact-media-upload-modal {
    width: 100%;
    max-width: 24rem;
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.dark .fi-compact-media-upload-modal {
    background-color: rgb(31 41 55);
}

.fi-compact-media-upload-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgb(229 231 235);
}

.dark .fi-compact-media-upload-modal-header {
    border-bottom-color: rgb(55 65 81);
}

.fi-compact-media-upload-modal-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgb(17 24 39);
    margin: 0;
}

.dark .fi-compact-media-upload-modal-title {
    color: rgb(243 244 246);
}

.fi-compact-media-upload-modal-body {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    color: rgb(75 85 99);
}

.dark .fi-compact-media-upload-modal-body {
    color: rgb(209 213 219);
}

.fi-compact-media-upload-modal-body p {
    margin: 0;
    word-break: break-word;
}

.fi-compact-media-upload-modal-body strong {
    color: rgb(17 24 39);
}

.dark .fi-compact-media-upload-modal-body strong {
    color: rgb(243 244 246);
}

.fi-compact-media-upload-modal-footer {
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    border-top: 1px solid rgb(229 231 235);
}

.dark .fi-compact-media-upload-modal-footer {
    border-top-color: rgb(55 65 81);
}

.fi-compact-media-upload-modal-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    border: none;
}

.fi-compact-media-upload-modal-btn-cancel {
    background-color: rgb(243 244 246);
    color: rgb(55 65 81);
}

.fi-compact-media-upload-modal-btn-cancel:hover {
    background-color: rgb(229 231 235);
}

.dark .fi-compact-media-upload-modal-btn-cancel {
    background-color: rgb(55 65 81);
    color: rgb(209 213 219);
}

.dark .fi-compact-media-upload-modal-btn-cancel:hover {
    background-color: rgb(75 85 99);
}

.fi-compact-media-upload-modal-btn-confirm {
    background-color: rgb(220 38 38);
    color: white;
}

.fi-compact-media-upload-modal-btn-confirm:hover {
    background-color: rgb(185 28 28);
}

/* Mobile responsive */
@media (max-width: 640px) {
    .fi-compact-media-upload-cell {
        padding: 0.5rem;
    }

    .fi-compact-media-upload-cell-date {
        display: none;
    }

    .fi-compact-media-upload-cell-size {
        width: 55px;
        font-size: 0.75rem;
    }

    .fi-compact-media-upload-cell-actions {
        width: 36px;
        padding-right: 0.375rem;
    }

    .fi-compact-media-upload-dropzone {
        padding: 0.625rem 0.75rem;
    }

    .fi-compact-media-upload-dropzone-text {
        font-size: 0.8125rem;
    }
}
/* #endregion */

/* #region Unit card badges */
.fi-card-badge { display: inline-block; padding: 0.125rem 0.5rem; font-size: 0.7rem; font-weight: 600; border-radius: 9999px; line-height: 1.2; }
.fi-card-badge-danger { background: rgb(239 68 68); color: white; }
.fi-card-badge-info { background: rgb(59 130 246); color: white; }
.dark .fi-card-badge-danger { background: rgb(185 28 28); }
.dark .fi-card-badge-info { background: rgb(29 78 216); }
/* #endregion */

/* #region Select trigger – single-line ellipsis (single-select only) */
.fi-select-input-value-ctn > .fi-select-input-value-label,
.fi-select-input-placeholder,
.fi-input-wrp .fi-select-input + span,
select.fi-select-input {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
/* #endregion */

/* #region Ignored bank transaction rows */
.bank-transaction-ignored {
    opacity: 0.45;
}
.bank-transaction-ignored:hover {
    opacity: 0.75;
}
/* #endregion */

/* #region Bank transaction detail (compact layout) */
.fi-bt-detail {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: rgb(31 41 55);
}

.dark .fi-bt-detail {
    color: rgb(229 231 235);
}

.fi-bt-detail-header {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
}

.fi-bt-detail-amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.fi-bt-detail-amount {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
    color: rgb(17 24 39);
}

.dark .fi-bt-detail-amount {
    color: rgb(243 244 246);
}

.fi-bt-detail-amount-success {
    color: rgb(22 163 74);
}

.fi-bt-detail-amount-danger {
    color: rgb(220 38 38);
}

.dark .fi-bt-detail-amount-success {
    color: rgb(74 222 128);
}

.dark .fi-bt-detail-amount-danger {
    color: rgb(248 113 113);
}

.fi-bt-detail-counterparty {
    font-weight: 600;
    word-break: break-word;
}

.fi-bt-detail-account {
    font-family: inherit;
    font-variant-numeric: normal;
    font-feature-settings: normal;
}

.fi-bt-detail-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 9999px;
    line-height: 1.2;
    white-space: nowrap;
}

.fi-bt-detail-badge-success {
    background-color: rgb(220 252 231);
    color: rgb(22 101 52);
}

.fi-bt-detail-badge-warning {
    background-color: rgb(254 249 195);
    color: rgb(133 77 14);
}

.dark .fi-bt-detail-badge-success {
    background-color: rgba(22 163 74 / 0.25);
    color: rgb(134 239 172);
}

.dark .fi-bt-detail-badge-warning {
    background-color: rgba(202 138 4 / 0.25);
    color: rgb(253 224 71);
}

.fi-bt-detail-symbols {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
}

.fi-bt-detail-symbol-label {
    color: rgb(107 114 128);
    margin-right: 0.25rem;
}

.dark .fi-bt-detail-symbol-label {
    color: rgb(156 163 175);
}

.fi-bt-detail-message {
    font-style: italic;
    word-break: break-word;
}

.fi-bt-detail-more {
    margin-top: 0.5rem;
    border-top: 1px solid rgb(229 231 235);
    padding-top: 0.5rem;
}

.dark .fi-bt-detail-more {
    border-top-color: rgb(55 65 81);
}

.fi-bt-detail-more-summary {
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(75 85 99);
    padding: 0.375rem 0;
    user-select: none;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.fi-bt-detail-more-summary::-webkit-details-marker {
    display: none;
}

.fi-bt-detail-more-summary::before {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 0.3rem solid currentColor;
    border-top: 0.25rem solid transparent;
    border-bottom: 0.25rem solid transparent;
    transition: transform 0.15s ease-in-out;
}

.fi-bt-detail-more[open] .fi-bt-detail-more-summary::before {
    transform: rotate(90deg);
}

.dark .fi-bt-detail-more-summary {
    color: rgb(209 213 219);
}

.fi-bt-detail-more-summary:hover {
    color: rgb(17 24 39);
}

.dark .fi-bt-detail-more-summary:hover {
    color: rgb(243 244 246);
}

.fi-bt-detail-more[open] .fi-detail-table {
    margin-top: 0.5rem;
}
/* #endregion */

.fi-btn.fi-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* #region Billings table — compact mobile card */
@media (max-width: 639px) {
    .fi-billings-row {
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 0.75rem;
        row-gap: 0.25rem;
        align-items: baseline;
        padding: 0.625rem 0.875rem;
    }

    .fi-billings-row > .fi-ta-cell {
        padding: 0;
    }

    .fi-billings-row .fi-ta-cell-label {
        display: none;
    }

    .fi-billings-row .fi-ta-cell-period {
        grid-column: 1;
        grid-row: 1;
        font-weight: 500;
    }

    .fi-billings-row .fi-ta-cell-type {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .fi-billings-row .fi-ta-cell-amount,
    .fi-billings-row .fi-ta-cell-amount .fi-align-end {
        text-align: start;
    }

    .fi-billings-row .fi-ta-cell-amount {
        grid-column: 1;
        grid-row: 2;
    }

    .fi-billings-row .fi-ta-cell-paid-amount {
        display: none;
    }

    .fi-billings-row .fi-ta-cell-remaining {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        font-weight: 600;
    }

    .fi-billings-row > .fi-ta-cell:last-child {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: end;
        margin-top: 0.125rem;
    }
}
/* #endregion */

/* #region Incoming payments table — compact mobile card */
@media (max-width: 639px) {
    .fi-incoming-payments-row {
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 0.75rem;
        row-gap: 0.125rem;
        padding: 0.625rem 0.875rem;
        align-items: baseline;
    }

    .fi-incoming-payments-row > .fi-ta-cell {
        padding: 0;
    }

    .fi-incoming-payments-row .fi-ta-cell-label {
        display: none;
    }

    .fi-incoming-payments-row .fi-ta-cell-bank-account\.account-number,
    .fi-incoming-payments-row .fi-ta-cell-offset-account-number {
        display: none;
    }

    .fi-incoming-payments-row .fi-ta-cell-created-at {
        grid-column: 1;
        grid-row: 1;
        font-weight: 500;
    }

    .fi-incoming-payments-row .fi-ta-cell-amount,
    .fi-incoming-payments-row .fi-ta-cell-amount .fi-align-end {
        text-align: end;
    }

    .fi-incoming-payments-row .fi-ta-cell-amount {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        font-weight: 600;
    }

    .fi-incoming-payments-row .fi-ta-cell-variable-symbol {
        grid-column: 1;
        grid-row: 2;
        font-size: 0.75rem;
        color: rgb(75 85 99);
    }

    .dark .fi-incoming-payments-row .fi-ta-cell-variable-symbol {
        color: rgb(156 163 175);
    }

    .fi-incoming-payments-row .fi-ta-cell-offset-name {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        text-align: end;
        font-size: 0.75rem;
        color: rgb(75 85 99);
    }

    .dark .fi-incoming-payments-row .fi-ta-cell-offset-name {
        color: rgb(156 163 175);
    }

    .fi-incoming-payments-row .fi-ta-cell-rent-summary {
        grid-column: 1 / -1;
        grid-row: 3;
        font-size: 0.75rem;
    }

    .fi-incoming-payments-row .fi-ta-cell-rent-summary:empty {
        display: none;
    }

    .fi-incoming-payments-row > .fi-ta-cell:last-child {
        grid-column: 1 / -1;
        grid-row: 4;
        justify-self: end;
        margin-top: 0.125rem;
    }
}
/* #endregion */

/* #region Rent debtors widget — compact mobile card */
@media (max-width: 639px) {
    .fi-rent-debtors-row {
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 0.75rem;
        row-gap: 0.125rem;
        padding: 0.625rem 0.875rem;
        align-items: baseline;
    }

    .fi-rent-debtors-row > .fi-ta-cell {
        padding: 0;
    }

    .fi-rent-debtors-row .fi-ta-cell-label {
        display: none;
    }

    .fi-rent-debtors-row .fi-ta-cell-unit\.building\.name {
        display: none;
    }

    .fi-rent-debtors-row .fi-ta-cell-unit\.name {
        grid-column: 1;
        grid-row: 1;
        font-weight: 500;
    }

    .fi-rent-debtors-row .fi-ta-cell-total-owed,
    .fi-rent-debtors-row .fi-ta-cell-total-owed .fi-align-end {
        text-align: end;
    }

    .fi-rent-debtors-row .fi-ta-cell-total-owed {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        font-weight: 600;
    }

    .fi-rent-debtors-row .fi-ta-cell-tenants {
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: 0.75rem;
        color: rgb(75 85 99);
    }

    .dark .fi-rent-debtors-row .fi-ta-cell-tenants {
        color: rgb(156 163 175);
    }

    .fi-rent-debtors-row .fi-ta-cell-overdue-since {
        grid-column: 1 / -1;
        grid-row: 3;
        font-size: 0.75rem;
    }

    .fi-rent-debtors-row > .fi-ta-cell:last-child {
        grid-column: 1 / -1;
        grid-row: 4;
        justify-self: end;
        margin-top: 0.125rem;
    }
}
/* #endregion */

/* #region Unpaired incoming payments widget — compact mobile card */
@media (max-width: 639px) {
    .fi-unpaired-payments-row {
        display: grid;
        grid-template-columns: 1fr auto;
        column-gap: 0.75rem;
        row-gap: 0.125rem;
        padding: 0.625rem 0.875rem;
        align-items: baseline;
    }

    .fi-unpaired-payments-row > .fi-ta-cell {
        padding: 0;
    }

    .fi-unpaired-payments-row .fi-ta-cell-label {
        display: none;
    }

    .fi-unpaired-payments-row .fi-ta-cell-created-at {
        grid-column: 1;
        grid-row: 1;
        font-weight: 500;
    }

    .fi-unpaired-payments-row .fi-ta-cell-amount,
    .fi-unpaired-payments-row .fi-ta-cell-amount .fi-align-end {
        text-align: end;
    }

    .fi-unpaired-payments-row .fi-ta-cell-amount {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        font-weight: 600;
    }

    .fi-unpaired-payments-row .fi-ta-cell-variable-symbol {
        grid-column: 1;
        grid-row: 2;
        font-size: 0.75rem;
        color: rgb(75 85 99);
    }

    .dark .fi-unpaired-payments-row .fi-ta-cell-variable-symbol {
        color: rgb(156 163 175);
    }

    .fi-unpaired-payments-row .fi-ta-cell-offset-name {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        text-align: end;
        font-size: 0.75rem;
        color: rgb(75 85 99);
    }

    .dark .fi-unpaired-payments-row .fi-ta-cell-offset-name {
        color: rgb(156 163 175);
    }

    .fi-unpaired-payments-row > .fi-ta-cell:last-child {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: end;
        margin-top: 0.125rem;
    }
}
/* #endregion */

/* #region Info alert */
.fi-info-alert {
    background: rgb(239 246 255);
    border: 1px solid rgb(191 219 254);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: rgb(30 64 175);
}

.dark .fi-info-alert {
    background: rgb(30 58 138 / 0.2);
    border-color: rgb(30 58 138);
    color: rgb(191 219 254);
}
/* #endregion */
