﻿#panel_history{
    display: none;
    flex-direction: column;
    align-items: center;
}
.HistorySelector{
    width: 100%;
    display: flex;
    gap: 5px;
    border-radius: 50px;
    background-color: #ffffff;
    padding: 5px;
    box-sizing: border-box;
    overflow: scroll;
    margin-top: 15px;
}
.history_selector{
    width: 70px;
}
#historyList{
    width: 100%;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.historyItem{
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-radius: 10px;
    background-color: #f3f3f3;
    box-sizing: border-box;
}
.plus{
    background-color: #80ff0144;
}

.minus{
    background-color: #ff000044;
}

.historyItemLeft{
    display: flex;
    align-items: center;
}
.historyImg{
    height: 50px;
}
.historyZagolovok{
    font-family: "Onest";
    font-size: 16px;
    width: 180px;
    line-height: 1;
}
.historySumm{
    font-family: "Onest";
    font-size: 16px;
    line-height: 1;
}
.historyItemRight{
    display: flex;
    align-items: center;
    font-family: "Onest";
    color: #656877;
}
#moreHistory{
    width: 100%;
    height: 40px;
    background-color: #7a7a7a;
    font-family: "Onest";
    color: #383838;
    font-size: 16px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 140px;
}
#allHistoryInfo{
    width: 100%;
    display: flex;
    justify-content: center;
    font-family: "Onest";
    color: #7a7a7a;
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 150px;
}
#waitHistory{
    display: flex;
    justify-content: center;
}
.backButton{
    padding: 5px 7px;
    border-radius: 5px;
    background-color: #FFFFFF;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.arrow{
    transform: rotate(180deg);
    height: min-content;
    width: min-content;
    fill: #7a7a7a;
}
.nazadClassButton{
    font-family: "Onest";
    color: #7a7a7a;
}
.leftPageIt{
    display: flex;
    gap: 5px;
    align-items: center;
}
.historyHeader{
    justify-content: space-between;
}

/* History drawer popup */
#historyDrawer{
    background: #121212;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.45);
    max-height: 85vh;
}
#historyDrawer .drawer-handle{
    background: #3a3a3a;
}
#historyDrawer .history-drawer-header{
    border-bottom: none;
    align-items: stretch;
    padding: 12px 20px 20px;
    max-height: 85vh;
    overflow: hidden;
}
.history-drawer-top{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px;
}
.history-drawer-title{
    color: #fff;
    font-family: "Onest", sans-serif;
    font-size: 22px;
    font-weight: 700;
}
.history-drawer-close{
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
}
.history-drawer-list{
    width: 100%;
    margin-top: 4px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow-y: auto;
    max-height: calc(85vh - 160px);
    flex: 1;
    min-height: 0;
}
#historyDrawer .historyItem{
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    gap: 12px;
}
#historyDrawer .historyItemLeft{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
}
#historyDrawer .historyZagolovok{
    font-family: "Onest", sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    width: auto;
    line-height: 1.2;
}
#historyDrawer .historyDate{
    font-family: "Onest", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #868686;
    line-height: 1.2;
}
#historyDrawer .historyItemRight{
    font-family: "Onest", sans-serif;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}
#historyDrawer .history-amount-plus{
    color: #34C759;
}
#historyDrawer .history-amount-minus{
    color: #FF453A;
}
#historyDrawer .history-amount-neutral{
    color: #fff;
}
#historyDrawer .history-drawer-more{
    width: 100%;
    height: 48px;
    background-color: #252525;
    font-family: "Onest", sans-serif;
    color: #b0b0b0;
    font-size: 15px;
    font-weight: 500;
    border-radius: 14px;
    display: none;
    justify-content: center;
    align-items: center;
    margin-top: 16px;
    margin-bottom: 0;
    cursor: pointer;
    box-sizing: border-box;
}
#historyDrawer .history-drawer-end{
    width: 100%;
    display: none;
    justify-content: center;
    font-family: "Onest", sans-serif;
    color: #868686;
    font-size: 14px;
    margin-top: 14px;
    margin-bottom: 0;
}
#historyDrawer .history-drawer-wait{
    width: 100%;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 24px 0;
}
