﻿/* Account Balances */

.ledger-details-table .mud-table-row .mud-table-cell input[inputmode="numeric"] {
    text-align: right;
}

.ledger-details-table .mud-table-row .mud-table-cell.custom-text-end {
    text-align: right;
}

.mud-input.custom-date-picker-width {
    max-width: 350px;
}

.ledger-details-table .mud-table-container {
    overflow-y: hidden;
}

.ledger-details-recurring-justify {
    -o-justify-content: flex-end;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
}

.ledger-details-table-error {
    min-height: 100vh;
    align-content: center !important;
}

/* Hide elements on small screens (mobile) */
@media (max-width: 600px) {
    .ledger-details-table .mud-table-container {
        overflow-x: hidden;
    }

    .ledger-details-recurring-justify > * {
        -o-justify-content: center;
        -webkit-justify-content: center;
        justify-content: center;
        flex-grow: 1 !important;
    }

    .hide-on-mobile {
        display: none;
    }
    
    .ledger-details-table .mobile-text-overflow {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 230px;
    }

    .mud-xs-table .mud-table-cell .custom-child-row {
        display: table-cell !important;
    }
    
    .mud-xs-table .mud-table-cell.custom-child-row-right {
        display: table-cell !important;
        text-align: right !important;
    }

    .ledger-details-table .mud-xs-table .mud-table-row .mud-table-cell {
        border: 0 !important;
    }

    .ledger-details-table .mud-xs-table .mud-table-root .mud-table-head.custom-header-row, .mud-xs-table .mud-table-root .mud-table-foot.custom-header-row {
        display: table-header-group !important;
    }

    .mud-xs-table .mud-table-row .mud-table-cell .custom-child-row {
        padding: 0.2rem;
    }

    tr.mud-table-row.custom-row-color {
        background-color: var(--mud-palette-background)
    }
}

/* Show elements only on small screens (mobile) */
@media (min-width: 601px) {
    .show-on-mobile {
        display: none;
    }
}
