html, body {
    width: 100%;
}

body {
    opacity: 0;
    transition: opacity .5s linear;
}

body.ready {
    opacity: 1;
}

.blurred {
    -webkit-filter: blur(5px);
}

* {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
}

h1 {
    font-size: 48px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    margin-bottom: 20px;
    color: #000000;
}

h2 {
    font-size: 23px;
    text-align: center;
    color: #adadad;
    font-weight: 300;
}

.unauth-block {
    width: 538px;
    border-radius: 10px;
    background-color: #ffffff;
    border: solid 1px #eaeaea;
    position: fixed;
    left: 50%;
    padding-bottom: 80px;
    top: 50%;
    transform: translate(-50%, -50%);
}

.auth-block {
    width: 1024px;
    margin: 100px auto 25px;
    border-radius: 10px;
    background-color: #ffffff;
    border: solid 1px #eaeaea;
}

.auth-block h1 {
    margin-bottom: 32px;
}

header {
    position: relative;
    margin-bottom: 100px;
}

.logo {
    width: 146px;
    height: 146px;
    display: inline-block;
    padding: 29px 0 0 8px;
    border: solid 1px #eaeaea;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    text-align: center;
    top: -73px;
    transform: translateX(-50%);
    background-color: white;
}

.offline {
    z-index: 100;
    position: fixed;
    background: rgba(255, 255, 255, 0.70);
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
}

.offline__text {
    background: white;
    padding: 27px 70px 35px;
    box-shadow: 0 0 70px 22px #f0f0f0;
    text-align: center;
    z-index: 110;
    position: fixed;
    top: 45%;
    left: 50%;
    font-size: 33px;
    line-height: 2;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.offline__text a {
    font-size: 25px;
    color: black;
    text-decoration: none;
    border-bottom: 1px dashed;
    display: inline-block;
    line-height: 30px;
}

.title {
    margin-top: 59px;
}

.title__subtext {
    font-size: 23px;
    text-align: center;
    color: #adadad;
    font-weight: 400;
    margin-bottom: 50px;
}

.buttons {
    text-align: center;
    margin: 20px auto 0;
}

.btn-app {
    transition: all .3s;
    width: 240px;
    line-height: 61px;
    border-radius: 5px;
    border-width: 1px;
    border-style: solid;
    color: #fff;
    text-align: center;
    font-size: 18px;
    background-color: #fff;
    display: block;
    cursor: pointer;
    -webkit-user-select: none;
}

.toggle {
    transition: all .3s;
    cursor: pointer;
    padding-top: 11px;
    display: inline-block;
    width: 173px;
    height: 40px;
    background-color: #ffffff;
    border: solid 1px #bfbfbf;
    font-size: 14px;
    text-align: center;
    color: #000000;
}

.toggle:hover {
    background-color: #f5f5f5;
}

.toggle:active {
    box-shadow: inset 0 2px 3px 1px rgba(0, 0, 0, 0.15);
}

.toggle__accept {
    border-radius: 6px 0 0 6px;
}

.toggle__decline {
    border-radius: 0 6px 6px 0;
}

.toggle-active {
    cursor: default;
    background-color: #ededed;
    box-shadow: inset 0 2px 3px 1px rgba(0, 0, 0, 0.15);
}

.btn-app_start {
    background-color: #ffcc00;
    color: #000;
    box-shadow: 0 2px 0 0 #ffa000;
    border: none;
    margin: 0 auto;
    cursor: pointer;
}

.btn-app_start:hover {
    background-color: #ffde5b;
}

.btn-app_start:active {
    background-color: #ffa000;
}

.btn-app-primary {
    background-color: #fff;
    color: #000;
    box-shadow: 0 2px 0 0 #fff;
    border-color: #bfbfbf;
    cursor: pointer;
}

.btn-app-primary:not(.disabled):hover {
    background-color: #eee;
}

.btn-app-primary:active {
    background-color: #ddd;
}

.btn-app-work {
    background-color: #28aa1e;
    box-shadow: 0 13px 15px 1px rgba(39, 170, 30, 0.2), 0 3px 0 0 #229319;
    color: #fff;
    border-color: #28aa1e;
    cursor: pointer;
    margin: 0 auto;
}

.identify .btn-app-work {
    background-color: #4A90E2;
    border-color: #4A90E2;
    box-shadow: 0 13px 15px 1px rgba(74, 144, 226, 0.2), 0 3px 0 0 #4076b5;
}

.btn-app-work:hover {
    background-color: #2ec722;
}

.identify .btn-app-work:hover {
    background-color: rgba(74, 144, 226, 0.62);
}

.btn-app-work:active {
    background-color: #2ec722;
}


.btn-full {
    width: 100%;
}

.applications {
    margin-top: 38px;
    text-align: center;
    width: 100%;
}

.text {
    color: #000;
    font-size: 24px;
    line-height: 1.2;
}

.text_gray {
    color: #8e8e93
}

.text_blue {
    color: #007aff;
}

.application {
    width: 1024px;
    height: 776px;
    border-radius: 10px;
    background-color: rgba(39, 170, 30, 0.18);
    border: solid 4px #28aa1e;
    position: relative;
    margin: 0 auto;
}

.application.identify {
    background-color: #9CC5F5;
    border: solid 4px #4A90E2;
}

.application:not(.application_working) .application__btn-app:hover {
    cursor: pointer;
    color: #ff3b30;
}

.application .text {
    line-height: 60px;
}

.application__name {
    font-size: 27px;
    text-align: center;
    color: #000000;
    margin-bottom: 20px;
    white-space: nowrap;
}

.identifyText {
    font-size: 18px;
    padding: 6px 16px;
    background: #4A90E2;
    line-height: 18px;
    color: white;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.application-actions {
    display: flex;
}

.application-actions > div:not(:last-child) {
    margin-right: 8px;
}

.application__work {
    text-align: center;
    color: #28aa1e;
    font-size: 27px;
    position: relative;
}

.identify .application__work {
    color: #4A90E2;
}

.application__wrap {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.application__none {
    width: 731px;
    height: 276px;
    border-radius: 10px;
    background-color: #f6f6f6;
    position: relative;
    margin: 0 auto;
}

.application__none_text {
    font-size: 24px;
    text-align: center;
    color: #8e8e93;
    position: absolute;
    font-weight: 300;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.work {
    text-align: center;
}

.work__wrap {
    display: inline-block;
    border: solid 2px #e3e7f1;
}

.work__wrap:after {
    clear: both;
}

.work__item {
    float: left;
    border-right: solid 2px #e3e7f1;
    padding-top: 12px;
    text-align: center;
    width: 87px;
    height: 57px;
}

.work__item:last-child {
    border-right: none;
}

.work__title {
    font-size: 8px;
    font-weight: 500;
    text-align: center;
    color: #aeaeae;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.work__content {
    font-size: 20px;
    color: #cacdd9;
}

.work-active .work__content {
    color: #000000;
    font-weight: bold;
}

.work__start {
    color: #5fb555 !important;
    opacity: 0.5;
}

.work__start-lateness {
    color: #d0021b !important;
    opacity: 0.5;
}

.work-active .work__start {
    opacity: 1;
}

.work-active .work__start-lateness {
    opacity: 1;
}

footer {
    margin-top: 47px;
    margin-bottom: 33px;
    width: 100%;
}

footer .btn-app_finish {
    margin: 0 auto;
}

.left {
    float: left;
}

.right {
    float: right;
}

.loginForm {
    width: 391px;
    margin: 56px auto 0;
}

.loginForm button {
    margin-top: 35px;
}
.password-input-wrap {
    display: flex;
}
.password-input-wrap button {
    margin: 0;
    margin-left: 10px;
    height: 62px;
    line-height: unset;
    font-size: 14px;
    width: 145px;
}
.loginError,
.loginWarning {
    position: absolute;
    color: red;
    text-align: center;
    width: 100%;
    left: 0;
}
.loginWarning {
    color: #ffa000;
}

label {
    font-size: 16px;
    color: #9ea6ba;
    margin-bottom: 10px;
    display: inline-block;

}

input[type=text], input[type=password], textarea {
    transition: border-color .3s;
    padding: 14px 16px;
    width: 100%;
    font-size: 24px;
    border-radius: 2px;
    border: solid 1px #d5dbe9;
    box-sizing: border-box;
    margin-bottom: 30px;
}
input[type=password] {
    margin-bottom: 15px;
}
input[type=text]:focus, input[type=password]:focus {
    border-color: #f9b605;
}
input[type=password].password-with-button {
    width: 240px;
}

.modal.modal-wide .modal-dialog {
    width: 100%;
}

.modal-body {
    height: calc(100vh - 150px);
}

@media (min-width: 768px) {
    .modal-dialog {
        margin-bottom: 20px !important;
    }
}

.history {
    padding: 32px 28px 0 28px;
}

.flex {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.history-button {
    margin-left: 12px;
    background-color: #fff;
    color: #000;
    box-shadow: 0 2px 0 0 #fff;
    border-color: #bfbfbf;
}

.history-no-data {
    display: none;
    padding: 10px 0 0;
    text-align: center;
}

.client-text {
    flex-direction: column;
    padding: 32px 28px 0 28px;
}

.client-text-textarea {
    flex: 1;
    height: 300px;
    margin-bottom: 20px;
}

.client-text-alerts {
    width: 100%;
}

.client-comments {
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
    overflow: auto;
    border: 1px solid #ccc;
    padding: 8px;
    border-radius: 4px;
    margin-top: 20px;
}

.client-comments .client-comment {
    margin-bottom: 16px;
}

#client-id-input {
    padding-right: 20px;
    display: block;
    width: 180px !important;
    margin-bottom: 0px !important;
}

.checkbox-container {
    padding: 14px 16px;
}

.checkbox-label {
    padding-left: 9px;
    margin-bottom: -5px;
    cursor: pointer;
}

.btn-app.disabled {
    color: #9c9c9c;
    cursor: not-allowed;
    filter: alpha(opacity=65);
    -webkit-box-shadow: none;
    box-shadow: none;
    opacity: .65;
    pointer-events: none;
}

a:focus, a:hover, a:visited {
    color: black !important;
    text-decoration: none !important;
}

.alert-client {
    margin: 32px 28px 0 28px;
}

.animal-loader {
    text-align: center;
    width: 240px;
}

.claims {
    height: 300px;
    overflow: scroll;
}

.claims table td {
    padding: 0 35px 30px;
}


.passportCheckContainer,
.rfmCheckContainer,
.wmdCheckContainer,
.bfCheckContainer {
    padding: 32px 28px 0 28px;
}

.passportCheckContainer .notExistsLabel,
.rfmCheckContainer .notExistsLabel,
.wmdCheckContainer .notExistsLabel,
.bfCheckContainer .notExistsLabel {
    font-weight: 500;
}

.passportCheckContainer div:not(:first-child),
.rfmCheckContainer div:not(:first-child),
.wmdCheckContainer div:not(:first-child),
.bfCheckContainer div:not(:first-child) {
    padding: 0;
    border: none;
    background: transparent;
    font-weight: 500;
    margin: 0;
}

.passportCheckContainer a,
.rfmCheckContainer a,
.wmdCheckContainer a,
.bfCheckContainer a {
    text-decoration: underline;
}


.btn-rating {
    margin: 10px auto;
    line-height: 40px;
    width: 140px;
}


/* Rating page*/

.rating-date-selector {
    margin: 8px 64px;
    float: left;
}

.rating__error {
    color: red;
    padding-left: 20px;
}

.rating-table-wrapper {
    margin: 16px 64px;
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

.rating-table, .rating-table th, .rating-table td {
    border: 1px solid gray;
}

.rating-table th {
    position: relative;
    text-align: center;
    padding: 0 12px 0 4px;
}

.rating-table td {
    padding: 0 4px;
}

.rating-table td:not(:first-child) {
    text-align: center;
}

.rating-table-sort {
    width: 12px;
    height: 12px;
    background-size: cover;
    position: absolute;
    right: 4px;
    top: 4px;
    cursor: pointer;
    opacity: .4;
}

.rating-table-sort.active {
    opacity: 1;
}

.rating-table-sort.asc {
    background-image: url("images/chevron-up.svg");
}

.rating-table-sort.desc {
    background-image: url("images/chevron-down.svg");
}

.rating-loader {
    height: 28px;
}

/*  Scroll foe every tab in credit history modal  */
#xmlModal .modal-body {
    padding-right: 0;
    overflow: hidden;
}

#xmlModal .tab-content, #xmlModal .tab-pane {
    overflow: hidden;
    height: 100%;
}

#xmlModal .tab-body-wrapper {
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

#xmlModal .tab-body {
    padding-right: 15px;
}

.loan-application-range-container {
    display: flex;
    justify-content: center;
}

.loan-application-range {
    width: 400px
}

#task-decision-button {
    alignment: center;
    padding-top: 10px;
}

#loan-application-decision-button-group {
    alignment: center;
    padding-top: 10px;
}

.loan-application-decision-button {
    width: 100px;
}

#loan-application-decision-verification-button-group {
    alignment: center;
    padding-top: 10px;
}

.loan-application-decision-verification-button {
    width: 100px;
}

#client-verification-button-group {
    alignment: center;
    padding-top: 10px;
}

.client-verification-button {
    width: 175px;
}

.transition{
    transition: all .3s ease-out;
}

.btn {
    border-width: 10px;
    background-color: #dddddd;
    color: black;
    padding: 14px 28px;
    font-size: 16px;
    cursor: pointer;
}

.success {
    border-width: 2pt;
    border-color: #000000;
}

.success.active,
.success:focus,
.success:hover {
    background-color: #31a536;
    color: #f3f3f3;
}

.success input[type="radio"]:checked + label {
    background-color: #31a536;
    color: #f3f3f3;
}

.danger {
    border-width: 2pt;
    border-color: #000000;
    color: #000000;
}

.loan-application-product {
    font-size: 20pt;
}

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

input[type="radio"]:checked + label {
    background-color: #31a536;
    color: #f3f3f3;
}
