﻿/* Account Balances */

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

/*.ledger-details-table .mud-table-row .mud-table-cell.custom-text-end {
    width: 188px;
}*/
.apply-credit-transaction-amount-header {
    width: 245px;
}

.apply-credit-amount-remaining-cell {
    text-align: left;
    width: 163px;
}

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

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

.custom-date-picker-width .mud-input {
    max-width: 280px;
    height: 29px;
}

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

.short-pay-card-header {
    white-space: normal;
    overflow: hidden;
    text-overflow: clip;
    font-weight: bold;
    word-wrap: break-word;
}

.short-pay-card-header:hover {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    font-weight: bold;
}

.short-pay-card-sub-header {
    font-weight: bold;
}

.short-pay-card-amount {
    font-weight: bold;
}

.modal-vertical-center {  
   position: absolute;  
   top: calc(45%);     /* Account for header of modal */  
   margin: 0;  
   width: calc(100% - 100px);  /* Max-width 700px*/  
   transform: translateY(-50%);  
   align-content: center;  
   -ms-transform: translateY(-50%);  
   height: auto; /* Allow height to expand dynamically */  
}

.recurring-modal-vertical-center {
    position: absolute;
    top: calc(50%); /* Account for header of modal */
    margin: 0;
    width: calc(100% - 50px); /* Max-width 600px*/
    transform: translateY(-50%);
    align-content: center;
    -ms-transform: translateY(-50%);
}

.custom-justify-end {
    justify-items: right;
}

.amount-remaining {
    color: #6c757d;
}

/* Hide elements on small screens (mobile) */
@media (max-width: 600px) {    
    .ledger-details-recurring-justify {
        flex-direction: column !important;
    }

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

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