.form-check [type="checkbox"]:not(:checked) + .form-check-sign::before, .form-check [type="checkbox"]:checked + .form-check-sign::before, .form-check [type="checkbox"] + .form-check-sign::before { top: 3px; }
.form-check [type="checkbox"]:not(:checked) + .form-check-sign::after, .form-check [type="checkbox"]:checked + .form-check-sign::after, .form-check [type="checkbox"] + .form-check-sign::after { top: 1px; left: 1px; }

.client-block, .history-block {
    border-radius: 8px;
    border: 1px solid black;
}

.edit-client, .edit-operation {
    cursor: pointer;
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
    font-size: 18px;
}

.status.blue { color:#25c1ec !important; }
.status.green { color:#0a9f03 !important;}
.status.red { color:#f00 !important;}
.status.gray { color:#8a8a8a !important;}

.custom-header { padding: 5px 15px; margin: 0 -5px; border-radius: 10px; }
.blue_light_bg { background-color:#e9f9fd !important; }
.green_light_bg { background-color:#e4fce3 !important;}
.red_light_bg { background-color:#fdecec !important;}
.gray_light_bg { background-color:#e8e8e8 !important;}

hr { border-top: 1px solid rgba(0,0,0,.5); }

.history-block {
    input[name=date_m_disabled] {
        cursor: default;
        text-align: center;
        width: 25%;
        padding: 0 0 0 6px;
        border: none;
        border-bottom: 1px solid #ddd;
        border-radius: 0;
        color: unset;
        background: none;
    }
    input[name=date_m] {
        cursor: pointer;
        text-align: center;
        width: 25%;
        padding: 0 0 0 6px;
        border: none;
        border-bottom: 1px solid #ddd;
        border-radius: 0;
        color: #1572E8;
        background: none;
    }
}

.buyout_surcharge_sell #window5 { width: 580px; }
.buyout_surcharge_sell #window5 .summa_label { width: 20%; font-size: 18px !important; }
.buyout_surcharge_sell #window5 #summa_div { display: flex; align-items: center; width: 80%; font-size: 18px !important; font-weight: bold; color: #0a9f03; }
.buyout_surcharge_sell #window5 .header { font-size: 18px !important; }

.dops-dropdown button:not([disabled]) { cursor: pointer; }
.dops-dropdown button:active { color: #16181b; background-color: #ececec; }
.dops-dropdown button.sold-dop { background-color: #929292 !important; border-color: #929292 !important; }

#operation_type a { padding: 6px 14px 7px; }
#operation_type #type_5.active { background-color: #31CE36 !important; }
#operation_type #type_6.active { background-color: #F00 !important; }

.card-action #protocol label, .card-action .loading { margin: 6.7px 0; }

@media only screen and (max-width:767px) {
    .btn.action { padding: 4px 8px; }
    .card .card-action { padding: 15px; }
    .btn.btn-danger.action { margin-right: 10px !important; }

    .mobile-page-header { padding-bottom: 0 !important; }
    .mobile-page-header .page-title { padding-top: 10px; }
    .breadcrumbs li.separator { padding: 0; }

	.mobile-doc-foto {
        max-width:  unset !important;
        margin-right: 0 !important;
        padding: 15px 0 0 0 !important;
    }

    .client-block .mb-sm-2 { margin-bottom: .5rem !important; }
    .client-block .mt-sm-2 { margin-top: .5rem !important; }

    .history-block .mb-sm-2 { margin-bottom: .5rem !important; }
    .history-block .mt-sm-2 { margin-top: .5rem !important; }
    .history-block {
        padding: 5px 10px !important;
        margin: 5px 10px !important;
    }

    .mobile-history-buttons { display: flex; flex-direction: column; text-align: center !important; padding: 10px; }
    .mobile-history-buttons button { padding: 4px 8px; margin: 0.2rem 0.6rem !important; }
    
	#search { margin-bottom: 5px !important; }

	#types_a { display: flex; flex-direction: column; }

	.a_filial.btn { margin: 0.2rem 0 !important; }

	.buyout_surcharge_sell #window5 { width: 400px; height: unset !important; }
    .buyout_surcharge_sell #window5 .summa_label { width: 30%; font-size: 16px !important; }
    .buyout_surcharge_sell #window5 #summa_div { width: 70%; font-size: 16px !important; }
    .buyout_surcharge_sell #window5 #action { margin-bottom: 20px; }
    .buyout_surcharge_sell #window5 .header { font-size: 16px !important; }

    .sendToShop #window5 #action { height: 72px; }

    .dop #window5 #action { height: 72px; }
    
    .mobile-operation-add { padding-top: 0; }
    .mobile-operation-add label { display: none; }

    .mobile-change { padding-left: 20px !important; }

    label[for=proba_585], label[for=proba_750], label[for=proba_999] { margin-top: 10px; margin-bottom: 5px !important; }
    .left-side { padding-left: 10px; }
}
@media (min-width: 1500px) {
    .main-panel { max-width: 1360px; }
    .fullwidth-style .container { max-width: 1360px; }
    .card.filters { max-width: 1330px; }
}