@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 "../third-party/css/bootstrap/buttons";
@import "../third-party/css/bootstrap/forms";
@import "../third-party/css/bootstrap/labels";
@import "../third-party/css/bootstrap/tables";
@import "../third-party/css/bootstrap/pagination";

@import "custom-variables";
@import "utils";

body {
    font-family: 'Roboto', sans-serif;
    color: $default-color;
    background-color: $body-bg;
    font-size: $font-size-base;
    height: 100%;
    position: relative;
}

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;
}

p.errorList {
    background: #fcffd3;
    color: #CE0000;
    border: 1px solid #CE0000;
    margin: 5px 5px 5px 35px;
    padding: 5px 5px 5px 15px;
}

.modal-body {
    padding: 50px 40px;
}

.modal-footer {
    padding: 0 40px 40px;
}

.modal-title {
    text-align: center;
}

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

.refine-search__title {
    margin-right: 15px;
    margin-bottom: 15px;
    + label {
        font-size: 14px;
        margin-bottom: 15px;
    }
}

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

    .btn {
        margin: 0 0 10px;
    }

    .btn-group.dropdown .btn-success {
        background-color: #009688;
        border: 1px solid #009688;
        opacity: 0.9;
        margin-bottom: 0;

        &:hover {
            opacity: 1;
            background-color: #009688;
            border: 1px solid #009688;
            color: #fff;
        }

        &:active:focus,
        &:active,
        &:focus,
        &:active {
            background-color: #5cb85c;
            border-color: #4cae4c;
            color: #fff;
        }

        .caret {
            color: #fff;
        }
    }

    .dropdown-menu>li>a {
        padding: 6px 20px;
    }

}
#auth {
    padding: 0 15px 100px;
    height: 100vh
}
#loginForm {
    max-width: 400px;
    margin: 0 auto;
    overflow: hidden;
    font-size: 14px;
    position: relative;
    top: 150px;

    .panel {
        padding: 35px;
    }

    @media all and (max-width: 767px) {
        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;
    padding: 17px 0 30px;
    font-size: 12px;
    width: 100%;
    bottom: 0;
    left: 0;
    position: absolute;

    @media all and (max-height: 520px) {
        position: relative;
        top: 30px;
    }
    @media all and (min-width: 767px) and (max-height: 690px) {
        position: relative;
        top: 150px;
    }
}
.activate-admin {
    #copyright {
        @media all and (max-height: 705px) {
            position: relative;
            top: 30px;
        }
        @media all and (min-width: 767px) and (max-height: 786px) {
            position: relative;
            top: 100px;
        }
    }
    #loginForm {
        @media all and (min-width: 767px) and (max-height: 786px) {
            top: 100px;
        }
    }

}

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 (max-width: 1399px) and (min-width: 1200px) {
            max-width: 90% !important;
        }
        @media all and (max-width: 1660px) and (min-width: 1400px) {
            max-width: 73% !important;
        }
        @media all and (min-width: 1661px) {
            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;
        }

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

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

#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;
    }
}

.update-info {
    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);
}

.update-info-close {
    color: #000;
    cursor: pointer;
    float: right;
    margin: 0 10px 0 0;
}

.panel__task-scheduler {
    .btn--secondary {
        margin-top: 5px;
    }
}

//FIXME: Расскидать
.required {
    color: red;
}

.mt-count-available {
    float: left;
    padding: 4px 0 0 10px;
}

/* START:XML Import
*********************************************************************************/
.draggableuser,
.draggable {
    width: 145px;
    padding: 5px 27px;
    background: #AFAFAF;
    border: 1px solid #ddd;
    color: #333;
    position: absolute;
    text-align: center;
    font-weight: bold;
}
.droppableuser,
.droppable {
    padding: 3px 5px;
    width: 200px;
    height: 29px;
    background: #FFAD84;
    border: 1px solid #ddd;
    color: #333;
    float: right;
}
.td_height {
    height: 44px;
}
.droppable2user,
.droppable2 {
    text-align: center;
    padding: 3px 5px;
    width: 200px;
    height: 29px;
    background: #EAEAEA;
    border: 1px solid #ddd;
    color: #333;
}
.droppable2external_id {
    padding: 5px;
    width: 200px;
    height: 25px;
    background: #EAEAEA;
    border: 1px solid #ddd;
    color: #333;
}
.ui-state-highlight {
    background: #FF752B !important;
}
.ui-state-drophover {
    background: #FF5500 !important;
}
.ui-state-highlight2 {
    background: #D3D3D3;
}
.ui-state-drophover2 {
    background: #BCBCBC;
}
.droppableusername {
    padding: 5px;
    width: 200px;
    height: 25px;
    background: #FFAD84;
    border: 1px solid #ddd;
    color: #333;
    float: right;
}
.td_height {
    height: 44px;
}
.droppable2Username {
    padding: 5px;
    width: 200px;
    height: 25px;
    background: #EAEAEA;
    border: 1px solid #ddd;
    color: #333;
    text-align: center;
}
/********************************************************************************/

/* START:Print page
*********************************************************************************/
.printPage {
    width: 800px;
    margin: 10px auto;
    overflow: hidden;
}
.printLeft {
    width: 200px;
    float: left;
}
.printRight {
    width: 580px;
    float: right;
}
/********************************************************************************/

/* START:Update Block CSS
*********************************************************************************/
.package_text_diff {
    background: #FAFAFA;
    border: 1px solid #ccc;
    border-collapse: collapse;
    width: 98%;
}
.inner_table {
    width: 480px;
    height: 600px;
    overflow: scroll;
}
.package_text_diff .package_text_diff_line {
    background: #eee;
    border: 1px solid #D7D7D7;
    color: #999999;
    font-family: Verdana, Arial, Helvetica, "sans-serif";
    font-size: 0.8em;
    padding: 0 3px 0 0;
    text-align: right;
    width: 2%;
}
.text_diff_op_line.text_diff_op_change .package_text_diff_left,
.text_diff_op_line.text_diff_op_delete .package_text_diff_left {
    background: #FFCCCC;
}
.text_diff_op_line.text_diff_op_add .package_text_diff_right,
.text_diff_op_line.text_diff_op_change .package_text_diff_right {
    background: #CCFFCC;
}
.update-cf {
    color: #808080;
}
/********************************************************************************/

@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);
    }
}

.ion-close-circled {
    color: #cb2a2a;
    font-size: 16px;
    cursor: pointer;
}

@import 'fonts';
@import 'buttons';
@import 'form';
@import 'table';
@import 'panel';
@import 'pagination';
@import 'aside';
@import 'header';
@import 'dashboard';
@import 'navigation';
@import 'tour';