@import "../third-party/css/bootstrap/normalize";
@import "../third-party/css/bootstrap/variables";
@import "../third-party/css/bootstrap/mixins";
@import "../third-party/css/bootstrap/utilities";
@import "../third-party/css/bootstrap/responsive-utilities";
@import "../third-party/css/bootstrap/component-animations";
@import "../third-party/css/bootstrap/tooltip";
@import "../third-party/css/bootstrap/type";
@import "../third-party/css/bootstrap/grid";
@import "../third-party/css/bootstrap/panels";
@import "../third-party/css/bootstrap/alerts";
@import "../third-party/css/bootstrap/modals";
@import "../third-party/css/bootstrap/navs";
@import "../third-party/css/bootstrap/navbar";
@import "../third-party/css/bootstrap/input-groups";
@import "../third-party/css/bootstrap/button-groups";
@import "../third-party/css/bootstrap/dropdowns";
@import "../third-party/css/bootstrap/breadcrumbs";
@import "custom-variables";
@import "utils";

html {
    overflow-x: hidden;
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    color: $default-color;
    background-color: $body-bg;
    font-size: $font-size-base;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: $link-color;
}

.ui-widget-content {
    a {
        color: $link-color !important;
    }
    color: $default-color;
}

.ui-widget {
    font-weight: 400 !important;
    font-size: 14px !important;
}

.text-center {
    text-align: center !important;
}

p.note {
    @extend .alert;
    @extend .alert-info;
    font-size: $font-size-base;
}

p.error {
    @extend .alert;
    @extend .alert-danger;
}

p.notice,
p.warning {
    @extend .alert;
    @extend .alert-warning;
}

p.message {
    @extend .alert;
    @extend .alert-success;
}

.modal-header .close {
    position: absolute;
    right: 15px;
    border: none;
    background: none;
}

.refine-block {
    margin-top: 10px;

    select {
        max-width: 209px;
        width: 100%;
        margin: 0 10px 10px 0;
    }

    .btn {
        margin: 0 0 10px;
    }
}

#loginForm {
    max-width: 400px;
    margin: 150px auto 0;
    overflow: hidden;
    font-size: 14px;

    .panel {
        padding: 35px;
    }

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

    img {
        max-width: 230px;
        width: 100%;
    }

    #loginButton {
        width: 120px;
    }

    .forget-password {
        display: inline-block;
        margin-top: 15px;
        &:hover {
            text-decoration: underline;
        }
    }

    .panel-heading {
        padding-bottom: 35px;
        margin-bottom: 35px;
    }
}

#copyright {
    clear: both;
    text-align: center;
    color: #444;
    margin: 17px 0 30px;
    font-size: 12px;
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
}

section.content {
    margin-left: 250px;
    min-height: 650px;
}

.content > .container-fluid {
    padding-left: 20px;
    padding-right: 20px;
}

.wrapper--main {
    position: relative;
    max-width: 3000px;
}

.breadcrumb {
    background: #fff;
    margin-top: 20px;
    border-radius: 2px;
    float: left;
}

.page-title,
.panel {
    &.page-title--wide,
    &.panel--wide {
        max-width: initial !important;
        @media all and (min-width: 1200px) {
            max-width: 60% !important;
        }
    }
}
.page-title {
    padding: 0 0 20px;

    @media all and (max-width: 1100px) and (min-width: 992px) {
        text-align: right !important;
    }

    @media all and (max-width: 992px) {
        text-align: left !important;
    }

    @extend .clearfix;

    .title,
    .page-title__buttons {
        margin: 20px 0 0;
    }

    .title {
        font-size: $h1-font-size;
        font-weight: 500;
        line-height: 34px;
        margin-right: 15px;

        @media all and (min-width: 992px) {
            float: left;
        }
    }

    .page-title__buttons {
        width: 100%;
        @media all and (min-width: 1100px) {
            float: right;
            width: auto;
        }

        @media all and (max-width: 1100px) {
            text-align: left;
        }

        .grayButton,
        .btn:not(.choose-period) {
            margin-bottom: 10px;
        }

        .btn-group {
            margin-right: 15px;
        }
    }
}

.widget-panel {
    padding: 40px 20px;
    border-radius: 4px;
    position: relative;
    margin-bottom: 20px;
    box-shadow: 0 0 8px 0 rgba(0,0,0,0.06),0 1px 0 0 rgba(0,0,0,0.02);
    background: #fff;
}

.widget-style-2 {
    padding-left: 30px;
    height: 170px;

    h2 {
        font-weight: 600;
        font-size: 36px;
    }

    .icon-img,
    i {
        font-size: 64px;
        float: right;
        padding: 35px 35px 15px 0;
        margin-top: -25px;
        margin-right: -20px;
    }

    .icon-img {
        img {
            position: relative;
            top: -13px;
            max-width: 68px;
            width: 68px;
            height: 85px;
            left: 7px;
        }
    }

    .fa-usd {
        color: #009688;
        position: relative;
        left: -15px;
    }

    .fa-briefcase {
        color: #ad86df;
    }

    .fa-paper-plane-o {
        color: #a1a1a1;
    }

    .ion-ios7-email {
        color: #344860;
        font-size: 78px;
        left: -2px;
    }

    .fa-user {
        color: #3f51b5;
        position: relative;
        margin-right: -10px;
    }
}

#action-modal {
    .modal-body {
        padding: 30px 15px;
    }
}

sub, sup {
    line-height: initial;
}

#jobg8-plugin {

    td {
        white-space: initial !important;
    }
    .filter-description {
        vertical-align: top !important;
        max-width: initial !important;

        & + td {
            min-width: 340px;
            padding-right: 30px !important;
            vertical-align: top;
        }
    }
}

.mapping {
    .panel--accordion {
        max-width: 100%;
    }

    .panel-body {
        padding: 20px 30px;

        &.form-horizontal {
            padding: 20px 0;
        }
    }

    .cr-styled {
        margin-top: 0 !important;
    }

    .table {
        margin-top: 20px !important;
    }

    .table-clear th,
    .table-clear td {
        &:first-child {
            text-align: left;
        }
    }

    .form-horizontal select[multiple="multiple"] {
        max-width: 100% !important;
    }
}

#customize-theme-pane {
    .inline-block {
        margin-right: 15px;
    }
}

.inline-block {
    display: inline-block !important;
}

.sortable-handle {
  cursor: pointer;
  transform: rotate(90deg);
}

.pace {
    -webkit-pointer-events: none;
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.pace-inactive {
    display: none;
}

.pace .pace-progress {
    background: #3f51b5;
    position: fixed;
    z-index: 2000;
    top: 0;
    right: 100%;
    width: 100%;
    height: 3px;
}

.pace .pace-progress-inner {
    display: block;
    position: absolute;
    right: 0px;
    width: 100px;
    height: 100%;
    box-shadow: 0 0 10px #3f51b5, 0 0 5px #3f51b5;
    opacity: 1.0;
    -webkit-transform: rotate(3deg) translate(0px, -4px);
    -moz-transform: rotate(3deg) translate(0px, -4px);
    -ms-transform: rotate(3deg) translate(0px, -4px);
    -o-transform: rotate(3deg) translate(0px, -4px);
    transform: rotate(3deg) translate(0px, -4px);
}

.pace .pace-activity {
    display: none;
}

.loading {
    &:after {
        content: "";
        position: fixed;
        z-index: 10;
        -webkit-animation: loading-animation 0.9s linear infinite;
        animation: loading-animation 0.9s linear infinite;
        background: url("../../main/images/preloader.svg") no-repeat center;
        top: 50%;
        left: 50%;
        margin-top: -48px;
        margin-left: -16px;
        width: 32px;
        height: 32px;
    }

    &:before {
        content: "";
        width: 100%;
        height: 100%;
        position: fixed;
        background: #fff;
        opacity: 0.6;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 5;
    }
}

#updateInfoBlock {
    position: absolute;
    width: 200px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    background: #fff;
    border-radius: 0;
    font-weight: bold;
    display: none;
    top: 62px;
    z-index: 999;
    @include prefix(box-shadow, 0 3px 12px rgba(0, 0, 0, 0.05), webkit moz o ms);
}

#closeUpdateInfoBlock {
    color: #000;
    cursor: pointer;
    float: right;
    margin: 0 10px 0 0;
}

.panel__task-scheduler {
    .editbutton,
    .greenButton {
        margin-top: 5px;
    }
}

@keyframes loading-animation {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@-webkit-keyframes loading-animation {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

@import "fonts";
@import "buttons";
@import "form";
@import "table";
@import "aside";
@import "header";
