﻿::selection {
    background: @colorBrand;
}

::-moz-selection {
    background: @colorBrand;
}

html {
    background-color: #E9E9E9;
    height: 100%;
}

body {
    font-family: 'PT Sans Narrow', sans-serif;
    height: 100%;
}

.uk-navbar-item, .uk-navbar-nav > li > a, .uk-navbar-toggle,
.uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6, h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans Condensed', sans-serif;
}

#min-salary,
#max-salary {
    text-align: right;
    padding-right: 30px;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.currency {
    display: inline-block;
    position: absolute;
    right: 3px;
    top: 4px;
}

.fixed-wizard {
    position: fixed;
    width: 100%;
    z-index: 9;
}

.wizard-hide {
    display: none;
}

.ehr-nav {
    background-color: @colorBrand;
    -webkit-box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.05);
    box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.05);
    width: ~"calc(80% - 90px)" !important;
    right: 30px;

    .uk-navbar-container {
        padding: 0 30px;
    }

    .main-logo {
        max-width: 160px;
        height: auto;
    }

    .uk-navbar-nav {
        li {

            a {
                color: if((lightness(@colorBrand) > 50%), #000, #fff);
                transition: all 0.3s ease;

                &:hover {
                    background-color: darken(@colorBrand, 3%);
                }
            }
        }
    }

    .lang-swicher {
        a {
            &:first-child {
                img {
                    margin-right: 10px;
                }
            }

            img {
                width: 40px;
            }
        }
    }
}

.main-wrapper {
    width: ~"calc(80% - 60px)";
}

.main-container,
#hr-general-form {
    height: 100%;
}


.main-sidebar {
    width: 20%;
    float: left;
    background: #fff;
    margin-left: 30px;
    position: relative;
    height: 100%;

    .general-information {
        padding: 30px;
        background: #fff;

        .ehr-process {
            position: relative;

            h2 {
                font-size: 16px;
                font-weight: bold;
                margin-bottom: 0;
                color: #222;
            }
        }

        .ehr-input-wrapper {
            .ehr-multiselect-holder {
                line-height: 1;
                display: block;
                width: 100% !important;

                .select2-selection {
                    min-height: 40px;
                    border-radius: 0;
                    line-height: 0;
                    border: none;

                    .select2-selection__rendered {
                        border: 1px solid #e5e5e5;
                        min-height: 40px;

                        li {
                            min-height: 26px;
                            line-height: 26px;
                        }
                    }
                }

                input {
                    color: #444;
                    font-size: 13px;
                    width: 100% !important;
                }
            }

            select {
                height: 30px;
                box-shadow: none;

                &.error {
                    border-color: #ff7e7e;
                }

                &:invalid {
                    box-shadow: none;
                }
            }

            input {
                height: 30px;
                transition: all 0.3s ease;

                &.error {
                    border-color: #ff7e7e;
                }

                &.valid {
                    border-color: #56c421;
                }

                &:invalid {
                    box-shadow: none;
                }
            }

            label.error {
                color: red;
                font-size: 12px;
            }

            .required-symbol {
                color: red;
            }
        }

        .ehr-image-uploader-wrapper {
            position: relative;
            text-align: center;

            .circle {
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                overflow: hidden;
                width: 128px;
                height: 128px;
                border: 3px solid @colorBrand;
                margin: 0 auto;
                cursor: pointer;

                .profile-pic {
                    max-width: 200px;
                    max-height: 200px;
                    display: block;
                }
            }

            .p-image {
                color: #666666;
                transition: all .3s cubic-bezier(.175, .885, .32, 1.275);
                cursor: pointer;

                .file-upload {
                    display: none;
                }
            }
        }

        & > div:not(:last-child) {
            margin-bottom: 10px;
        }
    }
}

.tabs-style-tzoid nav {
    padding: 0 1em;
}

.tabs-style-tzoid nav ul li {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.tabs-style-tzoid {
    nav {
        ul {
            li {

                a {
                    padding: 0 1.5em 0 0;
                    color: #333;
                    -webkit-transition: color 0.2s;
                    transition: color 0.2s;
                    font-weight: bold;
                    font-size: 14px;
                }
            }
        }
    }
}

@media ( min-width: 990px) and (max-width: 1240px) {
    .tabs-style-tzoid {
        nav {
            ul {
                li {
                    &.has-invalid {
                        a {
                            padding-left: 30px;
                        }
                    }
                }
            }
        }
    }
}

.tabs-style-tzoid nav ul li a:hover,
.tabs-style-tzoid nav ul li a:focus {
    color: if((lightness(@colorBrand) > 50%), 'black', darken(@colorBrand, 10%));
}

.tabs-style-tzoid nav ul li.tab-current a,
.tabs-style-tzoid nav ul li.tab-current a:hover {
    text-decoration: none;
    color: if((lightness(@colorBrand) > 50%), #000, #fff);
}

.tabs-style-tzoid nav ul li {
    &.has-invalid {
        &:before {
            content: '!';
            font-size: 12px;
            position: absolute;
            top: 12px;
            left: 12px;
            width: 15px;
            height: 15px;
            border-radius: 50px;
            line-height: 15px;
            background: red;
            color: #fff;
            padding: 1px;
        }
    }

    &.has-valid {
        &:before {
            content: '✔';
            font-size: 12px;
            position: absolute;
            top: 12px;
            left: 12px;
            width: 15px;
            height: 15px;
            border-radius: 50px;
            line-height: 15px;
            background: green;
            color: #fff;
            padding: 1px;
        }
    }
}

.tabs-style-tzoid nav ul li a span {
    font-weight: 800;
}

.tabs-style-tzoid nav ul li a::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: -1;
    outline: 1px solid transparent;
    border-radius: 10px 10px 0 0;
    background: #fff;
    box-shadow: inset 0 -3px 3px rgba(0,0,0,0.05);
    content: '';
    -webkit-transform: perspective(5px) rotateX(0.93deg) translateZ(-1px);
    transform: perspective(5px) rotateX(0.93deg) translateZ(-1px);
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.tabs-style-tzoid nav ul li.success a {
    color: #fff;
}

.tabs-style-tzoid nav ul li.success a::after {
    background-color: #31954e;
}

.tabs-style-tzoid nav ul li.tab-current a::after {
    background-color: @colorBrand;
    color: #fff;
}



.tabs-style-tzoid .content-wrap {
    background: #fff;
    box-shadow: none;
    padding: 30px;
    overflow-x: auto;
}

.tabs-style-tzoid {
    .content-wrap {
        section {
            .ehr-input-wrapper {
                width: ~"calc(33% - 15px)";
                margin-bottom: 10px;

                .ehr-multiselect-holder {
                    line-height: 1;
                    display: block;
                    width: 100% !important;

                    .select2-selection {
                        min-height: 40px;
                        border-radius: 0;
                        line-height: 0;
                        border: none;

                        .select2-selection__rendered {
                            min-height: 40px;
                            border: 1px solid #e5e5e5;

                            li {
                                min-height: 26px;
                                line-height: 26px;
                            }
                        }
                    }

                    input {
                        color: #444;
                        font-size: 13px;
                        width: 100% !important;
                    }
                }

                .switch-field {
                    display: flex;
                    overflow: hidden;

                    input {
                        position: absolute !important;
                        clip: rect(0, 0, 0, 0);
                        height: 1px;
                        width: 1px;
                        border: 0;
                        overflow: hidden;

                        &:checked + label {
                            background-color: #95c04c;
                            box-shadow: none;
                        }

                        &:last-of-type {
                            &:checked + label {
                                background-color: #e44f4f;
                                color: #feefee;
                                box-shadow: none;
                            }
                        }
                    }

                    label {
                        color: rgba(0, 0, 0, 0.6);
                        font-size: 14px;
                        line-height: 1;
                        text-align: center;
                        padding: 8px 16px;
                        margin-right: -1px;
                        border: 1px solid rgba(0, 0, 0, 0.2);
                        transition: all 0.1s ease-in-out;

                        &:hover {
                            cursor: pointer;
                        }
                    }
                }

                .ehr-icon-controller {
                    position: relative;

                    span {
                        position: absolute;
                        top: 6px;
                        left: 7px;
                    }

                    select,
                    input {
                        padding-left: 30px;
                    }
                }

                .ehr-form-label {
                    color: #222;

                    .required-symbol {
                        color: red;
                    }
                }

                input, textarea {
                    height: 30px;
                    box-shadow: none;

                    &#SALARYMIN,
                    &#SALARYMAX {
                        text-align: right;
                    }

                    &.error {
                        border-color: #ff7e7e;
                    }

                    &.valid {
                        border-color: #56c421;
                    }

                    &:invalid {
                        box-shadow: none;
                    }
                }

                select {
                    height: 30px;
                    box-shadow: none;

                    &:invalid {
                        box-shadow: none;
                    }
                }

                &.textarea {
                    width: 100%;
                    box-shadow: none;

                    &:invalid {
                        box-shadow: none;
                    }
                }

                label.error {
                    color: red;
                    font-size: 12px;
                }

                .checkboxes {
                    display: flex;
                    justify-content: space-between;

                    .checkbox-item {
                        width: 100%;
                        height: 40px;
                        margin-right: 10px;

                        &:last-child {
                            margin: 0;
                        }
                    }

                    .checkbox__label {
                        display: block;
                        border: 1px solid #e5e5e5;
                        text-align: center;
                        line-height: 38px;
                        cursor: pointer;
                        height: 38px;
                    }

                    .checkbox__input {
                        width: 1px;
                        position: absolute;
                        height: 1px;
                        overflow: hidden;
                        clip: rect(0 0 0 0);
                    }

                    .checkbox__input:checked + .checkbox__label {
                        background-color: #95c04c;
                    }
                }
            }

            .ehr-repeater-wrapper {
                width: 100%;
                overflow-x: auto;

                .repeater-heading {
                    color: #222;
                }

                .uk-table {
                    margin-top: 0;

                    tr {
                        th {
                            color: #222;
                            padding: 10px;
                            line-height: 22px;
                            border: 1px solid rgb(221, 221, 221);
                            width: 1%;

                            span {
                                line-height: 22px;

                                &.required-symbol {
                                    color: red;
                                }
                            }
                        }

                        td {
                            border: 1px solid rgb(221, 221, 221);
                            padding: 0;
                        }

                        td {
                            input {
                                height: 30px;
                                border: none;
                                box-shadow: none;

                                &:invalid {
                                    box-shadow: none;
                                }
                            }

                            select {
                                height: 30px;
                                border: none;
                                box-shadow: none;

                                &:invalid {
                                    box-shadow: none;
                                }
                            }

                            textarea {
                                border: none;
                                width: 100%;
                                resize: none;
                                transition: all 0.3s ease;
                                line-height: 22px;
                                box-shadow: none;

                                &:focus {
                                    height: 90px;
                                }

                                &:invalid {
                                    box-shadow: none;
                                }
                            }

                            .error {
                                border: 1px solid red !important;
                            }
                        }
                    }

                    tfoot {
                        tr {
                            td {
                                line-height: 30px;
                                height: 30px;
                                padding: 0 10px;
                            }
                        }

                        .remove-repeater, .add-repeater {
                            color: @colorBrand;
                            text-decoration: none;
                        }
                    }
                }
            }
        }
    }
}


.tabs {
    position: relative;
    margin: 0 auto;
    width: 100%;
    font-weight: 300;
}
/* Nav */
.tabs nav {
    text-align: center;
}

.tabs nav ul {
    position: relative;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: -moz-flex;
    display: -ms-flex;
    display: flex;
    margin: 0 auto;
    padding: 0;
    max-width: 1200px;
    list-style: none;
    -ms-box-orient: horizontal;
    -ms-box-pack: center;
    -webkit-flex-flow: row wrap;
    -moz-flex-flow: row wrap;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;
}

.tabs nav ul li {
    position: relative;
    z-index: 1;
    display: block;
    margin: 0;
    text-align: center;
    -webkit-flex: 1;
    -moz-flex: 1;
    -ms-flex: 1;
    flex: 1;
}

.tabs nav a {
    position: relative;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 38px;
    text-decoration: none;
}

.tabs nav a span {
    vertical-align: middle;
}

.tabs nav a:focus {
    outline: none;
}
/* Content */
.content-wrap {
    position: relative;
}

.content-wrap section {
    display: none;
}

.content-wrap section.content-current {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Fallback */
.no-js .content-wrap section {
    display: block;
    padding-bottom: 2em;
    border-bottom: 1px solid rgba(255,255,255,0.6);
}

.no-flexbox nav ul {
    display: block;
}

.no-flexbox nav ul li {
    min-width: 15%;
    display: inline-block;
}

@media screen and (max-width: 58em) {
    .tabs nav a.icon span {
        display: none;
    }

    .tabs nav a:before {
        margin-right: 0;
    }
}

.ehr-tab-wrapper {
    background-color: #fff;

    .uk-tab {
        li {
            &:not(:last-child) {
                border-right: 1px solid #e5e5e5;
            }

            &.uk-active {
                a {
                    background-color: @colorBrand;
                    color: #fff;
                }
            }

            a {
                padding: 10px;
                font-weight: bold;
                font-size: 14px;
                cursor: pointer;
            }
        }
    }

    #uk-switch-1 {
        padding: 20px;
    }
}

.progress-container {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #DDD;
    bottom: 0px;
    left: 0px
}

.uk-wizard {

    .current-selector {
        position: absolute;
        bottom: -9px;
        left: 66px;
        border-top: solid 9px @colorBrand;
        border-left: solid 9px transparent;
        border-right: solid 9px transparent;
        z-index: 1;
    }

    .uk-active {
        cursor: pointer;

        &.uk-step {
            background-color: @colorBrand;

            &:before {
                opacity: 1 !important;
            }

            &:nth-child(1) {
                &:before {
                    border-left-color: @colorBrand;
                }
            }

            &:nth-child(2) {
                background-color: tint(@colorBrand, 5%);

                &:before {
                    border-left-color: tint(@colorBrand, 5%);
                }
            }

            &:nth-child(3) {
                background-color: tint(@colorBrand, 10%);

                &:before {
                    border-left-color: tint(@colorBrand, 10%);
                }
            }

            &:nth-child(4) {
                background-color: tint(@colorBrand, 15%);

                &:before {
                    border-left-color: tint(@colorBrand, 15%);
                }
            }

            &:nth-child(5) {
                background-color: tint(@colorBrand, 20%);

                &:before {
                    border-left-color: tint(@colorBrand, 20%);
                }
            }

            &:nth-child(6) {
                background-color: tint(@colorBrand, 25%);

                &:before {
                    border-left-color: tint(@colorBrand, 25%);
                }
            }

            &:nth-child(7) {
                background-color: tint(@colorBrand, 30%);

                &:before {
                    border-left-color: tint(@colorBrand, 30%);
                }
            }

            &:nth-child(8) {
                background-color: tint(@colorBrand, 35%);

                &:before {
                    border-left-color: tint(@colorBrand, 35%);
                }
            }
        }
    }
}

.ehr-percentage {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    height: 100%;

    .progressbar-title {
        font-size: 12px;
        color: @colorBrand;
        text-transform: uppercase;
        margin-bottom: 0;
        font-weight: 600;
    }

    .progress {
        height: 5px;
        overflow: visible;
        background: #f0f0f0;
        width: 100%;

        .progress-bar {
            height: 100%;
            position: relative;
            animation: animate-positive 3s;
            background-color: @colorBrand;
            transition: all 0.5s ease;
        }

        .progress-value {
            font-size: 13px;
            color: #848484;
            position: absolute;
            top: 5px;
            right: -6px;
            color: @colorBrand;
        }
    }
}


@-webkit-keyframes animate-positive {
    0% {
        width: 0%;
    }
}

@keyframes animate-positive {
    0% {
        width: 0%;
    }
}

// jQuery UI Modal style
.ui-widget-overlay {
    background: #000;
    opacity: 0.6;
}

.ui-dialog {
    border: none;
    border-radius: 0;
    padding: 30px;


    .ui-dialog-titlebar {
        position: static;
    }

    .ui-widget-content {
        font-size: 14px;
        min-height: 100px !important;

        &.ui-dialog-buttonpane {
            min-height: 0 !important;
            padding: 0;
            border: none;
        }
    }

    .ui-widget-header {
        border: none;
        background: none;

        .ui-dialog-title {
            font-size: 14px;
        }

        .ui-dialog-titlebar-close {
            top: 20px;
            right: 15px;
            padding: 0;

            &.ui-state-hover {
                border: none;
                background: none;
            }
        }
    }

    .ui-state-default {
        border: none;
        background: none;
        font-size: 14px;
        margin: 0;
        background-color: @colorBrand;
        color: #fff;
        border-radius: 0;
    }
}

.mobile-menu {
    display: none;
    margin-left: 20px;
}

.mobile-submit {
    display: none;
}
//Responsive
@tablet-down: ~ '(max-width: 768px)';
@phone-down: ~ '(max-width: 480px)';
@small-phone-down: ~ '(max-width: 320px)';

@media @tablet-down {

    .uk-sticky-placeholder {
        display: none;
    }

    .main-container {
        padding-top: 110px;
    }

    .ehr-nav {
        width: 100% !important;
        position: fixed;
        top: 0;
        right: 0;
        z-index: 2;
        left: 0;
        padding: 0;


        .main-logo {
            max-width: 100px;
        }

        .uk-navbar-nav {
            margin-right: 20px;
        }

        .lang-swicher {
            a {
                img {
                    width: 30px;
                }
            }
        }
    }

    .main-wrapper {
        width: 100%;
        margin: 0;

        .tab-holder {
            padding-right: 30px;
        }
    }

    .main-sidebar {
        width: ~"calc(100% - 60px)";
        height: auto;
        float: none;
    }

    .tabs-style-tzoid {
        nav {
            ul {
                li {
                    &.has-invalid,
                    &.has-valid {
                        &:before {
                            font-size: 8px;
                            line-height: 10px;
                            width: 10px;
                            top: 5px;
                            left: 5px;
                            height: 10px;
                        }
                    }
                }
            }
        }
    }
}

.hamburger-menu {
    transition: transform 0.5s;

    .line-1 {
        border-top: 3px solid #fff;
        display: block;
        transition: margin 0.5s, transform 0.5s;
        width: 25px;
    }

    .line-2 {
        border-top: 3px solid #fff;
        display: block;
        transition: margin 0.5s, transform 0.5s;
        width: 25px;
        margin: 5px 0;
    }

    .line-3 {
        border-top: 3px solid #fff;
        display: block;
        transition: margin 0.5s, transform 0.5s;
        width: 25px;
    }

    &.toggle {

        .line-1 {
            transform: rotate(45deg);
        }

        .line-2 {
            margin: -3px 0;
            opacity: 0;
        }

        .line-3 {
            transform: rotate(-45deg);
        }
    }

    &.toggle {
        transform: rotate(180deg);
    }
}

@media @phone-down {

    .ehr-nav {
        z-index: 9999999;
    }

    .mobile-menu {
        display: flex;
        align-items: center;
    }

    .uk-offcanvas-bar {
        background: #fff;
        padding-top: 70px;
        text-align: right;

        .uk-navbar-nav {
            display: block;

            li {
                margin-bottom: 10px;

                a {
                    min-height: 20px;
                    color: #333;
                    text-align: left;
                    display: block;
                    font-size: 16px;

                    &:hover {
                        color: #333;
                    }
                }
            }
        }
    }

    .main-container {
        padding-top: 75px;
    }

    .content-wrap {
        section {
            &.content-current {
                overflow: scroll;
            }

            .ehr-input-wrapper {
                width: 100% !important;

                .ehr-multiselect-holder {
                    line-height: 1;
                    display: block;
                    width: 100% !important;

                    .select2-selection {
                        min-height: 40px;
                        border-radius: 0;
                        line-height: 0;
                        border: none;

                        .select2-selection__rendered {
                            min-height: 40px;
                            border: 1px solid #e5e5e5;

                            li {
                                min-height: 26px;
                                line-height: 26px;
                            }
                        }
                    }

                    input {
                        width: 100% !important;
                        color: #444;
                        font-size: 13px;
                    }
                }
            }
        }
    }

    .tabs {
        nav {
            padding: 0;

            ul {
                display: block;

                li {

                    a {
                        &:after {
                            transform: none;
                        }
                    }
                }
            }
        }
    }

    .tabs-style-tzoid {
        nav {
            ul {
                li {
                    &.has-invalid,
                    &.has-valid {
                        &:before {
                            font-size: 12px;
                            line-height: 15px;
                            width: 15px;
                            top: 12px;
                            left: 20px;
                            height: 15px;
                        }
                    }
                }
            }
        }
    }

    .uk-navbar-nav {
        display: none;
    }

    .hamburger-menu {
        display: inline-block;
    }

    .mobile-submit {
        display: block;
        padding: 0 30px;
        margin-top: 30px;
        margin-bottom: 30px;

        a {
            display: block;
            background-color: @colorBrand;
            color: if((lightness(@colorBrand) > 50%), #000, #fff);
            border-radius: 5px;
            height: 40px;
            line-height: 40px;
            text-align: center;

            &:hover{
                text-decoration: none;
            }
        }
    }
}


.p_s {
    .uk-table {
        margin-bottom: 0;

        th {
            color: #fff;
        }

        td {
            padding: 10px;
            .desc-icon {
                float: right;
            }
        }

        tbody {
            tr {
                cursor: pointer;
                &:hover {
                    background: #e9e9e9;
                }
            }
        }
    }
}