@font-face {
    font-family: 'MuseoSans';
    src: url('../fonts/MuseoSansCyrl.ttf') format('opentype');
}

html {
    height: 100%;
}

body {
    color: black;
    font-family: MuseoSans;
    font-size: 12px;
    line-height: 1.15;
    min-height: 100%;
    padding: 0 10px;
}

p {
    line-height: 1.6em;
    margin-bottom: 0;
}

h2, h3, h4 {
    font-variant: small-caps;
    font-weight: 200;
    margin-bottom: 0;
}

h2 {
    display: block;
    font-size: 1.7em;
    font-weight: 600;
    margin-top: 0;
}

a {
    color: -webkit-link;
}

.body-content {
    margin-top: 10px;
    height: calc(100vh - 40px);
    width: 100% !important;
    overflow: auto;
}

.body-content::-webkit-scrollbar {
    height: 0;
    width: 0;
}

.k-menu .k-item > .k-link > .k-i-arrow-60-down {
    display: none;
}

.k-editor-toolbar .k-tool-icon.k-icon {
    color: #00435e;
}

div.k-loading-mask {
    z-index: 100;
}

.floatingButtons {
    background-color: white;
    left: 15px;
    padding: 1px;
    display: flex;
    /*position: fixed;*/
    top: 45px;
    z-index: 10;
}

.floatingButtons {
    display: flex;
}

.floatingButtons > * {
    margin-right: 5px;
    overflow: unset;
    white-space: nowrap;
}

.person-base-fields_margin-fix-160 {
    margin-top: -160px;
}

@media screen and (max-width: 991px) {
    .person-base-fields_margin-fix {
        margin-top: 0;
    }
}

.k-grid .k-grid-header .k-header {
    white-space: normal;
}

.k-grid .k-grid-header .k-header .k-link {
    height: auto;
    margin-right: 0;
    padding-right: 0;
}

.k-grid tr:not(.k-state-selected),
.k-alt:not(.k-state-selected) {
    background: none;
    color: black;
}

.k-grid-header th.k-header {
    padding: .5em .2em .4em .2em;
    text-align: center;
    vertical-align: middle;
}

td[role=gridcell] {
    border-bottom: 1px solid #a3d0e4;
    line-height: 16px;
    padding: .3em .2em;
    text-align: center;
}

.k-button {
    font-family: MuseoSans;
    font-size: 12px;
}

.k-multiselect ul li.k-button {
    float: right;
    font-family: MuseoSans;
    font-size: 12px;
}

.k-multiselect-wrap {
    padding-right: 1px;
}

.k-combobox, .k-dropdown {
    width: 100%;
}

.k-i-more-vertical:before {
    color: lightslategrey;
    content: "\e031";
}

.k-radio:checked + .k-radio-label:after {
    left: 2px;
    top: 2px;
}

.k-tooltip-content {
    cursor: pointer;
    text-align: left;
}

.k-edit-form-container {
    width: 100%;
}

.k-state-disabled {
    color: black;
}

.popupTable {
    width: 100%;
}

.popupTable > tbody > tr > td {
    padding-bottom: 5px;
}

.popupTable > tbody > tr > td:nth-child(odd) {
    padding-left: 5px;
    width: 20%
}

.popupTable > tbody > tr > td:nth-child(even) {
    padding-left: 5px;
    padding-right: 5px;
}

.filters {
    margin: 0 -10px 10px -10px;
}

#filter-form {
    display: initial;
    font-family: MuseoSans;
    font-size: 12px;
}

/* Кнопка редактирования сущности */

.bk-edit-button {
    background-image: none, linear-gradient(to bottom, rgb(236, 245, 249) 0, rgb(222, 238, 245) 100%);
    border-color: #a3d0e4;
    border-radius: 4px;
    padding: 0 6px;
}

.bk-edit-button a {
    background-image: url('http://erp.holdingbp.ru/WebResource.axd?d=BKguK8ba1SZKF33TgWzS8cT-HagCONaqmkNu-GO_vrO9MpZ3WI9mXfgVVNL7HdudIAmEhq2xo_EVxLQ_nToIL8WEtoGm55k-miZ7fchU--FueiJNJ4ym-6sTk9NwUWCuBCF8cD6E9wYHZPBHJ5hV6Dn5APN-JVsWhFVh6oq4aPE1&t=636367792300000000') !important;
    background-position: -180px 0 !important;
    color: black;
    display: inline-block;
    text-decoration: none;
    width: 17px;
}

/* Редактор справочников */

.dict-editor {
    padding: 0 10px;
}

.dict-editor .row {
    margin: 4px -10px;
}

.swal2-container {
    z-index: 20000;
}

/* Всплывающая подсказка */

.infotip {
    background: url(/Content/infoIcon.png) left no-repeat;
    color: #0070ba;
    cursor: pointer;
    font-family: MuseoSans;
    font-size: 12px;
    margin-left: 5px;
    padding: 0 0 1px 20px;
    padding-top: 2px;
}

.infotip:hover {
    color: #ff870b;
}

.infotip-first {
    margin-left: 30px;
}

/* Переопределение bootstrap */

label {
    font-weight: normal;
    margin-bottom: 0;
}

b label {
    font-weight: bold;
}

.row {
    margin-bottom: 5px;
    margin-left: -10px;
    margin-right: -10px;
}

/* Вспомогательные классы */

.hidden {
    display: none;
}

.leftalign {
    text-align: left;
}

.rightalign {
    text-align: right;
}

/* Клиентские */

.validation-summary-errors {
    color: red;
    display: inline-block;
    font-weight: normal;
    margin-bottom: 10px;
    width: 100%;
}

.validation-summary-errors ul {
    list-style-type: none;
    margin: 0;
    padding: 0 0 10px 0;
}

.red {
    color: red;
}

.lime {
    color: lime;
}

.green {
    color: green;
}

.roles {
    margin: 5px 0;
}

.roles__role {
    background: #daecf4;
    border: 1px solid #93c8df;
    border-radius: 4px;
    color: #003f59;
    font-family: MuseoSans;
    font-size: 12px;
    margin-right: 5px;
    padding: 6px 28px;
    transition: all .3s;
}

.roles__role:not(.roles__role_active):hover {
    background: #93c8df;
}

.roles__role_active {
    background: #93c8df;
    border: 1px solid #000000;
    border: 1px solid rgba(0, 0, 0, 0.3);
    color: #fff;
    font-weight: bold;
}

.photo, .photo_w200 {
    min-height: 200px;
    min-width: 200px;
    width: 100%;
}

.photo {
    border: 1px solid black;
}

.range-filter {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.k-grouping-row .k-reset {
    left: 0;
    position: sticky;
}

.k-grouping-row td {
    left: 0;
    position: sticky;
}

.grid-report-container {
    align-items: flex-start;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
}

.grid-report-column {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    flex-shrink: 0;
    padding: 5px;
}