// Filter {
#filter {
    position: relative;

    .container {
        position: relative;
    }

    &.filter_in_catalog:not(.visible) {
        display: none;
    }

    &.filter_in_catalog {
        .container {
            padding-top: 0;
            padding-bottom: 0;
            margin-bottom: 40px;

            @media all and (max-width: 1420px) {
                margin-left: 0;
                margin-right: 0;
                width: 100%;

                .filter_header .button {
                    bottom: 10px;
                }
            }

            @media all and (max-width: 768px) {
                bottom: 40px;
            }
        }
    }

    .filter_header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 40px;

        .button {
            width: calc(33.333% - 21px);

            @media all and (max-width: 1279px) {
                width: calc(50% - 15px);
                position: absolute;
                right: 0;
                bottom: 90px;
            }

            @media all and (max-width: 1280px) {
                bottom: 50px;
            }

            @media all and (max-width: 768px) {
                width: 100%;
                bottom: 60px;
            }
        }
    }

    .filter_body {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;

        .filter_column {
            width: calc(33.333% - 21px);

            @media all and (max-width: 1279px) {
                width: calc(50% - 15px);
                margin-bottom: 35px;

                &:nth-child(3) {
                    margin-bottom: 0;
                }
            }

            @media all and (max-width: 768px) {
                width: 100%;
                margin-bottom: 24px;

                &:last-child {
                    margin-bottom: 100px;
                }
            }
        }

        .form_field {
            width: 100%;
            margin-bottom: 10px;


        }

        .fieldgroup {
            width: 100%;

            .form_field {
                width: calc(50% - 20px);

                @media all and (max-width: 768px) {
                    width: calc(50% - 4px);
                }
            }
        }
    }
}

// Catalog smamm filter 
#catalog_small_filter {
    margin-bottom: 40px;

    &.hidden {
        display: none;
    }

    .filter_body {
        display: flex;
        justify-content: flex-end;

        select {
            margin-right: 30px;
            width: 306px;
        }

        button {
            width: 220px;
        }

        @media all and (max-width: 1280px) {
            justify-content: space-between;

            .form_field {
                width: calc(33.333% - 30px);

                select {
                    width: 100%;
                }
            }

            button {
                width: 33.3333%;
            }
        }

        @media all and (max-width: 768px) {
            display: block;

            .form_field,
            button {
                width: 100%;
                margin-bottom: 8px;
            }
        }
    }
}

// Order
#order {

    .order_form {
        position: relative;
        margin: 0;

        @media all and (max-width: 960px) {
            margin-top: -60px;
        }

        @media all and (max-width: 768px) {
            margin: 0;
        }

        .order_email {
            display: flex;
            align-items: center;
            position: absolute;
            z-index: 1;
            background: #EDEFF5;
            height: 235px;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            margin: auto;

            p {
                width: 320px;
                font-size: 24px;
                line-height: 45px;
                padding: 0 20px;

                @media all and (max-width: 1280px) {
                    width: 220px;
                    font-size: 13px;
                    line-height: 20px;
                }
            }

            @media all and (max-width: 768px) {
                position: relative;
                height: auto;
                margin-bottom: 25px;

                p {
                    padding: 0;
                }
            }
        }

        form {
            width: 750px;
            background: var(--blue);
            box-sizing: border-box;
            padding: 55px 90px;
            margin: auto;
            margin-left: 390px;
            position: relative;
            z-index: 2;

            @media all and (max-width: 1420px) {
                width: 550px;
                margin-left: 320px;
            }

            @media all and (max-width: 960px) {
                width: 50%;
                padding: 15px 25px;
                margin-left: 285px;
            }

            @media all and (max-width: 768px) {
                width: auto;
                margin-left: -16px;
                margin-right: -16px;
                padding: 25px 16px;
            }

            input {
                margin-bottom: 15px;
                background: rgba(255, 255, 255, 0.2);
                color: #fff;

                &::placeholder {
                    color: #fff;
                }

                @media all and (max-width: 1280px) {
                    margin-bottom: 15px;
                }
            }

            .policy {
                position: relative;
                z-index: 2;
                margin: 5px 25px 45px 25px; 

                @media all and (max-width: 1280px) {
                    margin-top: -5px;
                    margin-bottom: 25px;
                    margin-left: 0;
                    margin-right: 0;
                }

                label {
                    color: #fff;
                    font-weight: 300;

                    &:before {
                        background: #fff;
                        border-radius: 0;
                    }
                }

                input:checked+label:before {
                    border-color: #fff;
                    background: url("/assets/images/icons/checkbox_blue.svg") no-repeat center #fff;
                }
            }

            .button {
                display: inherit;
                margin-left: auto;
            }
        }
    }
}

// Login
.login {
    max-width: 610px;

    .login_with {
        display: flex;
        align-items: center;
        margin-bottom: 50px;
        justify-content: flex-start;

        p {
            margin-right: 20px;
        }

        .tabs {
            .tab {
                margin-right: 0;
                &:not(.active) {
                    background-color: var(--inactive);
                }
            }
        }
    }

    .button-group {
        display: flex;
        align-items: center;
        justify-content: flex-end;

        .button {
            margin-left: 30px;
            display: flex;

            &:first-child {
                width: auto;
            }
        }
    }

    .form_field {
        margin-bottom: 15px;

        &.error {
            margin-bottom: 25px;
        }
    }

    input[name="login"] {
        padding-left: 32px;
        background: url("/assets/images/icons/icon-login.svg") no-repeat 8px 50%;
    }

    input[name="pass"] {
        padding-left: 32px;
        background: url("/assets/images/icons/icon-pass.svg") no-repeat 8px 50%;
    }

    .button {
        width: 90px;
        display: block;
        margin-left: auto;
    }

    @media all and (max-width: 960px) {
        max-width: 440px;
        form {
            max-width: 400px;
        }
    }

    @media all and (max-width: 768px) {
        .login_with {
            display: block;
            margin-bottom: 30px;

            p {
                margin-bottom: 10px;
            }

            .tabs {
                width: 100%;
                .tab {
                    width: 50%;
                    text-align: center;
                }
            }
        }

        .button-group {
            flex-wrap: wrap;
            justify-content: center;

            .button {
                margin-left: 0;
            }

            button {
                order: 1;
                width: 100%;
            }

            a {
                order: 2;
                display: inline-flex;
            }
        }
    }

    &.recovery {
        max-width: 815px;

        p {
            &.full {
                width :100%;
            }
        }

        .message {
            margin-bottom: 15px;
        }

        form {
            display: flex;
            justify-content: space-between;

            .form_field {
                width: calc(100% - 205px);
            }

            .button {
                width: 175px
            }

            &.newPass_form {
                flex-wrap: wrap;
            }
        }

        .resend {
            display: flex;
            align-items: center;
            justify-content: flex-start;

            p {
                margin-right: 30px;
            }

            .button {
                margin-left: 0;
                width: auto;
            }
        }

        @media all and (max-width: 960px) {
            form {
                max-width: 100%;
            }
        }

        @media all and (max-width: 768px) {
            form {
                display: block;

                .form_field, .button {
                    width: 100%;
                }
            }

            .resend {
                display: block;
                text-align: center;
                margin-top: 15px;

                p {
                    margin-right: 0;
                }

                .button {
                    margin-left: auto;
                    margin-right: auto;
                }
            }
        }
    }
}


// Поиск договора в лк
.contract_search {
    margin-bottom: 40px;

    @media all and (max-width: 1600px) and (min-width: 1280px) {
        margin-bottom: 30px;
    }

    form {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .form_field {
            &.full {
                width: 100% !important;
                margin-right: 30px !important;

                @media all and (max-width: 960px) {
                    margin-right: 0 !important;
                }
            }

            &:first-child {
                width: calc(50% - 15px);
                min-width: calc(50% - 15px);
                margin-right: 15px;
            }

            &:nth-child(2),
            &:nth-child(3) {
                width: 100%;
                margin-right: 15px;
            }

            &.single {
                width: 100%;
                margin-right: 80px;
            }

            .button {
                width: 158px;
                min-width: 158px;

                @media all and (max-width: 768px) {
                    display: none;
                }
            }

            input + label {
                display: none;
            }
        }
    }

    @media all and (max-width: 960px) {
        margin-bottom: 20px;
        form {
            flex-wrap: wrap;
            justify-content: flex-start;

            .form_field {
                &:first-child {
                    margin-bottom: 15px;
                    width: 100%;

                    &.single {
                        width: calc(100% - 105px);
                        margin-right: 30px;
                        margin-bottom: 0;
                    }
                }

                &:nth-child(2),
                &:nth-child(3) {
                    width: 25%;
                    margin-right: 30px;
                }
            }

            .button {
                margin-left: auto;
            }
        }
    }

    @media all and (max-width: 768px) {
        form {
            justify-content: space-between;

            .form_field {
                margin-right: 0;

                &:first-child {
                    margin-right: 0;
                    margin-bottom: 15px;
                    width: 100%;

                    &.single {
                        width: 100%;
                        margin-right: 0px;
                    }
                }

                &:nth-child(2),
                &:nth-child(3) {
                    width: calc(50% - 4px);
                    margin-right: 0px;

                    input {
                    }
                }

                .date_input, input[type="date"] {
                    height: 55px;
                    background-position: 8px 14px;
                    position: relative;
                    padding-bottom: 8px;

                    &::placeholder {color: transparent}

                    &[value=""] + label {
                        display: inline-block;
                        position: absolute;
                        left: 32px;
                        top: 10px;
                        z-index: 2;
                        font-size: 13px;
                        line-height: 20px;
                        color: #919399;
                    }
                }
            }

            .button {
                margin-left: auto;
                width: 100%;
                margin-top: 15px;
                background: var(--blue); 
                color: #fff;

                display: none;

                &:disabled {
                    opacity: 0.48;
                }
            }
        }
    }
}

// Акты сверок
.reconciliation_form {
    &:not(.small) {
        margin-bottom: 35px;
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;

        p {
            width: 100%;
            font-weight: 700;
            margin-bottom: 20px;
        }

        .form_group {
            width: calc(65% - 8px);
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;

            &:last-child {
                width: calc(35% - 8px);
            }
        }

        .form_field {
            width: calc(50% - 8px);
        }

        .button {
            width: calc(40% - 8px);

            &:last-child {
                width: calc(60% - 8px);
            }
        }

        @media all and (max-width: 1279px) {
            .form_group, .form_group:last-child {
                width: calc(50% - 8px);
 
                
            }
        }

        @media all and (max-width: 768px) {
            p {
                margin-bottom: 8px;
            }
            
            .form_group, .form_group:last-child {
                width: 100%;
            }

            .form_field {
                margin-bottom: 15px;
            }

            .button, .form_field {
                width: calc(50% - 4px);
    
                &:last-child {
                    width: calc(50% - 4px);
                }
            }
        }
    }
    &.small {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: 420px;

        @media all and (max-width: 768px) {
            max-width: 100%;
        }

        .form_field {
            width: ~"calc(50% - 8px)";

            @media all and (max-width: 768px) {
                width: ~"calc(50% - 4px)";
            }

            .date_input_wrapper {
                > .rw-widget .rw-widget-container {
                    display: block;

                    >  button {
                        margin: 0;
                        width: 100%;
    
                    }
                }
               
            }
        }

        button.button {
            margin-top: 35px;
            width: ~"calc(45% - 8px)";

            &:last-child {
                width: ~"calc(55% - 8px)";
            }

            @media all and (max-width: 768px) {
                width: calc(50% - 4px) !important;
                margin-top: 15px;
            }

        }
    }
}


// Модаль

.fade {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.5);
    display: block;

    &:not(.opened) {
        display: none;
    }

    .modal {
        max-width: 700px;
        width: 100%;
        background: #fff;
        margin: 100px auto;
        padding: 45px 40px;

        .modal_footer {
            text-align: right;
            margin-top: 30px;

            .button {
                margin-left: auto;
            }
        }
    }

    @media all and (max-width: 768px) {

        .modal {
            padding: 25px 20px;
            margin: 0;
        }
    }
}

// Акты сверок
.reconciliation_form {

    &.small {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        max-width: 420px;

        .form_field {
            width: ~"calc(50% - 8px)";

            @media all and (max-width: 768px) {
                width: ~"calc(50% - 4px)";
            }
        }

        button.button {
            margin-top: 15px;
            width: ~"calc(45% - 8px)";

            &:last-child {
                width: ~"calc(55% - 8px)";
            }

            @media all and (max-width: 768px) {
                width: ~"calc(50% - 4px)";
            }
        }
    }
}


// Модаль

.fade {
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.5);
    display: block;

    &:not(.opened) {
        display: none;
    }

    .modal {
        max-width: 700px;
        width: 100%;
        background: #fff;
        margin: 100px auto;
        padding: 45px 40px;

        .modal_footer {
            text-align: right;
            margin-top: 30px;

            .button {
                margin-left: auto;
            }
        }
    }
}

.settings_user_control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 45px;

    p {
        font-weight: 700;
    }

    div {
        display: flex;
        align-items: center;
        gap: 0 7px;
    }

    @media all and (max-width: 1279px) {
        p {
            width: 160px;
            margin-right: 16px;
            min-width: 160px;
        }

        div {
            width: 100%;

            button {
               &:first-child {width: 60%};
               &:last-child {width: 40%;}
            }
        }
    }

    @media all and (max-width: 768px) {
        display: block;
        margin-bottom: 35px;
        width: 100%;

        p {
            width: 100%;
        }

        div {
            display: block;

            button {
                width: 100% !important;
                margin-top: 16px;
            }
        }
    }
}

.settings_table {
    display: table;
    border-collapse: collapse;
    width: 100%;

    @media all and (max-width: 1279px) {
        display: block;
    }

    .table_row {
        display: table-row;

        @media all and (max-width: 1279px) {
            display: block;
            padding-bottom: 16px;
            margin-bottom: 16px;
            border-bottom: 1px solid #EDEFF5;
            padding-left: 55px;
            background: url("../../public/assets/images/icons/user.svg") no-repeat top left;
            position: relative;
        }

        @media all and (max-width: 768px) {
            padding-left: 0;
            background: transparent;
        }

        .table_cell {
            display: table-cell;
            padding: 18px 12px;
            border: 1px solid #EDEFF5;
            position: relative;

            &.delete {
                position: static;
            }

            @media all and (max-width: 1279px) {
                display: flex;
                flex-wrap: wrap;
                border: 0;
                font-size: 13px;
                line-height: 20px;
                padding: 0;
                margin-bottom: 4px;

                &:before {
                    content: attr(data-title);
                    color: #8E94A7;
                    font-weight: 700;
                    display: block;
                    width: 190px;
                    padding-right: 10px;
                }
            }

            @media all and (max-width: 768px) {
                &:before {
                    width: 100%;
                    margin-bottom: 2px;
                }
            }

            &:last-child {
                border-left: 0;
                min-width: 36px;

                button {
                    position: absolute;
                    width: 16px;
                    height: 16px;
                    padding: 0;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    margin: auto;
                    visibility: hidden;
                    pointer-events: none;
                    background: url("../../public/assets/images/icons/icon-delete.svg") no-repeat center;
                }

                @media all and (max-width: 1279px) {
                    &:before {
                        display: none;
                        border: 0;

                    }

                    button {
                        bottom: auto;
                        left: auto;
                        width: 32px;
                        height: 32px;
                        background: url("../../public/assets/images/icons/Trash.svg") no-repeat center;
                        font-size: 0;
                        text-indent: -999px;
                        overflow: hidden;
                    }
                }

                @media all and (max-width: 768px) {
                    button {
                        /*background: transparent;*/
                        text-indent: 0;
                        font-weight: 600;
                        font-size: 15px;
                        line-height: 20px;
                        color: #A8026B;
                        width: 140px;
                        position: relative;
                    }
                }
            }

            &:nth-last-child(2) {
                border-right: 0;
            }

            input {
                border: 0;
                outline: none;
                background: #fff;
                font-size: 15px;
                padding: 0;

                &::placeholder {
                    color: var(--text_not_active);
                    font-size: 15px;
                }

                @media all and (max-width: 1279px) {
                    padding: 0 12px;
                    border: 1px solid rgba(0, 16, 61, 0.12);
                    height: 40px;
                    max-width: 320px;
                    width: 100%;
                    box-sizing: border-box;
                }

                @media all and (max-width: 768px) {
                    max-width: none;
                    width: 100%;
                }
            }

            .settings_dropdown {
                font-family: 'Montserrat',sans-serif;
                font-weight: 400;
                cursor: pointer;
                width: 100%;
                text-align: left;
                font-weight: 400;
                justify-content: flex-start;
                font-size: 15px;
                line-height: 20px;
                color: #0C0C0C;
                padding: 0;
                background: url(/assets/images/icons/company-arrow.svg) no-repeat 100% 50%;
            
                &[data-selected="false"] {
                    color: var(--text_not_active);
                }

                @media all and (max-width: 1279px) {
                    border: 1px solid rgba(0, 16, 61, 0.12);
                    padding: 0 10px;
                    background-position: calc(100% - 10px) 50%;
                    width: calc(100% - 200px);
                    max-width: 320px;
                }

                @media all and (max-width: 768px) {
                    max-width: none;
                    width: 100%;
                }
            }

            .dropdown_list {
                position: absolute;
                top: 100%;
                left: 0;
                width: 412px;
                display: none;
                background: #FFFFFF;
                box-shadow: 0px 4px 32px rgba(0, 0, 0, 0.16);
                padding: 25px 35px;
                z-index: 9;

                @media all and (max-width: 1279px) {
                    left: 200px;
                }

                @media all and (max-width: 768px) {
                    left: 0;
                    right: 0;
                    width: 100%;
                    padding: 16px;
                }

                &.opened {
                    display: block;
                }

                .list_item {
                    position: relative;
                    padding-bottom: 16px;
                    margin-bottom: 16px;
                    border-bottom: 1px solid var(--inactive);

                    label {
                        font-weight: 700;
                        padding-left: 0;
                        padding-right: 30px;
                        line-height: 23px;

                        &:before {
                            right: 0;
                            left: auto;
                        }

                        span {
                            display: block;
                            font-weight: 400;
                        }
                    }

                    &:last-child {
                        border: 0;
                        padding-bottom: 0;
                        margin-bottom: 0;
                    }
                }
            }
        }

        &.table_header {
            .table_cell {
                color: #8E94A7;
                font-weight: 700;
                border: 0;

                &:last-child {
                    border-left: 0 !important;
                }
            }

            @media all and (max-width: 1279px) {
                display: none;
            }
        }
    }

    &.editable {
        .table_row {
            &.editable {
                .table_cell {
                    margin-bottom: 8px;
                }
            }
            .table_cell {
               

                &:last-child {
                    border: 1px solid #EDEFF5;

                    @media all and (max-width: 1279px) {
                        border: 0;
                    }

                    button {
                        pointer-events: all;
                        visibility: visible;
                    }
                }
            }
        }
    }
}

.new_appeal {
    form {
        .form_field {
            margin-bottom: 14px;   
        }

        textarea {
            height: 208px;
        }
    }
}

.dropzone {
    height: 208px;
    position: relative;
    border: 1px dashed #1C01A9;
    border-radius: 4px;
    background: rgba(28, 1, 169, 0.1);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 30px;

    .files {
        width: 100%;
        padding: 16px;
        
        &:empty {
            display: none;
        }
    }

    [type="file"] {
        cursor: pointer;
        position: absolute;
        opacity: 0;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
      }

      div {
        max-width: 404px;
        text-align: center;

        p {
            color: #828282;
            margin-bottom: 20px;
        }
      }

      @media all and (max-width: 768px) {
        border: 0;
        background: transparent;
        height: auto;

        div {
            p {
                margin-bottom: 10px;
                &:before {
                    content: attr(data-sm-text);
                    display: block;
                }

                span {
                    display: none;
                }
            }
        }
      }
}