﻿@import "../font.less";

/*.sortPanel {
    .frst-step-bnt {
        font-size: 18px;
        font-family: @fontBold;

        label {
            background: @white;
            display: inline-block;
            color: @mainColor2;
            padding: 13px 20px;
            cursor: pointer;
            border: 2px solid @mainColor2;
            margin-bottom: 5px;
        }
    }

    md-input-container.md-block {
        margin-top: 0px;
        margin-bottom: 0;
        max-width: 300px;

        .md-select-value {
            border-bottom-color: @white !important;

            span {
                font-family: @fontMedium;
                font-size: 18px;
                margin-bottom: 3px;
            }

            span::after {
                font-size: 20px;
            }
        }
    }
}*/


.itemsMain {
    .project-competiotion-desc {
        flex-wrap: wrap;

        .project-date {
            flex: 1 1 100%;
            margin-bottom: 10px;
            + span {
                flex: 1 1 100%;
            }
        }
    }
}

section.BtnContent{
    background: none;
}

.buttonMiddle {
    height: 60px;
    border-radius: 4px;
    background: linear-gradient(90deg, #4BC6D5 0.04%, #4BA3D5 100%);
    cursor: pointer;
    display: inline-block;
    color: @white;
    padding: 20px 35px;
    text-align: center;
    font-family: @fontMedium;
    box-sizing: border-box;
    margin-left: 20px;

   
}

.BtnContent {
    display: flex;

    .frst-step-bnt {
        align-items: center;
        justify-content: flex-end;
        padding: 20px 0 20px;

        label.btnMiddle {
            .buttonMiddle();
        }
    }

    md-input-container.md-block {
        margin-top: 0px;
        margin-bottom: 0;
        max-width: 300px;

        .md-select-value {
            border-bottom-color: #fff !important;

            span {
                font-family: @fontMedium;
                font-size: 18px;
                margin-bottom: 3px;
            }

            span::after {
                font-size: 20px;
            }
        }
    }
}


.voteBtn {
    .buttonMiddle();
    position: relative;
    &:before {
        content: ' ';
        background: url("/Content/themes/img/icn-heart-filled.svg") 0 0 no-repeat;
        display: inline-block;
        vertical-align: middle;
        width: 24px;
        height: 24px;
        position: relative;
        top: -2px;
    }
    span {
        color: @white;
    }
}

.allCompetitions {
    margin-bottom: 20px;
    background-color: @white;
    -webkit-box-shadow: 0px 10px 17px 0px rgba(176,176,176,0.43);
    -moz-box-shadow: 0px 10px 17px 0px rgba(176,176,176,0.43);
    box-shadow: 0px 10px 17px 0px rgba(176,176,176,0.43);

    .project-image {
        position: relative;
        max-height: 180px;
        overflow: hidden;

        div {
            position: absolute;
            bottom: 0;
            right: 0;
            margin: 0 40px 15px 0;
            font-family: @fontBold;

            span {
                color: @white;
                font-size: 40px;
                line-height: 31px;
                z-index: 1;
            }

            label {
                color: @white;
                font-size: 14px;
                z-index: 1;
            }
        }

        img {
            max-height: 180px;
        }

        .shadow {
            position: absolute;
            width: 100%;
            height: 100%;
            -webkit-box-shadow: inset -1px -200px 176px -38px rgba(0,0,0,0.2);
            -moz-box-shadow: inset -1px -200px 176px -38px rgba(0,0,0,0.2);
            box-shadow: inset -1px -200px 176px -38px rgba(0,0,0,0.2);
            -webkit-transition: all 0.3s ease;
            -moz-transition: all 0.3s ease;
            -o-transition: all 0.3s ease;
            transition: all 0.3s ease;
            top: 0;
            left: 0;

            &:hover {
                -webkit-box-shadow: inset -1px -200px 176px -38px rgba(0,0,0,0.34);
                -moz-box-shadow: inset -1px -200px 176px -38px rgba(0,0,0,0.34);
                box-shadow: inset -1px -200px 176px -38px rgba(0,0,0,0.34);
            }
        }
    }

    .metro-info {
        /*position: relative;*/
        span {
            a {
                color: @mainColor2;
                font-family: @fontBold;
                font-size: 24px;
            }
        }

        p {
            margin: 8px 0 12px 0;
        }

        div.userInfo {
            /*position: absolute;
            bottom: 15px;*/
            margin-top: 0 !important;
        }
    }

    .page-content {
        padding-left: 25px;

        h2 {
            color: @mainColor2;
            font-family: @fontBold;
            font-size: 24px;
            text-align: center;
        }

        P {
            margin-top: 0;
            font-size: 18px;
        }
    }

    @media screen and (max-width: 800px) {
        .metro-info {
            span {
                a {
                    font-size: 18px;
                }
            }
        }
    }
}
/*.content .root-content .shadow-project.allCompetitions .metro-info {
    padding: 25px 25px 50px 25px;
}*/

.createCompetitions {
    padding: 25px;

    .blockColumn {
        border-bottom: 2px solid #ccc;
        padding-top: 20px;
        padding-bottom: 0;
        position: relative;
        max-width: 750px;

        &.unHover {
            background-color: #f7f7f7;
        }

        .close {
            cursor: pointer;
            height: 24px;
            width: 24px;
            position: absolute;
            top: 15px;
            right: 5px;
            outline: none;
        }
    }

    md-checkbox.md-default-theme.md-checked .md-icon, md-checkbox.md-checked .md-icon {
        background-color: @inputColor;
    }

    md-checkbox.md-default-theme:not(.md-checked) .md-icon, md-checkbox:not(.md-checked) .md-icon {
        border-color: rgba(0,0,0,0.3);
    }

    md-tabs.md-default-theme md-ink-bar, md-tabs md-ink-bar {
        color: @inputColor;
        background: @inputColor;
    }

    md-tab-content {
        padding-top: 20px;
    }

    .md-button.md-primary.md-raised {
        background-color: @inputColor;
    }

    .md-tab.md-active {
        color: @inputColor;
    }

    .checkboxReq {
        margin-top: 26px;
        margin-bottom: 0;
    }

    md-input-container.md-input-focused label:not(.md-no-float),
    md-input-container.md-input-has-placeholder label:not(.md-no-float),
    md-input-container.md-input-has-value label:not(.md-no-float) {
        -webkit-transform: inherit;
        transform: inherit;
    }

    @media screen and (max-width: 600px) {
        .checkboxReq {
            margin-top: 0px;
            margin-left: 20px;
        }
    }

    .smallLbl {
        font-size: 14px;
        margin-left: 20px;
        margin-bottom: -16px;
    }

    .posibleFieldsLbl {
        padding-left: 0 !important;
        margin-left: 0;
    }

    .tableParameters {
        font-family: @fontBold;
        margin-top: 20px;
        margin-left: 20px;
        border-collapse: collapse;
        outline: none;
        max-width: 700px;
        width: calc(~"100% - 20px");
        margin-bottom: 20px;

        tr {
            .white {
                background: white;
            }

            .close {
                cursor: pointer;
                border: none;
                outline: none;
                padding: 5px;

                img {
                    width: 20px;
                    margin-left: 5px;
                    outline: none;
                }
            }

            .col-sno {
                width: 2px;
            }

            th {
                /* Цвет фона */
            }

            td, th {


                .notEditable {
                    margin-left: 10px;
                }

                padding: 5px; /* Поля вокруг содержимого таблицы */
                border: 1px solid #CCCCCC; /* Параметры рамки */
                span {
                    /*.text {
                        width: 90%;
                        outline: none;
                        padding-left: 10px;
                    }*/
                    .number {
                        width: 100px;
                        outline: none;
                        padding-left: 10px;
                    }

                    input {
                        border: none;
                        outline: none;
                        padding-left: 10px;
                        width: calc(~"100% - 10px");
                    }
                }
            }
        }
    }

    .step-inputs {
        color: black;
        font-family: @fontBold;
        font-size: 16px;
        /*.selectColumns {
            max-width: 600px !important;
        }*/
        ._md-datepicker-floating-label._md-datepicker-has-calendar-icon > label:not(.md-no-float):not(.md-container-ignore) {
            right: auto;
            left: auto;
            width: calc(100% - 84px);
            position: absolute;
            padding-left: 0;
            bottom: 100%;
        }

        md-input-container {
            label:not(.md-container-ignore).md-required:after {
                content: none;
            }

            margin: 20px 0;
            padding: 0 20px;

            .lb-check {
                width: auto;
                margin-top: 5px;
                bottom: auto;
            }

            .md-input {
                height: 50px;
                border-width: 0 0 2px;
                border-color: @inputColor;
                background: #edf5fa;
            }

            .md-input[type="checkbox"] {
                display: inline-block;
                width: 24px;
                vertical-align: middle;
                margin-right: 12px;
                height: 24px
            }

            md-datepicker {
                height: 50px;
                border-bottom: 2px solid @inputColor;
                border-color: @inputColor;
                background: #edf5fa;
                display: block;
                width: 100%;
                max-width: 100%;
                box-sizing: border-box;

                .md-input {
                    height: 48px;
                    border-width: 0 0 0;
                    border-color: transparent;
                    background: none;
                }

                .md-datepicker-expand-triangle {
                    border: solid black;
                    border-width: 0 2px 2px 0;
                    display: inline-block;
                    padding: 6px;
                    width: auto;
                    margin: 0;
                    border-color: @inputColor;
                    -webkit-transform: translate3d(0,0,0);
                    transform: translate3d(0,0,0);
                    transform: rotate(45deg);
                    -webkit-transform: rotate(45deg);
                    position: absolute;
                    top: 1px;
                    right: 15px;
                    left: auto;

                    &:after {
                        display: none;
                    }
                }
            }


            label, .areaLbl {
                width: calc(~"100% - 20px");
                color: black;
                font-family: @fontBold;
                overflow: visible;
                font-size: 14px;
            }

            label {
                margin-bottom: 7px;
                padding-left: 0;
                position: relative;
                display: inline-block;
                -webkit-transform: translate3d(0,0,0) scale(1);
                transform: translate3d(0,0,0) scale(1);

                &.md-required {
                    bottom: auto;
                }
            }


            .areaLbl {
                padding-left: 0;
                margin-bottom: 7px;
                position: relative;
            }



            &.selectColumns {
                margin-top: 0;
            }

            .areaLbl.sel {
                margin-bottom: -28px;
                margin-top: 11px;
            }

            .active {
                /*-webkit-transform: translate3d(0,6px,0) scale(.75);
                    transform: translate3d(0,7px,0) scale(0.75);
                    -webkit-transition: width .4s cubic-bezier(.25,.8,.25,1),-webkit-transform .4s cubic-bezier(.25,.8,.25,1);
                    transition: width .4s cubic-bezier(.25,.8,.25,1),-webkit-transform .4s cubic-bezier(.25,.8,.25,1);
                    transition: transform .4s cubic-bezier(.25,.8,.25,1),width .4s cubic-bezier(.25,.8,.25,1);
                    transition: transform .4s cubic-bezier(.25,.8,.25,1),width .4s cubic-bezier(.25,.8,.25,1),-webkit-transform .4s cubic-bezier(.25,.8,.25,1);
                    max-width: 100%;
                    -webkit-transform-origin: left top;
                    transform-origin: left top;*/
            }

            .areaLbl.sel.active {
                margin-bottom: 7px;
                margin-top: 0;
            }

            input {
                padding-left: 20px;
            }

            .inValid {
                border-color: @error;

                md-select-value, .md-datepicker-input-container input {
                    border-color: @error;
                }
            }

            .md-errors-spacer {
                display: none;
            }

            &md-input-container.md-input-has-value label:not(.md-no-float) {
                left: 18px;
            }

            md-datepicker {
                width: 100%;

                .md-button.md-icon-button {
                    margin: 0;
                    padding: 0;
                }

                .md-datepicker-input-container {
                    width: calc(~"100% - 40px");
                    border-bottom-width: 2px;
                    border-bottom-color: @inputColor;
                    font-family: "Roboto-Light";
                    font-size: 16px;
                    margin: 0;

                    input {
                        width: calc(~"100% - 40px");
                    }
                }
            }
        }

        .low-cost {
            span {
                float: right;
                color: @span3;
                padding-right: 13px;
            }
        }

        .md-select-value {
            height: 50px;
            border-bottom-width: 2px;
            border-bottom-color: @inputColor !important;
            padding: 0px 40px 0px 20px !important;
            font-family: @fontLight;
            background-color: @InputBg;
            position: relative;

            .md-select-icon {
                border: solid black;
                border-width: 0 2px 2px 0;
                display: inline-block;
                padding: 6px;
                width: auto;
                margin: 0;
                border-color: @inputColor;
                -webkit-transform: translate3d(0,0,0);
                transform: translate3d(0,0,0);
                transform: rotate(45deg);
                -webkit-transform: rotate(45deg);
                position: absolute;
                top: 16px;
                right: 16px;

                &:after {
                    display: none;
                }
            }
        }




        .descr {
            margin-top: 30px;

            .md-resize-wrapper {
                padding-top: 0px;
            }

            .md-errors-spacer {
                display: none;
            }

            textarea {
                min-height: 110px;
                border-width: 2px;
                padding: 10px 20px;
            }
        }

        .file-area {
            width: 100%;
            position: relative;
            margin-bottom: 15px;
            margin-top: 10px;
            padding: 0 20px;

            input[type=file] {
                position: absolute;
                width: calc(~"100% - 20px");
                height: 100%;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                opacity: 0;
                cursor: pointer;
            }

            input:-webkit-autofill {
                background-color: initial;
            }

            .file-dummy {
                padding: 25px;
                line-height: 1.4;
                background: #E8F0F5;
                border: 2px dashed #4BA3D5;
                text-align: center;
                transition: background 0.3s ease-in-out;
                border-radius: 8px;
                word-wrap: break-word;

                span {
                    color: @span;
                    font-family: @fontBold;

                    a {
                        color: @TextBlueSecond;
                    }

                    > span {
                        color: @TextBlue;
                    }
                }

                .success {
                }
            }

            .inValid {
                border-color: @error;

                md-select-value {
                    border-color: @error;
                }
            }

            .Valid {
                background-color: @valid;
            }
        }

        span.template {
            font-family: @fontLight;
            font-size: 14px;
            display: inline-block;
            color: @inputConteiner;
            margin-bottom: 15px;

            a {
                font-family: @fontMedium;
                color: @TextBlue;
            }
        }

        .filesInfo {
            text-align: center;
            font-size: 16px;
            color: @filesInfo;
            font-family: @fontBold;
            padding-left: 30px;
            padding-right: 30px;
            margin-top: 20px;
            line-height: 1.4;
            margin-bottom: 20px;
        }

        .frst-step-bnt {
            font-size: 16px;
            font-family: @fontBold;
            margin-bottom: 20px;
            float: right;

            label {
                background: @bgBtn;
                display: inline-block;
                color: #fff;
                padding: 16px 20px;
                margin-top: 35px;
                cursor: pointer;
                border: 2px solid @bgBtn;
            }

            .close-step {
                background: none;
                font-family: @fontBold;
                color: @bgBtn;
            }
        }

        .add-bnt {
            font-size: 16px;
            font-family: @fontBold;

            label {
                background: #4fa4d3;
                display: inline-block;
                color: #fff;
                padding: 16px 20px;
                margin-top: 21px;
                cursor: pointer;
                border: 2px solid #4fa4d3
            }

            @media screen and (max-width: 600px) {
                label {
                    margin-top: 0px;
                    margin-left: 20px;
                }
            }

            .close-step {
                border: none;
                font-size: 16px;
                font-family: @fontBold;
            }
        }
    }

    .deleteMsg {
        font-size: 18px;
        font-family: @fontMedium;

        span {
            font-size: 18px;
            color: @TextBlueSecond;
            font-family: @fontBold;
        }

        .frst-step-bnt {
            margin-top: 60px;
        }
    }
}

    @media screen and (max-width: 600px) {
        .createCompetitions {
            padding: 10px;
        }
    }

    .Competition {
        margin-bottom: 20px;
        background-color: @white;
        -webkit-box-shadow: 0px 10px 17px 0px rgba(176,176,176,0.43);
        -moz-box-shadow: 0px 10px 17px 0px rgba(176,176,176,0.43);
        box-shadow: 0px 10px 17px 0px rgba(176,176,176,0.43);
        padding: 40px;
        margin-top: 30px;

        a {
            z-index: 20;

            .backImg {
                background-color: @mainColor2;
                border-radius: 50%;
                width: 38px;
                height: 38px;
            }
        }

        span.compName {
            color: @grayEmH;
            font-family: @fontMedium;
            font-size: 14px;
            margin-top: 4px;
            text-transform: uppercase;
        }

        .compDesc {
            font-family: @fontLight;
            text-align: justify;
            white-space: pre-line;

            img {
                max-width: 300px;
                max-height: 300px;
                margin-right: 20px;
                margin-bottom: 10px;
                float: left;
            }
        }

        .compInfo {
            margin-top: 35px;
            font-family: @fontMedium;
            margin-bottom: 15px;
            font-size: 14px;
            color: @grayEmH;

            > div {
                padding-right: 25px;

                > div {
                    margin-bottom: 10px;
                    color: @grayEmH;
                }
            }

            span {
                font-family: @fontBold;
                color: @GrayText;
                font-size: 16px;

                a {
                    font-family: @fontMedium;
                    color: @TextBlue;
                    font-size: 14px;
                }
            }
        }
    }

    .compMain {
        max-width: 936px;
        width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;

        .compDesc {
            flex: 1;
        }

        .comp-right {
            width: 255px;
            margin-left: 30px;
        }
    }

.page-content {
    md-select.md-default-theme .md-select-value,
    md-select .md-select-value {
        height: 50px;
        border-width: 0 0 2px;
        border-color: #4FA3D2 !important;
        background: @InputBg;
        padding: 0px 20px 0px;
        box-sizing: border-box;

        .md-select-icon {
            border: solid black;
            border-width: 0 2px 2px 0;
            display: inline-block;
            padding: 6px;
            width: auto;
            margin: 0;
            border-color: @inputColor;
            -webkit-transform: translate3d(0,0,0);
            transform: translate3d(0,0,0);
            transform: rotate(45deg);
            -webkit-transform: rotate(45deg);
            position: absolute;
            top: 16px;
            right: 16px;

            &:after {
                display: none;
            }
        }
    }

    md-select[name="Competition"] {
        margin-top: 2px;
    }
}



    .middle-title {
        font-family: @fontBold;
        display: block;
        margin: 20px 0 30px;
        font-size: 18px;
        color: #333;
    }

    .link-sm-blue {
        font-size: 14px;
        color: @TextBlueSecond;
    }

    .additionalDirectionsHead {
        margin: 10px 0;

        div {
            &:first-child {
                font-family: @fontBold;
            }

            &:last-child {
                font-family: @fontBold;
                color: @TextBlue;
                padding: 10px 10px 0 10px;
                cursor: pointer;
            }
        }
    }

    md-select-menu.md-default-theme md-content md-option[selected], md-select-menu md-content md-option[selected] {
        color: @TextBlueSecond;
    }

    .additionalDirections {
        padding-left: 20px;

        ng-form {
            width: 100%;
        }

        .arrows {
            height: 80%;
            position: relative;
            top: 10px;
            left: 5px;

            .topArr {
                cursor: pointer;
                width: 0;
                height: 0;
                border-style: solid;
                border-width: 0 10px 14px 10px;
                border-color: transparent transparent #959ea7 transparent;
            }

            .bottomArr {
                cursor: pointer;
                width: 0;
                height: 0;
                border-style: solid;
                border-width: 14px 10px 0 10px;
                border-color: #959ea7 transparent transparent transparent;
            }
        }



        md-input-container {
            margin: 0;
            padding-right: 0px !important;

            input {
                color: black !important;
            }

            .addCity {
                .cantDelate {
                    font-family: @fontBold;
                    color: #a9a9a9 !important;
                    padding: 5px 10px 0 10px;
                    cursor: default !important;
                    margin-right: 10px;
                }

                .canDelate {
                    font-family: @fontBold;
                    color: @TextBlue;
                    padding: 5px 10px 0 10px;
                    cursor: pointer;
                    margin-right: 10px;
                }

                > div {
                    &:first-child {
                        position: relative;
                        margin-right: 10px;
                    }
                }
            }
        }
    }

    @media screen and (max-width: 600px) {
        .Competition {
            padding: 20px;

            .compDesc img {
                width: 100%;
                float: none;
                display: block;
            }
        }

        .content .stateCompetition {
            text-align: right;
        }

        .compMain {
            flex-wrap: wrap;

            .compDesc {
                flex: 1 1 100%;
            }

            .comp-right {
                margin-top: 30px;
                width: 100%;
                flex: 1 1 100%;
                margin-left: 0;
            }
        }

        .step-dialog .dialog-info .step-inputs .step-inputs-mod md-input-container {
            margin: 25px 0;
            flex: 1 1 100% !important;
            max-width: 100%;
        }
        
        .step-dialog .dialog-info .step-inputs md-input-container .areaLbl2{
           white-space: normal!important;
        }

    }
