.inadd{background-color:#dff0d8}
.inadd.planned{background-color:#EFF8EC}
.inadd:hover{background-color:#d6e9c6}

.fcadd{background-color:#D8E9F0}
.fcadd.planned{background-color:#ECF3F8}
.fcadd:hover{background-color:#C6DFE9}

.deposit{background-color:#E6D8F0}
.deposit.planned{background-color:#F3ECF8}
.deposit:hover{background-color:#DDC2F1}

.fcdate{background-color:#D8E9F0}
.fcdate.planned{background-color:#ECF3F8}
.fcdate:hover{background-color:#C6DFE9}

.curr{font-weight:bold}
.table>tbody>tr.curr td{border-top:2px solid green; border-bottom:2px solid green}
.table>tbody>tr.curr td:first-child{border-left:2px solid green}
.table>tbody>tr.curr td:last-child{border-right:2px solid green}

.table>tbody>tr.curr.now td{border-top:2px solid red; border-bottom:2px solid red}
.table>tbody>tr.curr.now td:first-child{border-left:2px solid red}
.table>tbody>tr.curr.now td:last-child{border-right:2px solid red}

.table th{text-align:center}

#mortgage-list-ul .public0{background-color:#e9e9e9}
#mortgage-list-ul li{padding:2px}
#mortgage-list-ul .accent{color:maroon}

tr:hover{background-color:#fcf8e3}
.form-group.required label:after, .requir:before{content:" * "; color:red;}
.holiday .holiday-sign:after{content:" * ";font-weight:bold;color:red}
.holiday2 .holiday-sign:after{content:" * ";font-weight:bold;color:blue}
.legend{background-color:#eee}
.table > tfoot > tr.legend > td{padding-top:10px;font-weight:bold}
.highlight{border: 3px solid blue}

/* .footer {margin-top:10px; padding: 20px 0 10px; border-top: 1px solid #e5e5e5} */
#container {
    min-height: calc(100vh - 50px); /* Учитываем высоту футера */
    margin: 0 auto;
}
footer {
    border-top: 1px solid #e5e5e5;
    position: relative;
    height: 50px;
    width: 100%;
    text-align: center;
    line-height: 50px;
}

.thmb{
    display: block;
    padding: 4px;
    margin:5px 5px 5px 5px;
    line-height: 1.42857143;
    border-width:3px;
    border-radius: 4px;
    position:relative;
    overflow:auto;
    float:left;
    width:148px;
    height:100px
}
@media (min-width: 768px) {
    .thmb {
        width: 162px;
    }
}
@media (min-width: 992px) {
    .thmb {
        width: 141px;
    }
}
@media (min-width: 1200px) {
    .thmb {
        width: 148px;
    }
}

.lists .day{position:absolute;font-size:200%;right:0;top:15px;padding:10px}
.lists .name{position:absolute;bottom:0;right:0;font-size:80%;padding:5px}
.lists .sum{position:absolute;top:0;left:0;padding:5px}
.lists .line-data .edit{position: absolute;top:0;right:0;z-index:1;display:none}
.lists .line-data:hover .edit{display:block}
#panlist #status{float:right;padding:5px}

#operlist {display:none}
#operlist .number{text-align:right}
#operlistdata .type-plan {font-style:italic;background-color:#e5e5e5}

.btncontrol{width: 30px; text-align:center}
.res-sum{text-align:right}

.right-group{float:right}

.alert-blank{
color: #bbb;
background-color: #f6f6f6;
border-color: #ccc;
}

.alert-plan{
color: #8a6d3b;
background-color: #fcf8e3; /*#ffec88;*/
border-color: #d6b36c;
}

.alert-plan-overdue{
color: #a94442;
background-color: #f2dede;
border-color: #a94442;
}

.statpaycur{font-weight: bold; color:#4cae4c}

.comment-line{font-style:italic;font-weight:bold}

#result-body td{position:relative}
.edit-oper-date{position:absolute;left:0;top:0;cursor:pointer;color:darkgreen}
.edit-oper-num{position:absolute;right:0;top:0;cursor:pointer;color:darkgreen}
.delete-public-list{color:red;font-weight:bold}
.sum-edited{font-style:italic;font-weight:bold;color:green}
.minus-profit,.minus-profit:hover{color:maroon}
.minus-profit{text-decoration:underline}
.minus-profit:hover{text-decoration:none}

/*study*/
.data, #nc{width:50px;}
.nct{float:left;width:250px}
#nc{float:right;margin-right:10px;}
.datasel{width:60px;}
.alert-info-danger{background-color:#EFD9F7;color:#993AAD;border-color:#E6BCF1}
.alert-alert{padding:5px 20px; text-align:center;}

/*imoney*/
.ctg h4{padding: 8px 0 8px 45px;background-repeat:no-repeat; background-position: left 50%; margin: 3px}
.ctg.a1 h4{background-image:url('../img/imoney/1439749291_cart_64.png')}
.ctg.a2 h4{background-image:url('../img/imoney/1439735463_gas_station.png')}
.ctg.a3 h4{background-image:url('../img/imoney/1439749540_100.png')}
.ctg.a4 h4{background-image:url('../img/imoney/1439749640_restaurant.png')}
.ctg.a5 h4{background-image:url('../img/imoney/1440018260_200_CircledMinus.png')}
.ctg.a6 h4{background-image:url('../img/imoney/1443435880_cash_receiving.png')}
.ctg.a7 h4{background-image:url('../img/imoney/1445945220_Untitled-2-35.png')}
.ctg.a8 h4{background-image:url('../img/imoney/1445945727_meanicons_60.png')}
.ctg.sum h4{background-image:url('../img/imoney/1440018722_stock_sum.png')}
.imoney .number{text-align:right}
.imoney .return{color:#333;font-style:italic	}
.imoney .number.danger{font-weight:bold}
.imoney  .itog th{padding-top:20px;padding-bottom:20px;font-size:130%;}

/*collect*/
.type .date{background-repeat:no-repeat; background-position: left 50%;padding-left:18px;}
.type_kukuruza .date{background-image:url('../img/collect/kukuruza.png')}
table tbody tr td.date{vertical-align:middle}

.fbauth{height:40px; background-image:url('../img/auth_f.png'); background-position: left center; padding: 13px 0 0 45px; background-repeat: no-repeat}

/* combo check box */
.form-group-center {
    display: flex;
    justify-content: center;
    align-items: center;
}
.dropdown-menu li label {
    display: block;
    padding: 5px 10px;
    cursor: pointer;
}
.dropdown-menu li label:hover {
    background-color: #f8f9fa;
}
.dropdown-menu input[type="checkbox"] {
    margin-right: 10px;
}

/* paytype toggle buttons */
.paytype-btn {
    transition: all 0.2s;
}
.paytype-btn.active {
    background-color: #337ab7;
    color: #fff;
    border-color: #2e6da4;
}
.paytype-btn:hover {
    background-color: #e6e6e6;
}
.paytype-btn.active:hover {
    background-color: #286090;
    color: #fff;
}

/* subcategories */
.subcategories-container {
    width: 100%;
}
.subcategories-tags {
    min-height: 30px;
    margin-bottom: 5px;
}
.subcategory-tag {
    display: inline-block;
    background-color: #5bc0de;
    color: #fff;
    padding: 5px 10px;
    margin: 2px;
    border-radius: 3px;
    font-size: 12px;
    cursor: default;
}
.subcategory-tag .subcat-name {
    cursor: pointer;
}
.subcategory-tag .subcat-name:hover {
    text-decoration: underline;
}
.subcategory-tag .subcat-edit-input {
    background-color: #fff;
    color: #333;
    border: 1px solid #5bc0de;
    padding: 2px 4px;
    font-size: 12px;
    width: 100px;
}
.subcategory-tag .remove-tag {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
}
.subcategory-tag .remove-tag:hover {
    color: #d9534f;
}

/* subcategory label in operations list */
.subcategory-label {
    display: inline-block;
    background-color: #f0ad4e;
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

/* Group Filter Panel */
.group-filter-wrapper {
    background-color: #f8f9fa;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.group-filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.group-filter-container::before {
    content: "Фильтр по группам:";
    font-weight: bold;
    margin-right: 10px;
    color: #555;
}

.group-filter-btn {
    transition: all 0.3s ease;
    font-size: 13px;
    padding: 6px 12px;
}

.group-filter-btn:hover {
    background-color: #337ab7;
    color: #fff;
    border-color: #2e6da4;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.group-filter-btn.active {
    background-color: #5cb85c;
    color: #fff;
    border-color: #4cae4c;
}

/* Cards with reduced opacity */
.line-data {
    transition: opacity 0.3s ease;
}

/* Group management in edit form */
#group-select {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

/* Operation Filter Panel */
#operation-filter-panel {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.operation-filter-section {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.operation-filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.operation-type-btn,
.operation-subcat-btn {
    transition: all 0.2s;
    font-size: 13px;
    padding: 6px 12px;
}

.operation-type-btn:hover,
.operation-subcat-btn:hover {
    background-color: #337ab7;
    color: #fff;
    border-color: #2e6da4;
}

.operation-type-btn.active,
.operation-subcat-btn.active {
    background-color: #5cb85c;
    color: #fff;
    border-color: #4cae4c;
}

.operation-type-btn.active:hover,
.operation-subcat-btn.active:hover {
    background-color: #449d44;
    border-color: #398439;
}
