.widget.trade {
    align-items: flex-start;
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: calc(4 * var(--block-width) - var(--base-margin));
    margin: var(--base-margin);
}

.widget.trade h2 {
    margin: 0;
}

.widget.trade > .row > .subtitle {
    flex-grow: 2;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    color: gray;
    font-size: .8em;
}

.widget.trade .row {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    margin: 8px 0;
}

.widget.trade .row.price {
    margin: 16px 0;
}

.widget.trade .row.post-only .left {
    width: 130px;
}

.widget.trade .row.post-only .middle {
    width: 140px;
}

.widget.trade .row.hdr.list {
    margin-top: 32px;
}

.widget.trade .row.orders {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.widget.trade .row.orders .hdr {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 11px;
    font-weight: bold;
    padding: 0 8px;
}

.widget.trade .row.orders .cell {
    width: 20%;
    text-align: center;
    overflow: hidden;
}
.widget.trade .row.orders .line .cell.state {
    font-size: .8em;
}


.widget.trade .row.orders .cell.btns {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.widget.trade .row.orders .data {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    font-size: 14px;
}

.widget.trade .row.orders .line {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    transition: background .2s;
    padding: 8px;
    box-sizing: border-box;
}

.widget.trade .row.orders .line:hover {
    background: rgba(0, 0, 0, .05);
}

.widget.trade .row.orders .line button {
    font-size: 11px;
}

.widget.trade .buy-btn {
    background: #a2cd94;
    color: #fff;
    border: 0;
    padding: 24px 32px;
}

.widget.trade .buy-btn:hover {
    background: #b8dea9!important;
}

.widget.trade .sell-btn {
    background: #D86C6C;
    color: #fff;
    border: 0;
    padding: 24px 32px;
}

.widget.trade .sell-btn:hover {
    background: #f88585!important;
}

.widget.trade .row.hdr {
    margin-top: 0;
}

.widget.trade .row.hdr.place > .order-type {
    width: 100px;
}

.widget.trade .cell.amount {
    max-width: 49%;
}

.widget.trade .cell.price {
    max-width: 49%;
}