.sidebar {
    padding: 30px 20px;
    border: 1px solid #ccc;
    width: 320px;
    background: #fff;
    border-radius: 10px;
}



@media screen  and (max-width: 1200px){
    .sidebar {
        width: 250px;
    }

    .charges_wrapper {
        grid-template-columns: 250px 1fr !important;
    }
}
    

@media screen  and (max-width: 800px){
    .sidebar {
        width: 100% !important;
    }

    .charges_wrapper {
        grid-template-columns: 1fr !important;
    }
}


.sidebar a {
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 6px;
}
.sidebar a:hover {
    background: #eee;
}

.type_filter {
    margin-bottom: 30px;
}

.type_filter a.active {
    background: #8b00ff;
    color: #fff;
}
.type_filter a.selected {
    background: #ccc;
}

.date_filter input {
    width: 100%;
}
.status_filter select {
    width: 100%;
}

.filter_button {
    width: 100%;
}

.charges_wrapper {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
}

.charge__item {
    margin-bottom: 20px;
    width: 100%;
    padding: 30px 20px;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 10px;
}

.charge__item__header {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}
.charge__item__header h4 {
    margin-bottom: 4px;
}
.charge__item__header h5{
    color: #8b00ff;
    font-weight: 600;
}

.charge__item__header span {
    color: #fff;
    display: flex;
    margin-left: auto;
    width: fit-content;
    border-radius: 4px;
    padding: 3px 6px;
}
.charge__item__header span.red_status {
    background: rgb(170, 0, 0);
}
.charge__item__header span.green_status {
    background: #0a0;
}
.charge__item__header p {
    text-align: right;
}

.charge__item__footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.charge__item__footer span {
    font-size: 42px;
    font-weight: 300;
}
.charge__item__footer__buttons {
    display: flex;
    gap: 10px;
}


@media screen  and (max-width: 1200px){
    .charge__item__footer span {
        font-size: 24px !important;
        font-weight: 400 !important;
    }
    .charge__item__footer a {
        font-size: 14px !important;
    }
    .charge__item {
        padding: 16px 20px !important;
    }
}


@media screen  and (max-width: 800px){
    
    .charge__item__header h4 {
        margin-bottom: 4px;
        font-size: 16px;
    }
    .charge__item__footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}