/*
***********************
 Trading balance
***********************
*/

.balance-widget-wrapper { 
    height: 44px;
    width: 100%;
    background-color: var(--color-primary-label-bg);
}
.balance-widget-wrapper + .alert-danger {
    margin-top: 15px;
    margin-bottom: 0px;
    width: 100%;
}
.balance-widget {
    display: flex;
   justify-content: space-between;  
   min-height: 42px;
    overflow: hidden;
}
.balance-widget-total {
    background-color: var(--color-total);
    color: var(--color-text-on-total);
    flex: 0 0  214px;
    border-radius: 0 5px 5px 0;
    font-size: var(--font-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}
.balance-widget-total span {
    text-transform: uppercase;
}
.balance-widget-coins {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;

} 
.balance-widget-short-view { 
    display: flex;
    align-items: center;
    justify-content: stretch;
    padding: 10px;
    text-transform: uppercase;
    flex: 1;
    color: var(--color-account-name)!important;
}
.balance-widget-short-view h5 {
    margin: 0 5px 0 0;
    color: var(--color-account-balance);
    font-size: var(--font-body);
}
.balance-widget-short-view i{
    margin-right: 5px; 
    filter: grayscale(100%);
    width: 10px;
    height: 10px; 
}
.balance-widget-view-more {
    flex-grow: 0;
    margin-right: 10px;
    min-width: 82px;
    text-align: right;
    text-decoration: none !important;
}
.balance-widget-view-more .fa-angle-down {
    transform-origin: 50% 40%;
    margin-left: 5px;
    transition: all .5s ease;
    display: block;
    margin-top: 4px;
    float: right;
}
.balance-widget-view-more[aria-expanded="true"] .balance-widget-view-more--close {
    display: none;
}
.balance-widget-view-more[aria-expanded="true"] .fa-angle-down {
    transform: rotate(-180deg);
}
.balance-widget-view-more[aria-expanded="false"] .balance-widget-view-more--open {
    display: none;
}
.balance-widget-short-view div {
    flex-grow: 1;
    display: flex;
    align-items: center;
    color: var(--color-forms-text);
}
@media (max-width: 992px) {
    .balance-widget-short-view div:nth-child(n+4) {
        display: none;
    }
}
@media (max-width: 768px) {
    .balance-widget-short-view div {
        display: none;
    }
}
@media (max-width: 576px) {
    .balance-widget-wrapper {
        height: auto;
    }
    .balance-widget-short-view h5{
        margin-right: 5px;
    }
    .balance-widget-short-view div{
        display: none;
    }
    .balance-widget-total {
        flex-direction: column;
        height: auto;
        flex: 0 0 50%;
    }
    .balance-widget-total span {
        display: block;
    }
    .balance-widget-long-view td {
        font-size: var(--font-body);
    }
    .balance-widget-long-view td:nth-child(n + 4 ),
    .balance-widget-long-view th:nth-child(n + 4 ) {
        display: none;
    }
}

.balance-widget-long-view {
    background-color: var(--color-primary-label-bg);
    border-radius: 0 0 5px 5px;
    border: 1px solid var(--color-primary-label-bg-darker);
    border-top: 0px;
    position: relative;
    z-index: 100;
    padding: 10px 10px 0;
    margin: -2px -1px;
    box-shadow: var(--color-dropdown-shadow);
    max-height: 300px;
    overflow: auto;
    /*//box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);*/
}
.balance-widget-long-view table {
        margin-bottom: 0;
}
.balance-widget-long-view table th{
    border: 0;
    color: var(--color-table-lg);
    font-size: var(--font-lg-sm);
    font-weight: normal;
}
.balance-widget-long-view td {
    font-size: var(--font-lg-sm);
    height: 44px;
}
.balance-widget-long-view td .is-fall {
    font-size: var(--font-medium-sm);
}
@media (max-width: 576px) {
    .balance-widget-long-view {
        position: absolute;
    }
    .balance-widget-long-view td {
        font-size: var(--font-body);
    }
    .balance-widget-long-view td:nth-child(n + 4 ),
    .balance-widget-long-view th:nth-child(n + 4 ) {
        display: none;
    }
}
@media (max-width: 380px) {
    .balance-widget-long-view td i {
        display: none;
    }
}
@media (max-width: 360px) {
    .balance-widget-total {
        flex-basis: 43%;
    }
    .balance-widget-short-view {
        padding-right: 0px;
    }
}
