:root{
    --translateX-buttons: 80%;
    --width-buttons-mob: calc(100% /2.2);
    --margin-history-item-mob: 15px;
}
/*filter history*/
.date_search:focus ~ .line, .search:focus ~ .line{
    animation: line-green .25s cubic-bezier(0.85, 0.24, 1, 1);
    background-color: #51b044;
}

.date_period_body{
    margin-right: 20px;
    margin-left: 0;
}
.date_item{
    display: flex;
}
.date_item:first-child{
    margin-right: 20px;
}
.field_item{
    display: inline-block;
    padding-left: 20px;
}
.date_period_items{
    margin: 0;
    /* justify-content: center; */
    align-items: center;
}
.history_search{
    margin-left: 20px;
}
.filter_history{
    justify-content: center;
}
.desc_date{
    font-size: 18px;
}
.history_search > .fa-search{
    color: #a1a1a1;
}

/*Table history transfers*/
.table_history_body{
    margin-top: 30px;
}
.tr_head{
    text-align: center;
}
.payment_point{
    max-width: 400px;
}
.text_color{
    color: red;
}
.actions_history button{
    border: 0;
    background-color: transparent;
    font-size: 18px;
    color: #898989;
    padding: 0 10px;
    position: relative;
    transition: .3s ease;
}
.actions_history button:hover{
    transform: scale(1.2);
    color: #129500;
}
button.fa-sync:hover{
    color: orange;
}
.actions_history button:hover:after{
    content: attr(data-tooltip);
    position: absolute;
    top: -130%;
    left: 50%;
    width: 145px;
    color: white;
    border-radius: 4px;
    background-color: #5e5e5ed6;
    padding: 3px 6px;
    font-size: 13px;
}
.history_body_mob{
    display: none;
}
@media(max-width: 768px){
    .date_period_body{
        margin-bottom: 15px;
        margin-left: 0;
    }
    .date_item:first-child{
        margin-bottom: 10px;
    }
    .history_search{
        width: 100%;
        margin-left: 0;
    }
    .search{
        width: calc(100% - 25px);
    }
    .table_history_body{
        display: none;
    }
    .history_body_mob{
        display: block;
        margin-top: 25px;
    }
    .history_item_mob{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        font-size: calc(13px + (16 - 13) * (100vw - 320px) / (768 - 320));
        background-color: white;
        padding: 15px 20px;
        height: 110px;
        cursor: pointer;
        margin: var(--margin-history-item-mob) 0;
        transition: .2s ease;
    }
    .active_item_mob{
        background-color: #e9e9e9;
        transform: translateX(calc(-1 * var(--translateX-buttons)));
        height: 110px;
    }
    .row_item_history{
        display: flex;
        justify-content: space-between;
    }
    .date_operation{
        font-weight: bold;
    }
    .status_operation{
        color: #939393;
        font-size: 13px;
    }
    .desc_sum_operation{
        float: right;
    }
    .history_body_items_mob{
        display: flex;
        flex-direction: row;
        position: relative;
    }
    .history_buttons_mob{
        display: none;
        height: calc(100% - 2 * var(--margin-history-item-mob));
    }
    .active_item_mob ~ .history_buttons_mob{
        display: flex;
        position: absolute;
        right: 0;
        top: 15px;
        animation: width-calc .15s ease;
        width: calc(100% - (100% - var(--translateX-buttons)));
    }

    .active_item_mob ~ .history_buttons_mob > button:before{
        position:absolute;
        top: calc(50% - 40px);
        left: calc(50% - 10px);
        font-size: 17px;
    }
    .active_item_mob ~ .history_buttons_mob > button{
        position: relative;
    }
    .active_item_mob ~ .history_buttons_mob > button:after{
        content: attr(data-tooltip);
        animation: text-opacity 1s ease;
        font-size: 12px;
        left: calc(50% - (50% / 2));
        position: absolute;
        width: 50%;
        color: white;
        word-break: break-word;
        line-height: 1.3;
        top: calc(50% - 15px);
    }
    .active_item_mob ~ .history_buttons_mob > .fa-sync{
        animation: width-100 .2s ease;
        background-color: #51b044;
        color: white;
        height: 100%;
        outline: none;
        border: 0;
        width: var(--width-buttons-mob);
    }
    .active_item_mob ~ .history_buttons_mob > .fa-paper-plane{
        animation: width-100 .2s ease;
        background-color: #2d3540;
        height: 100%;
        outline: none;
        color: white;
        border: 0;
        width: var(--width-buttons-mob);
    }
    .active_item_mob ~ .history_buttons_mob > .fa-print{
        animation: width-100 .05s ease;
        background-color: #202731;
        height: 100%;
        outline: none;
        color: white;
        border: 0;
        width: var(--width-buttons-mob);
    }

}
@media (max-width: 400px) {
    .date_item{
        flex-direction: column;
    }
}
@keyframes width-100{
    0%{
        width: 0;
    }
    100%{
        width: var(--width-buttons-mob);
    }
}
@keyframes width-calc{
    0%{
        width: 0;
    }
    100%{
        width: calc(100% - (100% - var(--translateX-buttons)));
    }
}
@keyframes text-opacity{
    0%{
        opacity: 0;
    }
    100%{
        opacity: 1;
    }
}