:root {
    --white: #ffffff;
    --black: #000000;
    --color-text-primary: #404954;
    --color-link: #1c92ea;
    --color-link-hover: #1b84d2;
    --bg-light: #f5f7fa;
    --bg-secondary: #4c5969;
    --border-light: #e3e6ed;

    --size-text-primary: 16px;
    --size-text-secondary: 14px;
}

* {
    margin: 0;
    padding: 0;
}

*, *:before, *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body.webbpm .form-signin label {
    width: 160px;
    margin-right: 0;
}

.webbpm .progress {
    position: absolute;
    width: 64px;
    height: 64px;
    margin-bottom: 0 !important;
    background: url("../img/progress.gif") no-repeat 0 0;
}

.webbpm > .progress {
    top: 50%;
    left: 50%;
    margin-top: -30px;
    margin-left: -30px;
}

.webbpm .search-task-progress-bar {
    text-align: center;
}

.webbpm .modal-body .progress,
.webbpm .search-task-progress-bar .progress {
    position: relative;
    top: 0;
    margin-top: 0;
}

/*-- common class --*/
.webbpm .fl-left {
    float: left;
}

.webbpm .fl-right {
    float: right;
}

.webbpm .anchor {
    float: none;
    clear: both;
}

.webbpm :is(ul, ol) li {
    list-style: none;
}

.webbpm :is(h1, h2, h3) {
    margin: 0;
    font-weight: normal;
}
.webbpm h1 {
    font-size: 2.33em;
}
.webbpm h2 {
    font-size: 2em;
}
.webbpm h3 {
    font-size: 1.5em;
}

.webbpm .table {
    display: table;
}

.webbpm .tr {
    display: table-row;
}

.webbpm .td, .webbpm .th {
    display: table-cell;
}

/*-- layout --*/
html, body.webbpm {
    width: 100%;
    height: 100%;
    display: block;
}

body.webbpm {
    background-color: #f9f9fa;
    font-family: Arial;
    font-size: var(--size-text-secondary);
    min-height: 0;
    padding: 0;
}

.webbpm .wrapper {
    height: 100%;
    min-height: 100%;
    position: relative;
}

.webbpm .container {
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0;
    padding: 67px 0 0;
    position: absolute;
    top: 0px;
    left: 0;
    right: 0;
    bottom: 50px;
    border: 0;
    overflow: hidden;

    [ng-include="taskPageFile"] {
        position: relative;
        min-height: 100%;
        height: 100%;
        overflow: auto;
    }
    .container-inside {
        font-family: Arial;
        font-size: var(--size-text-secondary);
        position: relative;
        height: 100%;
        overflow: auto;
    }
}

.webbpm footer {
    position: absolute;
    color: var(--black);
    font-size: 12px;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 50px;
    padding: 15px 0;
    border-top: 1px solid #c1c1c1;
    background: transparent;

    span + span {
        padding-left: 20px;
    }
}
/*--------- TOP MENU ----------*/
.webbpm .logo {
    display: inline-block;
    margin: 0;
    float: left;

    a {
        width: 200px;
        height: 67px;
        position: absolute;
        background: url("../img/logo.png") no-repeat 0 0;
    }
}

.webbpm .header {
    position: absolute;
    color: var(--white);
    font-family: Corbel;
    font-size: var(--size-text-secondary);
    top: 0;
    left: 0;
    right: 0;
    height: 67px;
    min-height: 67px;
    line-height: normal;
    border: 0;
    padding: 0;
    background: #b9c0ca;
    z-index: 997;

    .nav .nav-link {
        color: var(--white);
        float: none;
        display: block;
        line-height: 60px;
        padding: 0 15px 0 60px;
        text-shadow: none;
        cursor: pointer;
    }

    .nav .nav-link:hover {
        text-decoration: none;
    }
}

.webbpm .dropdown-menu {
    background-color: #eee;
}

.webbpm .nav .nav-item .dropdown-menu:after {
    border-bottom: 6px solid #eee;
}

.webbpm .inner {
    overflow-y: auto;
}

@media (min-width: 768px) {
    .webbpm .navbar .nav > * {
        float: left;
    }
}

@media (max-width: 767px) {
    .webbpm .dropdown-menu > div > button {
        color: #d1dbe5;
    }
}

/*--------- end - TOP MENU ----------*/
.webbpm .user-department,
.webbpm .user-info {
    color: #5a6473;
}

.webbpm .user-info > * {
    display: inline-block;
    margin-left: 5px;
}

.webbpm [log-out] {
    max-width: 40%;
    margin-right: 15px;
}

.webbpm .content {
    padding: 0 20px;
}

.webbpm .inner {
    min-height: 100%;
    height: 100%;
    overflow-y : scroll;
}

/*--------------task-list------------------*/
.task-list {
    font-size: 0;
    height: 100%;
    min-height: 100%;
}

.task-list > div {
    display: block;
    float: left;
    height: 100%;
    min-height: 100%;
    font-size: var(--size-text-secondary);
}

.task-list-tree-panel {
    width: 20%;
    background: #e9edf2;
    border-right: 1px solid #b9c1ca;
}

.task-list-tree-panel .task-list-filter {
    position: relative;
    margin-top: 15px;
    z-index: 10;
}

.task-list-tree-panel .task-list-filter li {
    position: relative;
    padding: 8px 10px;
    margin: 2px 10px;
}

.task-list-tree-panel .task-list-filter li::before {
    content: "";
    position: absolute;
    left: 0px;
    bottom: 0px;
    right: 0;
    top: 0;
    border: 1px solid rgb(206, 212, 219);
    border-radius: 4px;
    background-color: var(--white);
    opacity: 0.6;
}

.task-list-tree-panel .task-list-filter li label:hover {
    cursor: pointer;
}

.task-list-tree-panel .task-list-filter li label {
    position: relative;
    width: 100%;
    margin: 0;
    z-index: 11;
}

.task-list-tree-panel .task-list-filter li label input[type="radio"] {
    float: left;
    margin-top: 2px;
    margin-right: 4px;
}

.task-list-tree-panel .task-list-filter li label span {
    float: right;
    background-color: #bbb;
    padding: 0px 4px;
    border-radius: 3px;
    min-width: 25px;
    text-align: center;
    color: var(--white);
}

.task-list-tree-panel .task-list-filter li.ontime label span {
    background-color: #a0c367;
}

.task-list-tree-panel .task-list-filter li.overdue label span {
    background-color: #fc2d2d;
}

.task-list-header {
    border-bottom: 1px solid #b9c1ca;
    background-color: #ccd6e0;
    height: 30px;
    line-height: 30px;
    color: #565968;
    font-size: var(--size-text-secondary);
    padding: 0 12px;
}

.structure-box {
    padding: 15px;
}

.task-list-workplace {
    width: 80%;
    padding: 15px 15px 0;
    overflow-y: auto;
}
/*--------------task-list end--------------*/

/*---------------table-list----------------*/
.task-tbl {
    background: var(--white);
    width: 100%;
    border-collapse: collapse;
}

.task-tbl .td, .task-tbl .th {
    border: 1px solid #b9c1ca;
    padding: 10px 15px;
}

.task-tbl .th {
    color: #565968;
}

.task-tbl .td {
    color: #333;
}

.task-tbl .thead {
    background: #ccd6e0;
}

.task-tbl > .tr:hover {
    cursor: pointer;
    background: #e9edf2;
}

.task-tbl .tr.task-ontime > .td.task,
.task-tbl .tr.task-overdue > .td.task {
    position: relative;
    padding-left: 20px;
}

.task-tbl .tr.task-ontime > .td.task::before,
.task-tbl .tr.task-overdue > .td.task::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 5px;
    width: 10px;
    height: 10px;
    background-color: #a0c367;
    border-radius: 10px;
    z-index: 1;
}

.task-tbl .tr.task-overdue > .td.task::before {
    background-color: #ff0000;
}
/*----------------table-list end----------------*/

/*--------------Окно сообщения об ошибке--------------*/
.webbpm #toast-container {
    font-size: 12px;
    bottom: auto;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 95%;
}

.webbpm #toast-container .toast:hover {
    box-shadow: 0 0 12px #999999;
}

.webbpm #toast-container .ngx-toastr {
    min-width: 540px;
    opacity: 0.9;
}

.webbpm #toast-container .toast-error {
    background-color: #d9534f;
}

.webbpm #toast-container .toast-close-button {
    text-shadow: none;
}

.webbpm .toast-message > div {
    display: none;
}

.webbpm .toast-message > .active {
    display: block;
}

.webbpm .toast-message > .active::after {
    display: block;
    content: "";
    float: none;
    clear: both;
}

.webbpm .toast-message > .active a {
    float: right;
    margin: 5px 0;
}

.webbpm .toast-message > .toast-msg-close.active ~ .toast-msg-text {
    display: block;
    font-size: 0.8em;
}

.webbpm .toast-message a:not([href]):not([tabindex]) {
    text-decoration: underline;
}
/*------------Окно сообщения об ошибке end------------*/

/*----------------- Ошибка 404 -------------------*/
.webbpm .container .task-not-found-page {
    position: relative;
    display: table;
    width: 100%;
    height: 100%;
}

.webbpm .container .task-not-found-container {
    display: table-cell;
    color: var(--black);
    font-size: 1.8em;
    background-color: #c9d4e0;
    text-align: center;
    vertical-align: middle;
}

.webbpm .container .task-not-found-container > div {
    display: inline-block;
}

.webbpm .container .task-not-found-container > div:first-child {
    color: var(--white);
    font-size: 7.8em;
    font-weight: bold;
}

.webbpm .container .task-not-found-container > div:last-child {
    text-align: left;
    margin-left: 40px;
}

.webbpm .container .task-not-found-container h2 {
    font-size: 2em;
    margin-bottom: 10px;
}


.webbpm .container .task-not-found-container a {
    cursor: pointer;
}
/*--------------- end Ошибка 404 -----------------*/

/*-------------- MOBILE --------------*/
.webbpm.mobile .task-list-tree-panel,
.webbpm.mobile footer {
    display: none;
}

.webbpm.mobile .task-list-workplace {
    margin-left: 0;
}

.webbpm.mobile .container {
    bottom: 0;
}

.webbpm.mobile form {
    overflow: hidden;
}

.webbpm.mobile .form-signin {
    width: auto;
    padding: 20px;
    margin: 40px 20px;
    border-radius: 4px;
}

.webbpm.mobile .form-signin h1,
.webbpm.mobile .form-signin h2 {
    margin-left: 0;
}

.webbpm.mobile .form-signin label {
    text-align: left;
}

.webbpm.mobile .form-signin input[type="text"],
.webbpm.mobile .form-signin input[type="password"] {
    width: 100%;
}

.webbpm.mobile .form-signin .login-btn-box {
    width: auto;
    margin-right: 0;
}
/*-------------- end MOBILE --------------*/


/*-------------- НОВЫЙ ДИЗАЙН --------------*/
/*------------------ Фильтры ------------------*/
.webbpm .task-list {
    height: auto;
    min-height: auto;
}

.webbpm .task-list > .task-list-tree-panel {
    background: var(--white);
    border-right: 0;
}

.webbpm .task-list > .task-list-tree-panel,
.webbpm .task-list > .task-list-workplace {
    font-size: var(--size-text-secondary);
    float: none;
    width: 100%;
    height: auto;
    min-height: auto;
}

.webbpm .task-list-tree-panel .task-list-filter {
    font-family: Corbel;
    margin: 0;
    box-shadow: 0px 4px 10px -5px rgba(40, 40, 40, 0.3);

    ul {
        margin: 0;
    }

    li {
        display: inline-block;
        padding: 12px 0px;
        margin: 0;

        &:first-of-type {
            font-size: 1.4em;
            font-weight: bold;
            width: 197px;
            padding: 0 15px;
        }

        &::before {
            display: none;
        }

        label {
            font-size: 1.3em;
            font-weight: normal;
        }

        label div {
            display: inline-block;
            width: 10px;
            height: 10px;
            border-radius: 10px;
            margin-right: 8px;
        }

        &.ontime label div {
            background-color: #2da6a1;
        }

        &.overdue label div {
            background-color: #9c5d7a;
        }

        label input[type="radio"] {
            float: none;
            display: none;
        }

        label span {
            float: none;
            color: var(--black);
            font-weight: normal;
            text-align: left;
            min-width: auto;
            padding: 5px 15px;
            border-radius: 0;
            background-color: transparent;
        }

        label input[type="radio"].ng-valid-parse ~ span {
            background-color: #eaedf2;

        }
    }
}
/*-------------- end НОВЫЙ ДИЗАЙН --------------*/

.webbpm .dialog-stack-trace {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 300px;
}
.webbpm .dialog-show-button {
    text-decoration: underline;
    cursor: pointer;
}
.webbpm .dialog-error-number {
    font-size: 1.25rem;
}
.webbpm .dialog-error-title {
    font-size: 1rem;
}

/*-- login --*/
.webbpm :is(.form-signin, .form-signup, .confirm) { 
    color: #333;
    width: 580px;
    padding: 80px 100px;
    margin: 20px auto;
    border: 1px solid var(--bg-light);
    background: var(--white);
}

.webbpm .form-signin.esia {
    width: 450px;
    text-align: center;
    padding: 45px 55px 35px 55px;
}

.webbpm .form-signin h1,
.webbpm .form-signin h2,
.webbpm .form-signup h2,
.webbpm .confirm h2 {
    text-align: center;
    margin-bottom: 20px;
}

.webbpm .form-signin.esia :is(h1, h2) {
    margin-left: 0;
}

.webbpm .form-signin label,
.webbpm .form-signup label {
    margin-bottom: 0;
}

.webbpm .form-signin input {
    width: 240px;
    font-size: var(--size-text-secondary);
    display: inline-block;
}

.webbpm .form-signin.esia input {
    width: 160px;
    margin-top: 40px;
}

.webbpm :is(.form-signin, .form-signup) .row {
    display: flex;   
    margin: 0 0 20px;
}

.webbpm .registration-link, 
.webbpm .login-link {
    margin-right: 20px;
    font-size: var(--size-text-secondary);
}

.webbpm .form-signin .row.registration {
    flex-direction: row;
}

.webbpm .form-signin .login-btn-box {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.webbpm .form-signin .row.registration > * + *,
.webbpm .form-signin .login-btn-box .password,
.webbpm .form-signin .login-btn-box .btn + .btn {
    margin-left: 10px;
}

.webbpm .input-group > .input-group-append > .input-group-text {
    border-radius: 0;
}

.webbpm .form-signin .register-btn-box,
.webbpm .form-signup .register-btn-box,
.webbpm .form-signup .reset-password-btn-box {
    width: 220px;
}

.webbpm .form-signup .row international-phone-number .flagInput .btn {
    border-left: 1px solid #c6cdd3;
}
.webbpm .form-signup .row international-phone-number .flagInput ~ input {
    border-left: none;
}

.webbpm .form-signin .has-error .help-block {
    padding-left: 125px;
    font-size: var(--size-text-secondary);
}

.webbpm .form-signup .has-account a {
    margin-left: 10px;
}

/*------------------ Формы регистрации и подтверждения ------------------*/
.form-signup .has-account {
    flex-direction: row;
}

.form-signup .has-account a span,
.confirm a span {
    margin-right: 4px;
}

.form-signup .dropbtn.btn {
    margin-bottom: 0;
}

.form-signup .input-group-text {
    border-left-width: 0;
}

.form-signup input.ng-invalid.ng-touched,
.form-signup input.ng-invalid.ng-dirty {
    border-color: red !important;
}

.form-signup .msg-alert {
    color: red;
    font-size: 11px;
    padding: 3px 0 0;
}

.form-signup .consent {
    color: #929292;
    font-size: 13px;
    margin-top: 20px;
}
/*------------------ End - Формы регистрации и подтверждения ------------------*/

/*------------------ Сообщения об ошибке ------------------*/
.webbpm .error_message {
    width: 650px;
    margin: 0 auto;
    margin-top: 10%;
}

.webbpm .error_title {
    position: relative;
    color: #9c5d7a;
    font-size: 5.5em;
    font-weight: bold;
    margin-left: 100px;
    line-height: 1;
}
.webbpm .error_title::before {
    position: absolute;
    content: "";
    left: -100px;
    width: 75px;
    height: 75px;
    border-radius: 40px;
    background-color: #9c5d7a;
    background-image: url("../img/access_denied.png");
    background-repeat: no-repeat;
    background-position: 50% 50%;
}

.webbpm .error_title_long {
    margin-bottom: 20px;
    font-size: 2.5em;
}

.webbpm .error_body {
    font-size: 2em;
    line-height: 1.2;
    margin: 5px 0 0 100px;
}
/*---------------- end Сообщения об ошибке ---------------*/
/*-------------- Поле телефона ------------ */
.flag {
    background-image: url('./../img/country-flags.jpg') !important;
}
/*-------------- end Поле телефона ------------ */

