#transactions tr td:nth-child(1) {
    width: auto;
}

#transactions-list input[name=transactionDate] {
    width: 55%;
}

#transactions-list input[name=transactionTime] {
    width: 40%;
}

#transactions tr td:nth-child(2) {
    width: 10%;
    padding: 5px;
}

#transactions tr td:nth-child(3) {
    width: 8%;
    padding: 5px;
}

#transactions tr td:nth-child(4) {
    width: 30%;
}

#transactions tr td:nth-child(5) {
    width: 10%;
    padding: 5px;
}

#transactions tr td:nth-child(6) {
    width: 25%;
    padding: 5px;
}

#transactions tr td:nth-child(1) input[type=date] {
    width: 55%;
}

#transactions tr td:nth-child(1) input[type=time] {
    width: 40%;
}

.add-transaction-menu-btn {
    display: block;
    width: 20px;
    height: 20px;
    background: url("../images/usd-square.svg") no-repeat 100% 100%;
    margin: 0 auto;
}

.add-transaction-menu {
    display: none;
    position: absolute;
    width: 250px;
    border: 1px solid #999;
    padding: 0;
    list-style: none;
    margin: 0;
}

.add-transaction-menu.active {
    display: block;
}

.add-transaction-menu li {
    border: 1px solid #999;
    background: #f0f0f0;
    padding: 5px;
    cursor: pointer;
}

.transaction-buttons {
    margin: 10px 0 0;
}

.transaction-buttons .btn, .transaction-actions .btn {
    padding: 5px 10px;
    border: 1px solid;
    border-radius: 5px;
    cursor: pointer;
    outline: none;
}

.btn-primary {
    border-color: #02515a !important;
    color: #fff;
    background: #20767f;
    background: linear-gradient(180deg, #20767f, #04535c);
}

.btn-primary:hover {
    background: #10666f;
    background: linear-gradient(180deg, #10666f, #00434c);
}

.btn-warning {
    border-color: #c4b049 !important;
    color: #2b2b2b;
    background: #f4e079;
    background: linear-gradient(180deg, #f4e079, #e4c059);
}

.btn-warning:hover {
    background: #e4d069;
    background: linear-gradient(180deg, #e4d069, #d4b049);
}

.btn-danger {
    color: #fff;
    border-color: #8c1111 !important;
    background: #bc4141;
    background: linear-gradient(180deg, #bc4141,#ac3131);
}

.btn-danger:hover {
    background: #ac3131;
    background: linear-gradient(180deg, #ac3131, #9c2121);
}

.particular-update {
    display: none;
    margin-right: 10px;
    padding-right: 10px;
    border-right: 1px solid #20767f;
}

.particular-update.active {
    display: inline-block;
}

.transaction-actions {
    display: none;
    position: fixed;
    width: 360px;
    height: auto;
    bottom: 5%;
    left: calc(50% - 180px);
    background: #ffffff;
    border: 1px solid #eee;
    z-index: 100;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px #999;
}

.transaction-actions .btn {
    margin: 0 5px 5px 0;
}

.transaction-actions.active {
    display: block;
}

#transactions-list .completed td {
    background: #c4ffb1 !important;
}

.transactions-and-operations {

}

.transactions-and-operations thead tr th, .transactions-list thead th {
    background: #fedf01;
    background: linear-gradient(180deg, #fedf01, #ebc11b);
    color: #000000;
    height: 25px;
    padding: 5px 10px;
}

.transactions-list {
    width: 100%;
}

.transactions-and-operations tbody tr:nth-child(2n) td {
    filter: brightness(96%);
}

.transactions-and-operations tbody td {
    padding: 5px 10px;
    background: #f0f0f0;
}

.transactions-and-operations tbody tr.not-completed td {
    color: #999999 !important;
}

.transactions-and-operations tbody tr.completed td, .transactions-and-operations tbody tr.is-operation td {
    color: #333333;
}

.transactions-and-operations tbody tr.price-warning td {
    background: #ffc;
}

.transactions-and-operations tbody tr.costs-warning td {
    background: #fcc;
}

.transactions-and-operations tbody tr.price-warning.costs-warning td {
    background: #ccf;
}

.transactions-and-operations tbody tr.cancelled td {
    font-style: italic;
    color: #cc0000;
}

.pagination .pagination-item {
    line-height: 2.5;
    padding: 5px 10px;
    border-radius: 5px;
    text-decoration: none;
    color: #fff;
    background: #20767f;
    background: linear-gradient(180deg, #20767f, #04535c);
}

.pagination .pagination-item:hover, .pagination .pagination-item.active {
    background: #10666f;
    background: linear-gradient(180deg, #10666f, #00434c);
}

#transactions-table-filters {
    width: auto;
    margin: 0 0 15px 0;
}

#transactions-table-filters select, #transactions-table-filters button {
    padding: 5px 10px;
    box-sizing: border-box;
    line-height: normal;
    border: 1px solid #999;
    border-radius: 5px;
    margin: 0 10px 0 0;
}

.edit-transaction-form {
    width: 100% !important;
    margin: 30px auto auto;
    display: flex;
    flex-direction: column;
}

.form-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0 0 0;
}

.form-row > div {
    width: 45%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.form-row > div:first-child {
    justify-content: space-between;
}

.fucking-stupid-coder-who-bind-everything-select2-must-die {
    width: 75% !important;
}

.edit-transaction-form input {
    height: 30px;
    border: 1px solid #9f9f9f;
    padding: 5px 10px;
    box-sizing: border-box;
    margin: 0 0 0 10px;
}

.edit-transaction-form__amount-input {
    width: 100px;
}

.edit-transaction-form__date-input {
    width: 125px;
}

.edit-transaction-form__time-input {
    width: 100px;
}

.form-row.comment-block {
    align-items: flex-start;
}

.form-row input[type=checkbox] {
    height: auto;
}

.form-row textarea {
    width: 70%;
    height: 100px;
    border: 1px solid #999 !important;
}

.btn-edit-transaction {
    padding: 5px;
    border-radius: 5px;
    width: 200px;
    margin: 20px 0 0 0;
}

.edit-transaction-table th {
    padding: 5px;
    background: #ccc;
    color: #373737;
}

.edit-transaction-table td {
    padding: 5px;
}

.edit-transaction-table td:nth-child(1), .edit-transaction-table td:nth-child(3),
.edit-transaction-table td:nth-child(4), .edit-transaction-table td:nth-child(5) {
    text-align: center;
}

.transaction-log-btn {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url("/images/history.svg");
}

.transaction-log-modal {
    display: none;
    width: 360px;
    position: fixed;
    top: 30%;
    left: calc(50% - 180px);
    border: 1px solid #999;
    flex-direction: column;
    background: #fff;
    z-index: 1000;
    max-height: 70%;
    overflow-y: scroll;
    box-sizing: border-box;
}
.transaction-log-modal.active {
    display: flex;
}
.close-transaction-log {
    cursor: pointer;
    color: #cc0000;
    align-self: flex-end;
    margin: 5px 15px 0 0;
    font-size: 18px;
}
.transaction-log-modal table td {
    padding: 5px;
    text-align: center;
}
.transaction-log-modal table tr:nth-child(2n) td {
    background: #f0f0f0;
}
.transaction-log-message {
    text-align: center;
    padding: 10px;
}

@media (min-width: 0) and (max-width: 480px)
{
    .transaction-log-modal table {
        display: table;
    }

    .transaction-log-modal table tr {
        display: table-row !important;
    }

    .transaction-log-modal table td {
        display: table-cell;
    }

    .transaction-log-modal {
        top: 0 !important;
        overflow-y: scroll;
        max-height: 100% !important;
    }

    /* edit transactions */
    #transactions-list tr {
        display: flex;
        flex-wrap: wrap;
    }

    #transactions-list td {
        display: block !important;
        height: auto !important;
        background: #eee;
        margin: 1px 1px 0 0;
        padding: 5px;
    }

    #transactions-list thead tr:nth-child(1) {
        display: none;
    }

    #transactions-list tr td:nth-child(1) {
        width: 10%;
    }

    #transactions-list tr td:nth-child(2) {
        width: 10%;
        text-align: center;
    }

    #transactions-list tr td:nth-child(3) {
        width: 79%;
        text-align: center;
    }

    #transactions-list tr td:nth-child(3)::before {
        content: "Проведена: ";
    }

    #transactions-list tr td:nth-child(4) {
        width: 100%;
    }

    #transactions-list tr td:nth-child(4)::before {
        content: "Дата: ";
    }

    #transactions-list tr td:nth-child(5) {
        width: 100%;
    }

    #transactions-list tr td:nth-child(5)::before {
        content: "Касса: ";
    }

    #transactions-list tr td:nth-child(6) {
        width: 50%;
    }

    #transactions-list tr td:nth-child(6)::before {
        content: "Тип: ";
        display: inline;
    }

    #transactions-list tr td:nth-child(7) {
        width: 49%;
    }

    #transaction-list tr td:nth-child(7)::before {
        content: "Оплата за: ";
        display: inline;
    }

    #transactions-list tr td:nth-child(8)::before {
        content: "Сумма: ";
    }

    #transactions-list tr td:nth-child(8) {
        width: 100%;
    }

    #transactions-list tr td:nth-child(9) {
        width: 100%;
    }

    #transactions-list input[name=transactionDate] {
        width: 50%;
    }

    #transactions-list input[name=transactionTime] {
        width: 34%;
    }

    #transactions-list input[name=transactionAmount] {
        width: 55%;
    }

    #transactions-list textarea[name=transactionComment] {
        width: 100%;
        height: 50px;
    }

    #transactions-list tr:last-of-type td:nth-child(1) {
        display:none !important;
    }
    /* /edit transactions */
    /* add new transactions */

    #transactions tr {
        display: flex;
        flex-wrap: wrap;
    }

    #transactions td {
        padding: 5px;
    }

    #transactions tr td:nth-child(1)
    {
        width: 100%;
    }

    #transactions tr td:nth-child(1) input[type=date] {
        width: 55%;
    }

    #transactions tr td:nth-child(1) input[type=time] {
        width: 43%;
    }

    #transactions tr td:nth-child(2) {
        width: 30%;
    }

    #transactions tr td:nth-child(3), #transactions tr td:nth-child(5) {
        width: 70%;
    }

    #transactions tr td:nth-child(4) {
        width: 25%;
    }

    /* /add new transactions */
}


