/*
 * Совместимость с Blueprint 6.
 *
 * До 6-й версии Blueprint сам рисовал стрелку выпадающего списка псевдоэлементом
 * `.bp5-select::after`, задавая ему content, шрифт иконок и абсолютное позиционирование.
 * В Blueprint 6 это правило убрано: стрелку рисует React-компонент HTMLSelect в виде SVG.
 *
 * Проект во многих местах использует обёртку `<div className="bp6-select">` вокруг обычного
 * <select>, поэтому стрелка пропала, а там, где её content переопределён в стилях проекта,
 * псевдоэлемент остался в потоке и переносился на следующую строку.
 *
 * Ниже восстановлено то, что раньше приходило из Blueprint.
 */

.bp6-select::after {
    content: "\f184"; /* double-caret-vertical - стрелка Blueprint по умолчанию */
    font-family: "blueprint-icons-16", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    line-height: 1;
    height: 16px;
    width: 16px;
    color: #5f6b7c;
    pointer-events: none;
    position: absolute;

    /* Совпадает с позицией родной иконки Blueprint 6 (.bp6-select .bp6-icon):
       right 8px + ширина 16px укладываются в padding-right: 24px у select */
    right: 8px;
    top: 7px;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

.bp6-select:hover::after {
    color: #1c2127;
}

.bp6-dark .bp6-select:hover::after {
    color: #f6f7f9;
}

.bp6-disabled.bp6-select::after {
    color: rgba(95, 107, 124, 0.6);
}

/*
 * Цвет шрифтовых иконок внутри кнопок в светлой теме.
 *
 * Blueprint 5 красил в кнопке и SVG-иконку, и шрифтовые классы:
 *     .bp5-button .bp5-icon, .bp5-button .bp5-icon-standard, .bp5-button .bp5-icon-large
 * В Blueprint 6 из светлого правила остался только `.bp6-icon` (класс SVG-компонента Icon),
 * а `-standard` и `-large` пропали - при этом в тёмной теме они сохранились. Поэтому
 * рассинхрон цвета виден только в светлом режиме.
 *
 * Специфичность (0,3,0) выбрана намеренно, чтобы правило:
 *   - не перебивало тёмную тему (там у Blueprint (0,5,0));
 *   - не мешало disabled- и intent-кнопкам (у Blueprint там color: inherit !important).
 */

.bp6-button .bp6-icon-standard:not([class*="bp6-intent-"]), .bp6-button .bp6-icon-large:not([class*="bp6-intent-"]) {
    color: var(--bp-typography-color-muted);
}

/*
 * Фокус на поле только для чтения.
 *
 * В Blueprint 5 правил `:focus` для readonly-полей не было вовсе - при клике вид не менялся.
 * Blueprint 6 добавил `.bp6-input[readonly]:focus` с синей обводкой, из-за чего нередактируемые
 * поля по клику подсвечиваются как активные. Возвращаем прежнее поведение: повторяем ту же
 * тень, что и у readonly-поля без фокуса, поэтому фокус визуально ничего не меняет.
 *
 * Поле остаётся фокусируемым - значение можно выделить и скопировать.
 */

.bp6-input[readonly]:focus {
    box-shadow: inset 0 0 0 1px var(--bp-surface-border-color-default);
}

.bp6-dark .bp6-input[readonly]:focus {
    box-shadow: inset 0 0 0 1px oklch(from var(--bp-palette-black) l c h / 0.4);
}

/*
 * Двойная рамка у полей даты (например, "Дата взятия" и "Срок выполнения" в SampleCommon).
 *
 * До Blueprint 6 DateInput вешал inputProps.className на сам <input>, и проектный класс
 * vision-sample-oak-result-input рисовал рамку-тень прямо на поле ввода. В Blueprint 6
 * DateInput передаёт inputProps.className на обёртку InputGroup, поэтому рамка стала
 * рисоваться дважды: прямоугольная - тенью класса на обёртке (у неё нет скругления),
 * и скруглённая - штатной тенью вложенного .bp6-input.
 *
 * Убираем тень с обёртки: у вложенного input остаётся стандартная рамка Blueprint,
 * совпадающая с рамкой остальных полей. Ширина и прочие свойства класса на обёртке
 * по-прежнему нужны, поэтому сбрасываем только тень.
 */

.bp6-input-group.vision-sample-oak-result-input {
    box-shadow: none;
}

/* Специфичность (0,3,0), чтобы перебить тёмную тему из OAKResult.css (0,2,0), которая грузится позже */

.bp6-dark .bp6-input-group.vision-sample-oak-result-input {
    box-shadow: none;
    background: transparent;
}

/*
 * Шрифт для "голых" шрифтовых иконок, например <button className="bp6-icon-chevron-left">
 * (сворачивание левой панели в RbcPltView/OAKFullFrames, пейджер в SamplesList и т.п.).
 *
 * Blueprint задаёт шрифт иконок явно только там, где использует его сам:
 * span.bp6-icon-standard, span.bp6-icon-large и .bp6-button[class*="bp6-icon-"]::before.
 * Классы bp6-icon-<имя> без этих обёрток задают псевдоэлементу только content и полагаются
 * на то, что "blueprint-icons-16" стоит в конце font-family у body. Символы иконок лежат
 * в Private Use Area (U+F1xx), а для таких символов браузер не обязан перебирать цепочку
 * fallback-шрифтов - в текущем Chromium вместо иконки рисуется пустой квадрат.
 *
 * Задаём шрифт псевдоэлементу явно - так же, как Blueprint делает в своих правилах.
 */

[class*="bp6-icon-"]::before {
    font-family: "blueprint-icons-16", sans-serif;
    font-style: normal;
    font-variant: normal;
    font-weight: normal;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
}

/*
 * Крупные иконки используют 20px-вариант шрифта. Правило выше перебивает шрифт,
 * унаследованный псевдоэлементом от span.bp6-icon-large, поэтому возвращаем его явно.
 * Для кнопок 20px-шрифт задаёт SampleView.css (button.bp6-button.bp6-icon-large::before,
 * специфичность (0,2,1)) - это правило он не затрагивает.
 */

.bp6-icon-large::before {
    font-family: "blueprint-icons-20", sans-serif;
}

.vision-qualityControl-tableFlexDiv {
    display: flex;
    height: 100%;
    width: 100%;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
    flex: 1 1 auto;
    min-height: 0;
}

.vision-qualityControl-tableFlexDiv .bp6-table-container {
    box-shadow: 0 0 0 transparent;
}

.vision-qualityControl-leftColumn {
    vertical-align: top;
    display: inline-block;
    width: 450px;
    height: 100%;
}

.vision-qualityControl-leftColumn .visionDataTable {
    height: 100%;
    width: 100%;
    max-height: 100%;
    max-width: 100%;
}

.vision-qualityControl-rightColumn {
    vertical-align: top;
    display: inline-block;
    width: calc(100% - 470px);
    margin-left: 20px;
    height: 100%;
}

.vision-qualityControl-rightColumn-noMargin {
    vertical-align: top;
    display: inline-block;
    height: 100%;
    width: 100%;
}

.vision-qualityControl-leftColumn .vision-sampleList-table {
    margin-right: 0;
}

.vision-qualityControl-noSampleState {
    position: absolute;
    z-index: 20;
    width: 450px;
    max-width: 450px;
    height: 200px;
    margin-top: 60px;
}

.vision-qualityControl-indent {
    display: inline-block;
}

.bp6-dark .vision-qualityControl-indent {
    color: var(--bp-light-gray5);
}

.vision-qualityControl-out-of-range {
    color: red;
}

.bp6-dark .vision-qualityControl-out-of-range {
    color: var(--bp-red5);
}

.vision-qualityControl-bold {
    font-weight: 600;
}

.vision-qualityControl-ribbon-leftBar {
    vertical-align: top;
    display: inline-block;
    height: 100%;
    width: 490px;
    padding-left: 20px;
}

.vision-qualityControl-ribbon-middleBar {
    vertical-align: top;
    display: inline-block;
    height: 100%;
    width: 200px;
}

.vision-qualityControl-ribbon-rightBar {
    display: inline-block;
    width: calc(100% - 710px);
    text-align: right;
}

.vision-qualityControl-ribbon-rightBar button {
    width: 130px;
    text-align: center;
    vertical-align: top;
}

.vision-qualityControl-ribbon-rightBar .marginLeft {
    margin-left: 20px;
}

.vision-qualityControl-ribbonDiv {
    height: 70px;
    width: 100%;
    padding-top: 20px;
}

.vision-qualityControl-rightColumn .vision-sampleList-table .bp6-table-body-cells .bp6-table-cell {
    cursor: default;
}

.vision-qualityControl-ribbon-rightBar button.bp6-button img.vector {
    vertical-align: text-top;
}

.vector {
    margin-top: 0 !important;
}

.vision-qualityControl-ribbon-rightBar-header .bp6-table-quadrant-stack {
    height: 41px;
}

.qc-rightTable-withHeader {
    height: calc(100% - 41px);
}

.vision-qc-headerTable .bp6-table-column-name {
    text-align: center;
}

.qc-samplesList-table-header .bp6-table-header {
    box-shadow: 0 1px 1px 0 !important;
}

.vision-qc-headerTable-height {
    min-height: 0 !important;
}

.vision-qualityControl-ribbon-rightBar button.bp6-disabled img.vector {
    opacity: 0.5;
}
/* Значок меню рисуется по центру своего квадрата 20×20: по центру кнопки его ставит сама кнопка,
   поэтому собственных сдвигов у значка нет */

.qOA1J8imhacfbRcCBLHA {
    background: url(/images/Menu_20x20.svg) no-repeat center !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.nmyVFrAqDdL5_NLhwVNA {
    background: url(/images/Menu_20x20_dark.svg) no-repeat center !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.HwfuELcBV0HqKUP49quP {
    background: url(/images/Menu_20x20_dark.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 15px;
    left: 2px;
    position: relative;
}

._kA1Bc1sUGd1moL3fxCc {
    background: url("/images/Cases_Attach%20Patient_20x20.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.eNXVxru7hV1k9TrMEfui {
    background: url("/images/Cases_Attach%20Patient_20x20_dark.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.Du_N7jDvy02yFTOFO7aD {
    background: url("/images/Cases_Detach%20Patient_20x20.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.rX25R0piGf4RuF1ZR1xw {
    background: url("/images/Cases_Detach%20Patient_20x20_dark.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.saQFZ5v69BQPBnvU9bYA {
    background: url("/images/Cases_Attach%20Patient_16x16.svg") no-repeat center;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.m0f1qteFa8UlsZUZeKR3 {
    background: url("/images/Cases_Attach%20Patient_16x16_dark.svg") no-repeat center;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.lkHAd6iYhJIdCWEgIUOP {
    background: url("/images/Cases_Detach%20Patient_16x16.svg") no-repeat center;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.E1aSoHgaUYPYSm8JpkvI {
    background: url("/images/Cases_Detach%20Patient_16x16_dark.svg") no-repeat center;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.vU2Ld66pxoNJx1MnPo0L {
    background: url(/images/Cases_pdf_16x16.svg) no-repeat center;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.qagfYsq6QrfuUhafr_25 {
    background: url(/images/Cases_pdf_16x16_dark.svg) no-repeat center;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.LNEOHCzIZPxj50YzQjkJ {
    background: url(/images/Cases_pdf_48x48.svg) no-repeat center;
    display: inline-block;
    width: 48px;
    height: 48px;
}

.YrwtboalhsKGzynbOG_b {
    background: url(/images/Cases_pdf_48x48_dark.svg) no-repeat center;
    display: inline-block;
    width: 48px;
    height: 48px;
}

/* Сетка окон просмотра препаратов случая: кнопка, варианты по числу окон и связь окон */

.ebMHeGpgGuCrhVbQ_fmX {
    background: url(/images/Cases_Split_view_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.EV1MXj0Z8WlP9PgbFbNd {
    background: url(/images/Cases_Split_view_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.FPJ254jyvd8hF2ih20bG {
    background: url(/images/Cases_Split_1_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.EzZwZAKaH6nWCOXBjHP6 {
    background: url(/images/Cases_Split_1_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.BtkP6ydyFKxcSjWXs1SJ {
    background: url(/images/Cases_Split_2_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.kdvDowWNmKpZduvMAfQJ {
    background: url(/images/Cases_Split_2_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.WMmrL4EzBT0nbZEBzk9X {
    background: url(/images/Cases_Split_3_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.Hpp9Byv452kswHkSRTET {
    background: url(/images/Cases_Split_3_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.wAmH6E5bd3L0YdFHuCN5 {
    background: url(/images/Cases_Split_4_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.z6UQGMaFBHmUm2csEeGX {
    background: url(/images/Cases_Split_4_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.HTByaSLAJmyInKhpLARr {
    background: url(/images/Cases_Split_6_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.wjZ14B2TZBuUtXtc8KaK {
    background: url(/images/Cases_Split_6_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.mMIrfH0cgq3913VYRIDs {
    background: url(/images/Cases_Split_9_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.k01auIkiCoAWIFb_zv9u {
    background: url(/images/Cases_Split_9_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.TWbpdQR0TQrBs6TeYecg {
    background: url(/images/Cases_Link_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.qrafLR2sAvQmzU9Y8bvg {
    background: url(/images/Cases_Link_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.m1NSCAIBnCYpLCR2EqHf {
    background: url(/images/Cases_Demo_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.JQScvHPxORFOzfsJ4a95 {
    background: url(/images/Cases_Demo_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.XMYWMKNJJZo3TjmNsWGW {
    background: url(/images/Cases_Chat_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.t0vMaB6kHlvo0J2RAfIw {
    background: url(/images/Cases_Chat_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.oW9NNd3jemMWbdrTIyzQ {
    background: url(/images/Cases_Follow_16x16.svg) no-repeat center;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.TGHX9p4AItaeHTGBj13h {
    background: url(/images/Cases_Follow_16x16_dark.svg) no-repeat center;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.qwfN_e15dGzm57pkx2gM {
    background: url(/images/Cases_Actions_16x16.svg) no-repeat center;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.XUFZ0RK5gPZPFIrVqu0u {
    background: url(/images/Cases_Actions_16x16_dark.svg) no-repeat center;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.eqkApQlz5rMYX49odlOK {
    background: url(/images/Global_Eye_16x16.svg) no-repeat center;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.J3u_91Y8Bt41zrlFeM1U {
    background: url(/images/Global_Eye_16x16_dark.svg) no-repeat center;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.ZErY1zJHVFbsAJpfYF8d {
    background: url(/images/App-Pathoview_16x16.svg) no-repeat !important;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.j_52JAdkWUCnSuhiaRZw {
    background: url(/images/App-Pathoview_16x16_dark.svg) no-repeat !important;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.u3ZsniWofbwQ7dxaIfjk {
    background: url(/images/Remove_16x16.svg) no-repeat !important;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.qksSsBvTcEztWB4raGvj {
    background: url(/images/Remove_16x16_dark.svg) no-repeat !important;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.a3LYHUCWuQT0W5bzX2zg {
    background: url(/images/Add_16x16.svg) no-repeat !important;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.QB3NFMi6oGTrrxaH_0z6 {
    background: url(/images/Add_16x16_dark.svg) no-repeat !important;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.pc70GsZUQ_bKYIPsyuwQ {
    background: url(/images/More_12x12.svg) no-repeat center;
    display: inline-block;
    width: 12px;
    height: 12px;
}

.frYmo9y6USecOAUYX5n_ {
    background: url(/images/More_12x12_dark.svg) no-repeat center;
    display: inline-block;
    width: 12px;
    height: 12px;
}

.FlTsuYyc0z8mwrvKb4Z7 {
    background: url(/images/logo_large.svg) no-repeat center;
    display: inline-block;
    width: 157px;
    height: 50px;
    background-size: contain;
}

.ElBcpMWOhlWKUFiK3Vcz {
    background: url(/images/logo_large_dark.svg) no-repeat center;
    display: inline-block;
    width: 157px;
    height: 50px;
    background-size: contain;
}

span.PcImEHZUzasjfgb_2Pno {
    background: url(/images/logo_small.svg) no-repeat;
    display: inline-block;
    width: 90px;
    height: 25px;
}

.lOfljxU2A9Mi2Cl5fn3c {
    background: url(/images/logo_small_dark.svg) no-repeat;
    display: inline-block;
}

.gTQfTxvZsQ_uETMhUMpF {
    background: url(/images/Mode_Patients_96x96.svg) no-repeat center;
    display: inline-block;
    width: 96px;
    height: 96px;
}

.jFybMs_DQxwf6tge2pEp {
    background: url(/images/Mode_Samples_96x96.svg) no-repeat center;
    display: inline-block;
    width: 96px;
    height: 96px;
}

.Aeq3OjNZYUxsH7SnmiVg {
    background: url(/images/Mode_Cases_96x96.svg) no-repeat center;
    display: inline-block;
    width: 96px;
    height: 96px;
}

.KMaHY9z8h5ZFcVQfMvWM {
    background: url(/images/Mode_Archive_96x96.svg) no-repeat center;
    display: inline-block;
    width: 96px;
    height: 96px;
}

.sAnGto9_81ltnW7pBDIr {
    background: url(/images/Mode_QC_96x96.svg) no-repeat center;
    display: inline-block;
    width: 96px;
    height: 96px;
}

.If5N_78686Xwxdjy74On {
    background: url(/images/Mode_Genome_96x96.svg) no-repeat center;
    display: inline-block;
    width: 96px;
    height: 96px;
}

.x49G2POqV0aqDM3wjhgK {
    background: url(/images/Mode_Event-log_96x96.svg) no-repeat center;
    display: inline-block;
    width: 96px;
    height: 96px;
}

.tBmnpyo2Sz5XTyMNNFYT {
    background: url(/images/Mode_Settings_96x96.svg) no-repeat center;
    display: inline-block;
    width: 96px;
    height: 97px;
}

.VyPms0GuCP94XlT8BnoM {
    background: url(/images/Sample_Cursor_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.oiSmNSo2TMCUuXrmZkBQ {
    background: url(/images/Sample_Cursor_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.v1I7NBLOoLJpLdKz_O9g {
    background: url(/images/Sample_Edit_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.OhJPHiJx34AMO0UbV2FA {
    background: url(/images/Sample_Image-Upload_16x16.svg) no-repeat center;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.aIuWXs_6MKriBHmlvGxr {
    background: url(/images/Sample_Image-Upload_16x16_dark.svg) no-repeat center;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.hFzBuFCIq53Gd6IEVSYo {
    background: url(/images/Sample_Image-Download_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.rP2b3O1cui9iXTdEtR2Q {
    background: url(/images/Sample_Image-Download_20x20_disable.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.o67jtwd4S9JFcE43QTQY {
    background: url(/images/Sample_Image-Download_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.DDSwyVVO9EMkytxE_1bF {
    background: url(/images/Sample_Image-Download_20x20_dark_disable.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.zv4Moj270Qft5rfVr8hB {
    background: url(/images/Samples_Sent-Pathoview_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.nuoUCkA3soGJIFWyb4eQ {
    background: url(/images/Samples_Sent-Pathoview_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.C0qCwjWiUYAik8vbsWKx {
    background: url(/images/Sample_Image-Download_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.DoD5_32TnRBSh7pZ6bKK {
    background: url(/images/Sample_Image-Download_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.lsDobXr2yDfTC_CZlXfh {
    background: url(/images/Measure_16x16.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.JqaCsqlzl3ct1pNBe3hi {
    background: url(/images/Measure_16x16_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.VhPDvnYKVCtoJ27imoN2 {
    background: url(/images/Sample-View_WBC-mode_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.iB_HgLpOAwN1AAUZhDMi {
    background: url(/images/Sample-View_WBC-mode_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.PN6V_afkidqtTQTpIn_g {
    background: url(/images/Sample-View_G_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.YN50pfJfZmaT6UuWuk5o {
    background: url(/images/Sample-View_G_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.AQmOJhom2RVOyXqjxvNG {
    background: url(/images/Sample-View_S_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.yaMbBcExiAFobKqSny9X {
    background: url(/images/Sample-View_S_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.kVvNrqvaJJx4fWuJecgW {
    background: url(/images/Sample-View_C_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.kufXfRVYn9WChsQRf7HB {
    background: url(/images/Sample-View_C_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.RA57LPqPhmtfxDr9WTCL {
    background: url(/images/Sample-View_U_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.c9ozD_c335u6ZwgisEup {
    background: url(/images/Sample-View_U_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.DcawwZ2Q2e70p3zNJ9m2 {
    background: url(/images/Sample-View_V_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.XPVRYgP8nPARb11Y8jjb {
    background: url(/images/Sample-View_V_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.xd1VqTv3TVmVyxbTM6aA {
    background: url(/images/Sample-View_Images-mode_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.P9QEFR7P4M3C19Ezf3Lq {
    background: url(/images/Sample-View_Images-mode_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.UsKbaIyv4jWquqwKkIFw {
    background: url(/images/Sample-View_Slide_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.McUD0lAOxd5klbXA8puA {
    background: url(/images/Sample-View_Slide_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.ImQt_PaimjtMLeYmRXp3 {
    background: url(/images/Sample-View_100x_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.BBBcC6gxaIAgDWlYlZHT {
    background: url(/images/Sample-View_100x_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.FzK0FazAd9GymZ4x5ZQA {
    background: url(/images/Sample-View_Gallery-mode_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.bjmpjbRa2nElYeoG4WqF {
    background: url(/images/Sample-View_Gallery-mode_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.TH5IZ2eBa4r0k71xwiX4 {
    background: url(/images/Sample-View_MultiView-mode_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.hzq_FS5MDQaIzYktNIak {
    background: url(/images/Sample-View_MultiView-mode_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.CBsKIv1x4Qms5wptXqVj {
    background: url(/images/Sample-View_RBC-mode_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.Vy0d87oV9aBnmIs7DBIN {
    background: url(/images/Sample-View_RBC-mode_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.eBq2RKxyB56iTMcd5eM7 {
    background: url(/images/Sample-View_PLT-mode_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.ZarSu76mE_I1GQUfPMhB {
    background: url(/images/Sample-View_PLT-mode_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.ui2OgkUlfNPTvj8MTIpf {
    background: url(/images/Sample-View_Gallery-mode_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.mf6lZlqhaJWJqdcRVPy4 {
    background: url(/images/Sample-View_Gallery-mode_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.OwCWHnPTLozEXoKB2MqO {
    background: url(/images/Sample-View_Images-mode_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.LPB87nAruUrCqV3YM31l {
    background: url(/images/Sample-View_Images-mode_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

/* Режимы работы с данными пробы Карио: "Объекты" и "Кариограмма"
   (режим "Изображение" использует sampleModeFrames) */

.LqplDnWN6vU5YVXq_fNd {
    background: url(/images/Sample-View_Objects-mode_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.R7x05pdtsbB7wPaGFMan {
    background: url(/images/Sample-View_Objects-mode_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.lxsZpyLUindqpB7oXfKu {
    background: url(/images/Sample-View_Karyogram-mode_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.HebUwhXwDAd1mrj9TMCE {
    background: url(/images/Sample-View_Karyogram-mode_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.h55Eg3GII70OHoZ6VFB0 {
    background: url(/images/Sample-View_Slide_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.n7rSeX1rEqdRfjZRCa87 {
    background: url(/images/Sample-View_Slide_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.hJQSqC7W0s2mrz3__p3A {
    background: url(/images/Samples-ViewMode_DS_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-top: 3px;
}

.IM2eeq8EIgTaR7KnEjJm {
    background: url(/images/Samples-ViewMode_DS_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-top: 3px;
}

.lm21zIlrn4S8PwRpttuw {
    background: url(/images/Sample-View_Navigator_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.EIsx1qnZjCuNXp3QIWqr {
    background: url(/images/Sample-View_Navigator_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.tjW45U4LYm29BfDSxOtv {
    background: url(/images/Locate.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.TNI6wH0gmR_RPBkJ2R2z {
    background: url(/images/Sample_View-Label_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

._p0tQdPBX0dGSan5yPvi {
    background: url(/images/Sample_View-Label_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.J2DmNF9pQquxjncnLIJS {
    background: url(/images/Sample_Annotations_Text_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.jHBkVJGe1MEUMJvmLFk_ {
    background: url(/images/Sample_Annotations_Text_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.CfetayBvrTay82RYuQNX {
    background: url(/images/Sample-View_Gallery-mode_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.E9fOdUfYHfj3jMKCP5cJ {
    background: url(/images/Sample-View_Gallery-mode_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.B0hFzhfuQCcPeU5lu6_l {
    background: url(/images/Sample-View_Mask-OnOff_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.DexclbDAx_UGyAnSLwg1 {
    background: url(/images/Sample-View_Mask-OnOff_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.iDj390AgZZP9ispgKwGo {
    background: url(/images/Sample_Attention_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.OzeptOg1yLu1acJYlOcQ {
    background: url(/images/Sample_Attention_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.cyk7hxlPsF645XBcZoGw {
    background: url(/images/Sample_Attention-White_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.BGyuZMOPlEQLDvbJ6LXK {
    background: url(/images/Sample_Attention-White_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.wrlGRJanHJo08bh_CBUU {
    background: url(/images/Sample-View_Fit_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.lhvjdn6r4SqiqPPjRVSm {
    background: url(/images/Sample-View_Fit_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.vBcLZGeYQYAif6wqssP_ {
    background: url(/images/Sample-View_Flag-Filter_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.A9zJrbquurQOAVQjXvcC {
    background: url(/images/Sample-View_Flag-Filter_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.fmcFVf6CFCkr3LxkY8MV {
    background: url(/images/Sample-View_Images-mode_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.LSiLedRu3xaFrrZndVQO {
    background: url(/images/Sample-View_Images-mode_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.e2CSHImlAdk7SLE4shiZ {
    background: url(/images/Sample-View_Gallery-mode_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.LPBhvPE1MGKLITOXtgAI {
    background: url(/images/Sample-View_Gallery-mode_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.WZaYdHM1XweNwrLQ84IQ {
    background: url(/images/Sample-View_MultiView-mode_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.BJg4sHr7tycFiAYNCbuH {
    background: url(/images/Sample-View_MultiView-mode_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.M0lIRwlhUGK4QAUHozef {
    background: url(/images/Rotate-with-white-border_18x18.svg) no-repeat center;
    display: inline-block;
    width: 18px;
    height: 18px;
}

.KIpZq9sJFDSoeoOncbQI {
    background: url(/images/Rotate-with-white-border_18x18_dark.svg) no-repeat center;
    display: inline-block;
    width: 18px;
    height: 18px;
}

._oJn7o5Vi8rAOV352Qi5 {
    background: url(/images/Sample_Annotations_Rectangle_20x20.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.h92y6eFwOV6mCBha5CcK {
    background: url(/images/Sample_Annotations_Rectangle_20x20_dark.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.H9v3ZOpVtaZDt2gws2mZ {
    background: url(/images/Sample_Annotations_Ellipse_20x20.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.DA_1GM2TC2ObFDFG2SyX {
    background: url(/images/Sample_Annotations_Ellipse_20x20_dark.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.lcwi4SwIuPpEqSmREaqg {
    background: url(/images/Sample_Annotations_Polyline_20x20.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.CnyKKKYDhEdUiqS3eTbk {
    background: url(/images/Sample_Annotations_Polyline_20x20_dark.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.wsecIW08PesBAJL6_IBy {
    background: url(/images/Sample_Annotations_Polygon_20x20.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.DDES7v0rKXUMUy1Xy8qW {
    background: url(/images/Sample_Annotations_Polygon_20x20_dark.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.mjHFcYnFJ_WHguy2cyto {
    background: url(/images/Sample_Annotations_Line_20x20.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.zbXhJkhks5ZhDYFSf6IE {
    background: url(/images/Sample_Annotations_Line_20x20_dark.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.nFJ7LzT3vDFMuTXBPl5S {
    background: url(/images/Sample_Annotations_Text_20x20.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.XhmBPDSOpKKW5f5ay67Y {
    background: url(/images/Sample_Annotations_Text_20x20_dark.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.hWL6D7qmWN8IIyzsoxDe {
    background: url(/images/Folder_48x48.svg) no-repeat !important;
    display: inline-block;
    width: 50px;
    height: 50px;
}

.tRhVhFmCw4qfDEeUJqtB {
    background: url(/images/Folder_Zip_48x48.svg) no-repeat !important;
    display: inline-block;
    width: 50px;
    height: 50px;
}

.PtFyRgspyKTj0XhsDRLR {
    background: url(/images/File_Icon_DCM_48x48.svg) no-repeat !important;
    display: inline-block;
    width: 50px;
    height: 50px;
}

.xdGVFItHZgYjfjSbZUEw {
    background: url(/images/File_Icon_i2SYN_48x48.svg) no-repeat !important;
    display: inline-block;
    width: 50px;
    height: 50px;
}

.aMjmYjaj1gMU87kONCVu {
    background: url(/images/File_Icon_iSYN_48x48.svg) no-repeat !important;
    display: inline-block;
    width: 50px;
    height: 50px;
}

.SD4rEqxgxDSLS8_4KmJu {
    background: url(/images/File_Icon_MRXS_48x48.svg) no-repeat !important;
    display: inline-block;
    width: 50px;
    height: 50px;
}

.L0cUr2H5ce5rTEREV0Ml {
    background: url(/images/File_Icon_NDPI_48x48.svg) no-repeat !important;
    display: inline-block;
    width: 50px;
    height: 50px;
}

.QyUzqajXmkpAunMQ7g6A {
    background: url(/images/File_Icon_SVS_48x48.svg) no-repeat !important;
    display: inline-block;
    width: 50px;
    height: 50px;
}

.EX11ZVyevh7JGiOlnI4B {
    background: url(/images/File_Icon_TIFF_48x48.svg) no-repeat !important;
    display: inline-block;
    width: 50px;
    height: 50px;
}

.wUnbU8k2WNJn9h0z12qD {
    background: url(/images/File_Icon_BIF_48x48.svg) no-repeat !important;
    display: inline-block;
    width: 50px;
    height: 50px;
}

.Gk0_SSAedLw6IlYxDCdG {
    background: url(/images/Sample_Sent_16x16.svg) no-repeat !important;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.EheqRMHz4DSPD_qnFsQV {
    background: url(/images/Sample_Sent_16x16_dark.svg) no-repeat !important;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.p8iV8zzdXbYoeA2MF3Mg {
    background: url(/images/Sample_Error_16x16_1.svg) no-repeat !important;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.isqrvamNHdViIoTs3NS6 {
    background: url(/images/Sample_Error_16x16_dark.svg) no-repeat !important;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.BkIm7eYeO4S2ScDTyaDV {
    background: url(/images/Sample_Send-Pathoview_16x16.svg) no-repeat !important;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.j_yYlWgnp4k34t2etqd2 {
    background: url(/images/Sample_Send-Pathoview_16x16_dark.svg) no-repeat !important;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.x7CmP4p3Wi6RKsRe_eA_ {
    background: url(/images/VS_Color-distribution_20x20.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.UV3XOlMhIJgchOIXC6ks {
    background: url(/images/VS_Color-distribution_20x20_dark.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.HFos6sobTYiPTEraQG1Q {
    background: url(/images/Sample_Grid_20x20.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.FuDdWrgoPt2opxe1Srul {
    background: url(/images/Sample_Grid_20x20_dark.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.hH8KYRYGAVWAuXjeG7Gu {
    background: url(/images/Sample-View_ROI_20x20.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.or8hGv5UEUFW8bBeu71D {
    background: url(/images/Sample-View_ROI_20x20_dark.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.g9yT1euNwfKWXmGxX6vK {
    background: url(/images/Sample_QC_Export-CSV_20x20.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.DNbOiCBM2FAhFuKEL6wj {
    background: url(/images/Sample_QC_Export-CSV_20x20_dark.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.BHtnlf76paOX6na5Vlvw {
    background: url(/images/Sample_Extended-IPU_20x20.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-top: 3px;
}

.ZKpzvq4S48ioFESJXkr2 {
    background: url(/images/Sample_Extended-IPU_20x20_dark.svg) no-repeat !important;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-top: 4px;
}

.n1xMdTbwsvB4OtcdkLZt {
    background: url(/images/Sample-View_Macropicture_20x20.svg) no-repeat !important;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain !important;
}

.kyhRZ0QAvASc3NBNuBfj {
    background: url("/images/Dark%20mode_Sample-View_Macropicture_20x20.svg") no-repeat !important;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain !important;
}

.Ul3tK9l2QLhwWhKAsOD2 {
    background: url("/images/Sample-View_Shared%20frame_20x20.svg") no-repeat !important;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain !important;
}

.XzdHj8YJDggbvcnhxGEw {
    background: url("/images/Dark%20mode_Sample-View_Shared%20frame_20x20.svg") no-repeat !important;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-size: contain !important;
}

.kIRdrHy8vESqxaAtD2_w {
    background: url(/images/Image-Atlas_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

.zXthcRj38B496a70qsf3 {
    background: url(/images/Image-Atlas_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
}

/* Инструменты режима "Изображение" пробы Карио (иконки 32x32 масштабируются до размера иконки кнопки) */

.uqSHP9PTwxQbXYvL1NyO {
    background: url("/images/Sample-View_Image_Color%20settings_32x32.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.sbZaYihrj_3LDPv8K9uC {
    background: url("/images/Sample-View_Image_Color%20settings_32x32_dark.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.EX_1w3seRTJsYdvwr6ey {
    background: url(/images/Sample-View_Image_Sharpness_32x32.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.JfukRNSk0zdYv51fRwqf {
    background: url(/images/Sample-View_Image_Sharpness_32x32_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

._JSm6J5mjnD7I684ahB_ {
    background: url(/images/Sample-View_Image_Crop_32x32.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.K98xYvtV0HyhxTkzkDYq {
    background: url(/images/Sample-View_Image_Crop_32x32_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.hWoZwQzeXcCKrHWTymSw {
    background: url("/images/Sample-View_Image_Delete%20area_32x32.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.PV7VrAubVFmhkmOXgAiz {
    background: url("/images/Sample-View_Image_Delete%20area_32x32_dark.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.S4HBKBwtlHCwU_4QG2RA {
    background: url(/images/Sample-View_Image_Reset_32x32.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.zNCpxvCy8IJxctGRhdxm {
    background: url(/images/Sample-View_Image_Reset_32x32_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.XALVIn8IouyviflOIPka {
    background: url("/images/Sample-View_Image_Edit%20objects_32x32.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.oI5HCWHPkyZNwBIIyrMJ {
    background: url("/images/Sample-View_Image_Edit%20objects_32x32_dark.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.MXYCSiiubsWDUKJoQWHx {
    background: url("/images/Sample-View_Image_Filter%20settings_32x32.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.wbAgHiIxdlbndOdAYmSV {
    background: url("/images/Sample-View_Image_Filter%20settings_32x32_dark.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.W1AE__wwUXJKc3MCkXf7 {
    background: url(/images/Genome_Idiogram_Edit_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.t2ceqh6W2oPjuSBahPHw {
    background: url(/images/Genome_Idiogram_Edit_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.ZjhaCvmW0yql6t9kCJ8g {
    background: url("/images/Genome_Idiogram_Set%20borders_20x20.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.uVjpexa1m49F4rnnt6hj {
    background: url("/images/Genome_Idiogram_Set%20borders_20x20_dark.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.PvvSnp8aSxQaZIV8HRjg {
    background: url(/images/Genome_Idiogram_Merge_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.giFmDjbDc5UyeJtmD1Ui {
    background: url(/images/Genome_Idiogram_Merge_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.WV7sdXniPr5o99DLh1iY {
    background: url(/images/Genome_Idiogram_Delete_20x20.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.ForopVovC3XlQDxzcE3_ {
    background: url(/images/Genome_Idiogram_Delete_20x20_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.wWBc1HfJ9PlQenb2BAru {
    background: url(/images/Sample-View_Karyotype_Idiogram_32x32.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

._Q0Ir43O5b1465Qiguv5 {
    background: url(/images/Sample-View_Karyotype_Idiogram_32x32_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.xs54WiQQS5WdcjiQeMMD {
    background: url(/images/Sample-View_Karyotype_Idiograms_32x32.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.AcDDk0qvh64AahNZAfx4 {
    background: url(/images/Sample-View_Karyotype_Idiograms_32x32_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.v3qDhfJhLdPvxVvTUG7C {
    background: url(/images/Sample-View_Karyotype_Straighten_32x32.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.EgrDG3YJ50Ff5b8FWv1w {
    background: url(/images/Sample-View_Karyotype_Straighten_32x32_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.jDWiYyb2pvL0RKPgCP5b {
    background: url("/images/Sample-View_Karyotype_All%20straighten_32x32.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.Em_BHgTU81dqRgqpeYFQ {
    background: url("/images/Sample-View_Karyotype_All%20straighten_32x32_dark.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.VXPrhlsOd_GEyCsE_D2J {
    background: url(/images/Sample-View_Karyotype_Specularly_32x32.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.PUEfNZv_RNacHa0boJu3 {
    background: url(/images/Sample-View_Karyotype_Specularly_32x32_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.dM_nrwH79jBIY4kgm7xr {
    background: url("/images/Sample-View_Objects_Change%20centromere_32x32.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.YHsoJn4vSJrEvUR4wGs0 {
    background: url("/images/Sample-View_Objects_Change%20centromere_32x32_dark.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.tmF3fEMOlZD_sGsXSyxY {
    background: url(/images/Sample-View_Karyotype_Rotate_32x32.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.xWZLrBOrnKCScSDxKY1T {
    background: url(/images/Sample-View_Karyotype_Rotate_32x32_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.dd026BXAZ8JIXuUbBVNo {
    background: url("/images/Sample-View_Karyotype_Rotate%20180_32x32.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.rplrJeFJfVDv1vhU5bjb {
    background: url("/images/Sample-View_Karyotype_Rotate%20180_32x32_dark.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.hafP11GHssqlyFD_H9Wn {
    background: url(/images/Sample-View_Karyotype_Delete_32x32.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.PBZwvhbjTCvou90JNMa4 {
    background: url(/images/Sample-View_Karyotype_Delete_32x32_dark.svg) no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.Lo4LKQF1O4q0l6qtVoXU {
    background: url("/images/Sample-View_Karyotype_Add%20results_20x20.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}

.HGnPhGI6ZwEj2dbFcj6B {
    background: url("/images/Sample-View_Karyotype_Added%20results_20x20.svg") no-repeat center;
    display: inline-block;
    width: 20px;
    height: 20px;
    background-size: contain;
}
.visionDataTable.no-pointer-cursor {
    cursor: default !important;
}

.visionDataTable .sort-asc .bp6-table-column-name-text, .sort-dsc .bp6-table-column-name-text {
    color: #137cbd;
}

.visionDataTable .bp6-table-quadrant-scroll-container .hoveredRow {
    border: 0;
    background-color: rgba(0, 0, 0, 0.05);
}

.bp6-dark .visionDataTable .bp6-table-quadrant-scroll-container .hoveredRow {
    background-color: rgba(246, 247, 249, 0.05);
}
.vision-samplesList-div {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.bp6-dark .vision-samplesList-div {
    background-color: var(--bp-dark-gray1);
}

.vision-sampleList-ribbonDiv {
    height: 70px;
    width: 100%;
    padding-left: 20px;
    padding-top: 20px;
    padding-right: 20px;
    flex: none;
}

.vision-sampleList-ribbonDiv>div {
    display: table-cell;
    white-space: nowrap;
    overflow: hidden;
}

.vision-sampleList-ribbon-leftBar {
    vertical-align: top;
    display: inline-block;
    height: 100%;
    width: 100%;
}

.vision-sampleList-ribbon-rightBar-menu {
    padding: 0 7px 0 0;
}

.vision-sampleList-ribbon-rightBar {
    text-align: right;
    vertical-align: top;
    display: inline-block;
    height: 100%;
}

.vision-sampleList-ribbon-rightBar .vision-tooltip-popover {
    width: 40px;
    height: 40px;
}

.vision-samplesList-div .filter {
    margin: 10px 20px;
}

.vision-sampleList-tableFlexDiv {
    overflow: auto;
    flex: 1 1 100%;
    margin-left: 20px;
    margin-right: 20px;
}

.vision-sampleList-completeButton {
    vertical-align: top;
}

.vision-sample-list-marginLeft {
    margin-left: 20px;
}

.vision-sample-list-addFilterBlankDiv {
    height: 30px;
}

.vision-sample-list-addFilterButton button {
    text-align: left;
}

.vision-samplesList-noSampleState {
    position: absolute;
    left: 0;
    z-index: 10;
    max-width: 100%;
    height: 200px;
    margin-top: 66px;
}

.vision-sampleList-table .bp6-table-cell {
    font-size: 15px;
}

.vision-samplesList-div .bp6-icon {
    pointer-events: none;
}

.vision-sampleList-table .bp6-table-column-name {
    font-size: 15px;
}

.vision-sampleList-table .bp6-table-column-headers {
    color: #5d707f;
    background: #eaeff3;
    box-shadow: inset 0 0 0 rgba(16, 22, 26, 0.15), inset 0 -1px 0 rgba(16, 22, 26, 0.15);
}

.bp6-dark .vision-sampleList-table .bp6-table-column-headers {
    color: var(--bp-light-gray3);
    background: var(--bp-dark-gray1);
}

.vision-sampleList-table .bp6-table-column-headers .bp6-table-header {
    box-shadow: 0 0 0;
    line-height: 38px;
    height: 40px;
}

.vision-sampleList-table .bp6-table-column-headers .bp6-table-header img.vector {
    margin-top: 14px;
}

.vision-sampleList-table .bp6-table-quadrant-top {
    background: #eaeff3;
    padding-top: 1px;
    box-shadow: inset 0 0 0 rgba(16, 22, 26, 0.15), inset 0 -1px 0 rgba(16, 22, 26, 0.15);
}

.bp6-dark .vision-sampleList-table .bp6-table-quadrant-top {
    background: var(--bp-dark-gray1);
}

.vision-sampleList-table .bp6-table-body-cells .bp6-table-cell {
    box-shadow: inset 0 0 0 rgba(16, 22, 26, 0.15), inset 0 -1px 0 rgba(16, 22, 26, 0.15);
    line-height: 38px;
    cursor: pointer;
    align-items: center;
    display: flex;
}

.vision-sampleList-table.no-pointer-cursor .bp6-table-body-cells .bp6-table-cell {
    cursor: default !important;
}

.vision-sampleList-table .bp6-loading {
    justify-content: center !important;
    align-items: flex-start !important;
}

.vision-sampleList-table .bp6-table-cell .bp6-table-truncated-cell {
    justify-content: center;
}

.vision-sampleList-table .bp6-table-body-cells .bp6-table-last-in-column {
    box-shadow: inset 0 0 0 rgba(16, 22, 26, 0.15), 0 1px 0 rgba(16, 22, 26, 0.15);
}

.vision-sampleList-table:focus {
    outline: 0;
}

.vision-sampleList-table .bp6-table-quadrant-main {
    background: #ffffff;
}

.bp6-dark .vision-sampleList-table .bp6-table-quadrant-main {
    background: var(--bp-black);
}

.bp6-dark .vision-sampleList-table .bp6-table-cell-client {
    background: var(--bp-black);
}

.vision-sampleList-table .bp6-table-body-cells .bp6-table-cell.vision-sampleList-checkBoxCell {
    text-align: center;
    line-height: 40px !important;
    align-items: center;
}

.vision-sampleList-table .bp6-table-column-headers .bp6-table-header.vision-sampleList-checkBoxCell {
    text-align: center;
    line-height: 40px !important;
}

.vision-sampleList-table .bp6-table-column-headers div.iconic {
    line-height: 40px;
}

.vision-sampleList-table .bp6-table-column-headers div.iconic img.vector {
    margin-top: 13px !important;
}

.vision-sampleList-patientLink {
    color: inherit;
}

.bp6-table-th-menu-container-background {
    height: 40px;
}

.vision-sampleList-sortIcon {
    position: absolute;
    right: 10px;
    top: 25%;
    z-index: -1;
}

.vision-sampleList-sortColumn {
    overflow: hidden;
    text-overflow: ellipsis;
    margin-right: 15px;
}

.vision-sampleList-sortableColumnBlue {
    color: #137cbd;
}

.vision-sampleList-grayIcon {
    color: var(--bp-gray1);
}

.vision-sampleList-light .vision-sampleList-grayIcon {
    color: var(--bp-gray4);
}

.vision-sampleList-preclass {
    color: var(--bp-gray1);
    margin-left: 8px;
    vertical-align: sub;
}

.vision-sampleList-light .vision-sampleList-preclass {
    color: var(--bp-gray4);
}

.vision-sampleList-light a {
    color: var(--bp-gray4) !important;
}

.vision-sampleList-preclassHead {
    margin-left: 8px;
}

.vision-sampleList-menuWidth {
    width: 100%;
}

.vision-sampleList-cell-with-tooltip {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.vision-sampleList-yesNoButton {
    width: 100px;
}

.vision-samplesList-div .bp6-table-overlay-layer .region-hover {
    border: 0;
    background-color: rgba(0, 0, 0, 0.05);
    overflow: auto;
}

.bp6-dark .vision-samplesList-div .bp6-table-overlay-layer .region-hover {
    background-color: rgba(246, 247, 249, 0.05);
}

.vision-sample-addFilter-popover .bp6-popover-content {
    max-height: 250px;
    overflow-y: auto;
}

.bp6-icon-document::before {
    margin-right: 7px;
}

.bp6-icon-folder-open::before {
    margin-right: 7px;
}

.vision-sampleList-admin-container {
    border: 2px solid red;
}

.vision-sampleList-tableFlexDiv>.bp6-context-menu {
    height: 100%;
}

.vision-sampleList-tableFlexDiv .bp6-non-ideal-state .bp6-non-ideal-state-text {
    width: 430px;
    max-width: 430px;
}

.bp6-table-cell-col-0.vision-sampleList-checkBoxCell>.bp6-table-resize-handle-target {
    pointer-events: none;
}

.vision-sampleList-sendIcon {
    margin-top: 11px;
}
div.filtersBar {
    max-height: 171px;
    padding-top: 4px;
    padding-bottom: 4px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: none;
    margin-bottom: 10px;
    position: relative;
}

div.filtersBar div.buttonsBar button {
    margin-right: 10px;
}

label.vision-filtersBox-labelDiv {
    display: flex !important;
}

label.vision-filter-label {
    display: flex;
}

label.vision-filter-labelDivMultiselect.vision-filter-labelDiv {
    line-height: 10px;
}

.vision-filter-labelSpan {
    display: inline-block;
    font-weight: 600;
    width: 200px;
}

.vision-filter-numberRangeFilter {
    display: inline-block;
}

label.bp6-label.bp6-inline .vision-filter-selectDiv {
    min-width: 150px;
    margin-left: 0;
    margin-right: 20px;
}

label.bp6-label.bp6-inline .vision-filter-selectDiv-size {
    min-width: 80px;
    margin-left: 10px;
}

label.bp6-label.bp6-inline .vision-filter-selectInput {
    min-width: 150px;
    margin-left: 0;
}

label.bp6-label.bp6-inline .vision-filter-selectDivMulti {
    margin-left: 0;
}

.vision-filter-deleteButton {
    margin: 0 0 0 5px !important;
    max-height: 30px;
}

.vision-filter-deleteButton button {
    vertical-align: top;
}

.vision-filter-ageInput {
    width: 40px;
}

.vision-filter-sizeInput {
    width: 50px;
}

.vision-filter-sizeInput.errorValue {
    background: #ffd2d2;
}

.vision-filter-timePicker {
    margin-left: 16px;
    line-height: initial;
}

.vision-filter-timePicker.errorValue .bp6-timepicker-input-row, .vision-filter-dateInput.errorValue .bp6-input {
    background: #ffd2d2;
}

.vision-filter-labelDiv div.vision-filter-selectDivMulti select {
    width: 250px;
}

.vision-filter-multiselectDiv {
    display: inline-block;
    border-radius: 2px;
    width: 250px;
    max-height: 100px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.2), 0 -1px 0 rgba(16, 22, 26, 0.1);
    margin-top: 1px;
}

.bp6-dark .vision-filter-multiselectDiv {
    box-shadow: 0 0 0 1px rgba(246, 247, 249, 0.2), 0 -1px 0 rgba(246, 247, 249, 0.1);
}

.vision-filter-labelDivMultiselect .vision-filter-labelSpan {
    vertical-align: top;
    line-height: 30px;
}

.vision-filter-multiSelectButton {
    margin: 0 0 0 10px !important;
    display: inline-block !important;
    vertical-align: top;
}

.vision-filter-multiSelectButton button {
    width: 30px;
    height: 30px;
    vertical-align: top;
    padding: 7px;
    line-height: 16px;
}

.vision-filter-multiselectItem {
    display: block;
    line-height: 25px;
    padding-left: 10px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.vision-filter-multiselectSpan {
    margin: 0 5px;
}

.vision-filter-multiselectChecked {
    background: #ced9e0;
}

.bp6-dark .vision-filter-multiselectChecked {
    background: var(--bp-dark-gray5);
}

.vision-filter-multiselectItem input[type="checkbox"] {
    position: relative;
    top: 1px;
}

.vision-filter-toggleMultiSelect {
    margin-left: 5px;
    vertical-align: top;
}

.DayPicker-Day--selected {
    background-color: #137cbd !important;
}

svg.bp6-datepicker-caption-caret {
    left: calc(100% - 16px) !important;
}

.scrollview {
    overflow-y: auto;
    max-height: min(600px, 50vh);
}
.vision-date-input {
    line-height: 30px;
    display: flex;
}

.vision-date-input-focus {
    display: contents;
}

/* Значок календаря не перехватывает щелчок: он доходит до поля, и календарь открывается так же, как по щелчку в поле */

.vision-date-input-group .bp6-input-action {
    pointer-events: none;
}

.bp6-input-group:not(.vision-filter-dateInput) .vision-date-input-icon::before {
    vertical-align: -webkit-baseline-middle;
}

.red:focus {
    box-shadow: inset 0 0 0 1px #d22d2d, 0 0 0 2px rgba(210, 45, 45, 0.3), inset 0 1px 1px rgba(24, 17, 17, 0.2) !important;
}

/* Числовое поле, которое перетаскивают вверх-вниз: курсор показывает направление, текст не выделяется */

.number-input-dragging .bp6-input {
    cursor: ns-resize;
    user-select: none;
}
.vision-dialog-progress-content {
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

.vision-dialog-progress-content > * {
    margin-top: 10px;
}

.vision-dialog-button-row {
    margin-top: 20px;
    text-align: center;
}

.bp6-progress-bar:not(.bp6-no-animation):not(.bp6-no-stripes) .bp6-progress-meter {
    animation: linear-progress-bar-stripes 300ms linear infinite;
}
.draggable-container {
    border: 1px;
    border-color: #c9cbcd;
    border-style: solid;
    position: absolute;
    overflow: hidden;
    background-color: white;
}

.bp6-dark .draggable-container {
    background-color: var(--bp-dark-gray3);
    border-color: var(--bp-gray1);
}

.draggable-container:hover .top-anchor, .draggable-container:hover .bottom-anchor {
    display: block !important;
}

.openseadragon-canvas {
    width: 100% !important;
}

.draggable-move-container {
    border: 1px  #c9cbcd;
    height: 10px;
    width: 10px;
    border-style: solid;
    top: 0;
    left: 0;
    position: absolute;
    cursor: move;
    background-color: #c9cbcd;
    display: none;
    z-index: 10;
}

.bp6-dark .draggable-move-container {
    border: 1px var(--bp-gray1);
    background-color: var(--bp-gray1);
}

.draggable-header {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: move;
    user-select: none;
}

.draggable-resize-container {
    border: 7px solid transparent;
    border-right: 7px solid #c9cbcd;
    border-bottom: 7px solid #c9cbcd;
    position: absolute;
    cursor: nw-resize;
    bottom: 0;
    right: 0;
    display: none;
    z-index: 15;
}

.bp6-dark .draggable-resize-container {
    border-right: 7px solid var(--bp-gray1);
    border-bottom: 7px solid var(--bp-gray1);
}
.vision-cells-tooltip-blankBody {
    position: absolute;
    text-align: center;
    pointer-events: none;
}

.vision-cells-tooltip-blankBody:focus {
    outline: 0;
}

div.vision-cells-tooltip-body {
    position: absolute;
    white-space: nowrap;
    pointer-events: none;
}

.vision-cells-tooltip-column {
    display: inline-block;
    vertical-align: top;
    overflow: hidden;
    max-width: 300px;
}

.vision-cells-tooltip-grid {
    display: grid;
    grid-template-columns: max-content auto;
}

.vision-cells-tooltip-grid-full-row {
    grid-column: 1 / -1;
}

.vision-cells-tooltip-field {
    white-space: nowrap;
}

.vision-cells-tooltip-bold {
    font-weight: 600;
}

.vision-cells-tooltip-white.bp6-tooltip .bp6-popover-content {
    background: #ffffff;
    color: inherit;
}

.vision-cells-tooltip-white.bp6-popover .bp6-popover-arrow-fill {
    fill: #ffffff;
}

.bp6-portal.vision-cells-tooltip-passthrough {
    pointer-events: none;
}

.vision-cells-tooltip-marker:before {
    display: block;
    content: "";
    position: absolute;
    border-left: 15px solid transparent;
    border-top: 15px solid rgba(0, 0, 0, 0.6);
    top: 0;
    right: 0;
}

.vision-cells-tooltip-marker::after {
    display: block;
    content: "";
    position: absolute;
    border-left: 15px solid transparent;
    top: 0;
    right: 0;
}

.vision-cells-tooltip-marker.blueMarker::after {
    border-top: 15px solid #2471c3;
}

.vision-cells-tooltip-marker.greenMarker::after {
    border-top: 15px solid #23b023;
}

.vision-cells-tooltip-marker.redMarker::after {
    border-top: 15px solid #df2323;
}

.vision-cells-tooltip-marker.yellowMarker::after {
    border-top: 15px solid #e2c606;
}

.vision-cells-tooltip-marker.purpleMarker::after {
    border-top: 15px solid #c92ece;
}
/* Идиограмма-образец рядом с объектом кариограммы */

.karyo-karyogram-idiogram {
    display: block;
    flex-shrink: 0;
    color: #111418;
}

/* Сетка идиограммы */

.karyo-karyogram-idiogramCell {
    fill: none;
    stroke: currentcolor;
    shape-rendering: crispedges;
}

/* Границы плеч и центромера */

.karyo-karyogram-idiogramEdge {
    fill: none;
    stroke: currentcolor;
    shape-rendering: crispedges;
}

.karyo-karyogram-idiogramLabel {
    fill: currentcolor;
    text-anchor: middle;
    dominant-baseline: central;
    user-select: none;
}

/* Подложка под заливками бэндов */

.karyo-karyogram-idiogramPaper {
    fill: #ffffff;
}

.karyo-karyogram-idiogramInk {
    color: #111418;
}
.karyo-karyogram {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: #ffffff;
    color: #111418;
}

/* Кариограмма и кнопка "Добавить в результаты" лежат в одной ячейке шириной с кариограмму.
   Место под вертикальную полосу прокрутки оставлено и тогда, когда полосы нет: иначе с её появлением сдвигались бы
   кнопка и правый край панели неидентифицированных */

.karyo-karyogram-scroll {
    display: grid;
    align-items: start;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 12px;
    overflow: auto;
    scrollbar-gutter: stable;
}

/* Сетка хромосом и панель неидентифицированных стоят рядом */

.karyo-karyogram-content {
    display: flex;
    grid-area: 1 / 1;
    gap: 24px;
    align-items: stretch;
    min-width: min-content;
}

.karyo-karyogram-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.karyo-karyogram-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.karyo-karyogram-slot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-shrink: 0;
    border-radius: 3px;
}

/* Место, в которое попадут отпущенные объекты */

.karyo-karyogram-slot.dropTarget {
    box-shadow: inset 0 0 0 1px #2d72d2;
    background-color: rgba(45, 114, 210, 0.12);
}

/* Объекты одного места стоят рядом и выровнены по общей линии центромер ряда */

.karyo-karyogram-objects {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: flex-start;
    justify-content: center;
    min-height: 1px;
}

.karyo-karyogram-slot.rest {
    flex: 1;
}

.karyo-karyogram-slot.rest .karyo-karyogram-objects {
    justify-content: flex-start;
}

/* "Добавить в результаты": над панелью неидентифицированных, вровень с её правым краем - правым краем кариограммы.
   При прокрутке кнопка остаётся в видимой части области. Отступы липкой кнопки отсчитываются от края области внутри
   её поля, поэтому кариограмме шире области кнопка стоит там же, где и помещающейся; отрицательным отступом в поле
   её не заводить, иначе место кнопки зависело бы от ширины кадра. Место под кнопку оставляет верхний отступ панели
   неидентифицированных */

.karyo-karyogram .karyo-karyogram-results.bp6-button, .bp6-dark .karyo-karyogram .karyo-karyogram-results.bp6-button {
    position: sticky;
    top: 0;
    right: 0;
    z-index: 2;
    grid-area: 1 / 1;
    justify-self: end;
    height: 40px;
    border: 1px solid #d3d8de;
    background: #ffffff;
    box-shadow: none;
    color: #1c2127;
}

.karyo-karyogram .karyo-karyogram-results.bp6-button:hover, .bp6-dark .karyo-karyogram .karyo-karyogram-results.bp6-button:hover {
    background: #f6f7f9;
}

.karyo-karyogram .karyo-karyogram-results.bp6-button.selected, .bp6-dark .karyo-karyogram .karyo-karyogram-results.bp6-button.selected {
    border-color: #34774c;
    color: #34774c;
}

/* Линия центромер с засечками на концах */

.karyo-karyogram-centromereLine {
    position: absolute;
    left: 0;
    width: 100%;
    height: 9px;
    shape-rendering: crispedges;
    pointer-events: none;
    overflow: visible;
}

.karyo-karyogram-centromereLine line {
    stroke: #c22762;
    stroke-width: 1px;
}

.karyo-karyogram-objectBox {
    position: relative;
    flex-shrink: 0;
    padding: 1px;
    border: 1px solid transparent;
    border-radius: 3px;
    cursor: pointer;
}

.karyo-karyogram-objectBox.selected {
    border-color: #2ec8ff;
    background-color: rgba(46, 200, 255, 0.2);
}

.karyo-karyogram-objectBox.dragging {
    opacity: 0.25;
}

/* Копия перетаскиваемых объектов под курсором */

.karyo-karyogram-ghost {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    pointer-events: none;
}

.karyo-karyogram-ghostContent {
    display: flex;
    gap: 8px;
    align-items: center;
    opacity: 0.75;
    transform: translate(-50%, -50%);
    filter: drop-shadow(0 2px 4px rgba(16, 22, 26, 0.4));
}

/* Во время перетаскивания курсор один на всю область */

.karyo-karyogram.dragging, .karyo-karyogram.dragging .karyo-karyogram-objectBox {
    cursor: grabbing;
}

/* Идиограмма-образец: стоит вплотную к своему объекту */

.karyo-karyogram-idiogramBox {
    flex-shrink: 0;
    margin-left: -4px;
}

.karyo-karyogram-defs {
    position: absolute;
    width: 0;
    height: 0;
}

/* Настройки цвета и резкости кадра применяются к вырезкам так же, как к самому кадру */

.karyo-karyogram-object {
    display: block;
}

.karyo-karyogram-code {
    height: 18px;
    line-height: 18px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

/* Объекты, не отнесённые ни к одной хромосоме: панель справа от сетки с подписью под ней.
   Панели достаётся всё место рядом с сеткой, а когда его меньше 220 px, она сужается до него: иначе несколько
   недостающих пикселей выталкивали бы кариограмму в горизонтальную прокрутку, в которой нет ничего, кроме отступа */

.karyo-karyogram-rest {
    display: flex;
    flex: 1 1 220px;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
    margin-top: 48px;
}

/* Рамка панели тянется на всю высоту сетки: место под объекты видно и пока их нет.
   Ширину панели задаёт свободное место рядом с сеткой, а не её строки: строки переносятся под измеренную
   ширину, и панель, которую держат её же строки, не сужалась бы вместе с областью прокрутки, когда появляется
   вертикальная полоса, а оставляла бы горизонтальную прокрутку на ширину этой полосы.
   Наименьшая ширина панели, по самому широкому объекту, задаётся в разметке и относится к месту под объекты
   без поля и рамки */

.karyo-karyogram-restBox {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
    box-sizing: content-box;
    padding: 8px;
    border: 1px solid #d3d8de;
    border-radius: 3px;
    contain: inline-size;
}

/* Панель целиком - место, в которое попадут отпущенные объекты */

.karyo-karyogram-restBox.dropTarget {
    border-color: #2d72d2;
    background-color: rgba(45, 114, 210, 0.12);
}

.karyo-karyogram-restTitle {
    font-size: 12px;
    text-align: center;
}

/* Сообщение вместо кариограммы: загрузка справочника или пустой кадр */

.karyo-karyogram-message {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    height: 100%;
}

:root {
    --bp-black: #111418;
    --bp-white: #ffffff;
    --bp-dark-gray1: #1c2127;
    --bp-dark-gray2: #252a31;
    --bp-dark-gray3: #2f343c;
    --bp-dark-gray4: #383e47;
    --bp-dark-gray5: #404854;
    --bp-gray1: #5f6b7c;
    --bp-gray2: #738091;
    --bp-gray3: #8f99a8;
    --bp-gray4: #abb3bf;
    --bp-gray5: #c5cbd3;
    --bp-light-gray1: #d3d8de;
    --bp-light-gray2: #dce0e5;
    --bp-light-gray3: #e5e8eb;
    --bp-light-gray4: #edeff2;
    --bp-light-gray5: #f6f7f9;
    --bp-red2: #ac2f33;
    --bp-red3: #cd4246;
    --bp-red5: #fa999c;
    --bp-blue2: #215db0;
    --bp-blue3: #2d72d2;
    --bp-blue5: #8abbff;
}

* {
    scrollbar-width: thin;
}

.vision-mainPanel {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-color: #f5f8fa;
    scrollbar-width: thin !important;
}

.bp6-dark .vision-mainPanel {
    background-color: var(--bp-dark-gray1);
}

.vision-mainPanel .bp6-select::after {
    content: "\f140";
    z-index: 6;
}

.vision-switchLang {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 100;
}

.component-no-select {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -o-user-select: none;
    user-select: none;
    -webkit-text-size-adjust: none;
}

.component-no-select *:focus {
    outline: initial;
    outline-offset: initial;
}

[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    background-color: #5f6b7c;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 20 20%27 fill=%27%23777%27><path d=%27M11.41 10l4.29-4.29c.19-.18.3-.43.3-.71a1.003 1.003 0 00-1.71-.71L10 8.59l-4.29-4.3a1.003 1.003 0 00-1.42 1.42L8.59 10 4.3 14.29c-.19.18-.3.43-.3.71a1.003 1.003 0 001.71.71l4.29-4.3 4.29 4.29c.18.19.43.3.71.3a1.003 1.003 0 00.71-1.71L11.41 10z%27/></svg>");
    background-size: 16px 16px;
}

.component-default-select {
    -webkit-touch-callout: initial !important;
    -webkit-user-select: initial !important;
    -webkit-tap-highlight-color: initial !important;
    -khtml-user-select: initial !important;
    -moz-user-select: initial !important;
    -ms-user-select: initial !important;
    -o-user-select: initial !important;
    user-select: initial !important;
}

.default-cursor {
    cursor: default;
}

.box-shadow {
    box-shadow: 0 0 2px 0 #a0a0a0;
}

.box-shadow:focus-within {
    box-shadow: 0 0 4px 0 #707080;
}

html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

button.bp6-button.bp6-large {
    padding: 5px 10px;
}

a.bp6-button.bp6-large {
    padding: 5px 10px;
    line-height: 30px;
}

a.bp6-button.bp6-large > img, a.bp6-button.bp6-large > svg, a.bp6-button.bp6-large > span {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translate(0, -50%);
}

label.bp6-checkbox span.bp6-control-indicator {
    overflow: hidden;
}

.bp6-toast-container {
    pointer-events: none !important;
}

.bp6-toast {
    pointer-events: auto !important;
}

.my-toaster {
    max-width: 500px;
    margin: 0 0 0 auto;
    display: none;
}

.my-toaster:has(*) {
    display: block;
}

.vision-lis-status {
    font-family: "Icons16", sans-serif;
    font-size: 15px;
}

.vision-lis-status > * {
    font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Open Sans", "Helvetica Neue", "Icons16", sans-serif;
    font-size: 14px;
}
div.vision-toolbar div.bp6-button-group {
    white-space: nowrap;
    vertical-align: top;
}

div.vision-toolbar div.bp6-button-group:not(.bp6-fill)  {
    margin-right: 20px;
    display: inline-flex;
}

div.vision-toolbar div.vision-controls-zoomInput {
    margin-right: 20px;
}

div.vision-toolbar .vision-toolbar-rightbar div.bp6-button-group:not(.bp6-fill) {
    margin-left: 20px;
    margin-right: 0;
    display: inline-flex;
}

div.vision-toolbar .vision-toolbar-rightbar .vision-toolbar-rightbar-left-side div.bp6-button-group:not(.bp6-fill) {
    margin-left: 0;
    margin-right: 0;
    display: inline-flex;
}

div.vision-toolbar .vision-toolbar-rightbar .vision-toolbar-rightbar-right-side div.bp6-button-group:not(.bp6-fill) {
    margin-left: 20px;
    margin-right: 0;
    display: inline-flex;
}

div.vision-toolbar .bp6-button-group button {
    vertical-align: top;
    align-items: center;
}
.vision-navBar-div {
    height: 39px;
    width: 100%;
    background-color: #eaeff3;
    box-shadow: 0 0 2px 1px #a0a0a0;
    z-index: 2;
    position: relative;
}

.bp6-dark .vision-navBar-div {
    background-color: var(--bp-dark-gray3);
}

.vision-navBar-userRepository-beta-version {
    color: #db3737;
}

.bp6-dark .vision-navBar-userRepository-beta-version {
    color: var(--bp-red5);
}

.vision-navBar-div>div {
    display: table-cell;
    color: #5c7080;
    vertical-align: top;
    overflow: hidden;
    white-space: nowrap;
}

.bp6-dark .vision-navBar-div>div {
    color: var(--bp-light-gray3);
}

.vision-navBar-div>div.vision-navBar-div-left {
    white-space: nowrap;
}

.vision-navBar-div>div.vision-navBar-div-middle {
    width: 100%;
    max-width: 0;
    overflow: hidden;
}

.vision-navBar-div>div.vision-navBar-div-right {
    text-align: right;
    line-height: 37px;
}

.vision-navigation-bar-avatar-popover {
    bottom: 2px !important;
}

.vision-navBar-div span.splitter {
    font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Open Sans", "Helvetica Neue", "Icons16", sans-serif;
    color: #c0c4c8;
    margin-left: -2px;
    width: 3px;
    display: inline-block;
}

.vision-navBar-div-left button.start-button {
    border: 0 transparent;
    background-color: transparent;
    margin: 0;
    padding: 0;
    cursor: pointer;
    height: 39px;
    white-space: nowrap;
}

.vision-navBar-div-left button.start-button:hover {
    background-color: #ced9e0;
}

.bp6-dark .vision-navBar-div-left button.start-button:hover {
    background-color: var(--bp-dark-gray5);
}

.vision-navBar-div-left button.start-button img.logo {
    margin-left: 20px;
    margin-right: 12px;
    max-height: 39;
    vertical-align: middle;
}

.vision-navBar-div-left p.start-splitter {
    display: inline-block;
    line-height: 37px;
    font-size: 17px;
    height: 100%;
    margin: 0;
    vertical-align: top;
}

.vision-navBar-div-right p.start-splitter {
    display: inline-block;
    line-height: 37px;
    font-size: 17px;
    height: 100%;
    margin: 0;
    margin-left: 11px;
    vertical-align: top;
}

.vision-navBar-div-right p.start-splitter.right-button {
    margin-right: 6px;
}

.vision-navBar-div-right p.splitter {
    display: inline-block;
    line-height: 37px;
    font-size: 17px;
    height: 100%;
    margin: 0;
    vertical-align: top;
}

.vision-navBar-div-right button.centered {
    text-align: center;
}

.vision-navBar-userRepository {
    line-height: 37px;
    font-size: 17px;
}

.vision-navBar-userRepository button.bp6-button {
    margin: -3px 0;
    border-radius: 0;
    color: #5c7080;
}

.vision-navBar-userRepository button.bp6-button.slim {
    padding: 10px 5px 12px;
    min-width: 30px;
    position: relative;
    top: -3px;
}

.vision-navBar-userRepository button.bp6-button.last {
    padding-right: 20px;
    padding-left: 10px;
}

.vision-navBar-userRepository button.bp6-button span.arrow {
    margin-left: 4px !important;
}

.vision-navBar-notificationsIcon {
    display: flex;
}

/*
 * Счётчик непрочитанных уведомлений лежит на правом верхнем углу значка и целиком внутри кнопки:
 * ячейка панели обрезает выступающее. Кольцо цвета панели отделяет кружок от значка
 */

.vision-navBar-notificationsBadge {
    position: absolute;
    top: 3px;
    right: 0;
    min-width: 18px;
    height: 18px;
    box-sizing: border-box;
    padding: 0 3px;
    border: 2px solid #eaeff3;
    border-radius: 9px;
    background-color: var(--bp-red3);
    color: var(--bp-white);
    font-size: 10px;
    font-weight: bold;
    line-height: 14px;
    text-align: center;
    pointer-events: none;
}

.bp6-dark .vision-navBar-notificationsBadge {
    border-color: var(--bp-dark-gray3);
}

.vision-workArea-w-breadcrumb {
    height: calc(100% - 40px);
    width: 100%;
    overflow-y: hidden;
    overflow-x: hidden;
}

button.vision-navBar-homeButton.bp6-button {
    background: #137cbd;
    padding: 0;
    height: 39px;
}

button.vision-navBar-homeButton.bp6-button:hover {
    background: #106ba3;
    box-shadow: inset 0 0 0 1px rgba(16, 22, 26, 0.4), inset 0 -1px 0 rgba(16, 22, 26, 0.2);
}

.vision-navBar-homeButton:focus {
    outline: none;
}

.vision-breadcrumb-item {
    font-size: 17px;
    line-height: 39px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

/*
 * Иконка информации о пробе (20px) прижата к верху строки на целое число пикселей.
 * Центрирование по высоте строки хлебных крошек (39px) давало (39 - 20) / 2 = 9.5px -
 * дробную позицию, которую браузер округляет до физического пикселя по-разному при
 * разном масштабе Windows (100/125/150%), из-за чего иконка смещалась относительно текста.
 */

.vision-breadcrumb-item-info {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    align-self: flex-start;
    margin-top: 10px;
}

.vision-breadcrumb-item-info > .bp6-popover-target {
    display: flex;
    align-items: center;
}

.vision-breadcrumb-unsaved {
    display: flex;
    flex: 0 0 auto;
    align-self: flex-start;
    margin: 16px 6px 0 2px;
}

.vision-breadcrumb-unsaved > .bp6-popover-target {
    display: flex;
}

.vision-breadcrumb-unsaved-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--bp-blue3);
}

.bp6-dark .vision-breadcrumb-unsaved-dot {
    background-color: var(--bp-blue5);
}

.vision-navBar-div .first {
    font-weight: bold;
}

.vision-navBar-div .count {
    font-weight: normal;
}

.vision-breadcrumb {
    display: flex;
    vertical-align: top;
    height: 39px;
    line-height: 40px;
    margin-left: 10px;
    color: #5c7080;
    overflow: hidden;
    flex-wrap: nowrap;
}

.bp6-dark .vision-breadcrumb {
    color: var(--bp-light-gray3);
}

div.vision-navBar-div-right span.user-button {
    line-height: 39px;
}

div.vision-navBar-div-right button.bp6-button.user-button {
    padding: 10px 20px 6px 5px;
}

div.vision-navBar-div-right button.bp6-button.user-button .bp6-button-text {
    line-height: 26px;
    font-size: 14px;
    font-weight: normal;
    font-style: normal;
    background-color: #5d707f;
    border-radius: 13px;
    width: 26px;
    height: 26px;
    display: inline-block;
    margin: 0;
    padding: 0;
    color: #fefefe;
}

button.bp6-button.user-button:hover {
    color: #5c7080;
}

button.bp6-button.bp6-active.user-button {
    color: #5c7080;
}

.user-tooltip-content .bp6-popover-content {
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-tooltip-content {
    margin-right: 7px;
}

.session-settings-content {
    margin-right: 7px;
}

.bp6-progress-bar:not(.bp6-no-animation):not(.bp6-no-stripes) .bp6-progress-meter {
    animation: linear-progress-bar-stripes 300ms linear infinite;
}

.vision-breadcrumb > li {
    flex-shrink: 1;
    display: flex;
    overflow: hidden;
    min-width: 40px;
}

.vision-breadcrumb > li:last-child {
    flex-shrink: 0;
    overflow: visible;
    margin-right: 20px;
}

.vision-breadcrumb > li:last-child .vision-breadcrumb-item {
    text-overflow: clip;
    overflow: visible;
    white-space: nowrap;
}

.bp6-breadcrumbs > li::after {
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    flex-shrink: 0;
}
.bp6-menu-item .bp6-icon {
    margin-top: 2px;
    color: #5c7080;
}

.bp6-menu-item.bp6-disabled .bp6-icon {
    color: inherit;
}

.bp6-menu-header.user-name-menu-divider {
    display: flex;
    font-size: 16px;
    user-select: none;
    color: #5c7080;
    border-top: none;
    margin-left: 5px;
    align-items: center;
}

.bp6-dark .bp6-menu-header.user-name-menu-divider {
    color: var(--bp-gray4);
}

.bp6-menu-header.user-name-menu-divider > h6 {
    font-weight: bold;
    font-size: 14px;
    padding: 5px 7px;
    padding-top: 0 !important;
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vision-icon-recipient-user {
    margin-top: 24px;
}

.vision-icon-recipient-user::before {
    content: "";
    display: inline-block;
    margin-top: 7px;
    max-width: 16px;
    max-height: 16px;
    min-width: 16px;
    min-height: 16px;
    background-image: url(/images/App-Pathoview_16x16.svg);
    background-position: center;
    background-size: auto;
    background-repeat: no-repeat;
}
.vision-navBar-div-right .color-switcher {
    padding-bottom: 9px !important;
    outline: 0;
}

.bp6-dark .vision-navBar-div-right .color-switcher {
    padding-bottom: 7px !important;
}
.sample-patient-info-icon {
    cursor: pointer;
    margin: 0 3px;
}

.sample-patient-info {
    display: grid;
    grid-template-columns: minmax(120px, max-content) 1fr;
    column-gap: 30px;
    align-items: baseline;
    min-width: 340px;
    padding: 15px 20px 20px;
    font-size: 14px;
    line-height: 20px;
}

.sample-patient-info-title {
    grid-column: 1 / -1;
    margin: 0 0 5px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(17, 20, 24, 0.15);
}

.sample-patient-info-title:not(:first-child) {
    margin-top: 20px;
}

.bp6-dark .sample-patient-info-title {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.sample-patient-info-label {
    grid-column: 1;
    padding: 7px 0;
    white-space: nowrap;
}

.sample-patient-info-value {
    grid-column: 2;
    padding: 7px 0;
}
/* Окно уведомлений - содержимое всплывающего окна кнопки уведомлений в панели навигации */

.vision-notifications {
    display: flex;
    flex-direction: column;
    width: 460px;
    max-width: calc(100vw - 32px);
}

.vision-notifications-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 12px 6px 16px;
}

.vision-notifications-title {
    font-size: 18px;
    font-weight: 600;
}

.vision-notifications-readAll {
    margin-left: auto;
}

.vision-notifications-tabs {
    padding: 0 16px;
    box-shadow: inset 0 -1px 0 rgba(16, 22, 26, 0.15);
}

.bp6-dark .vision-notifications-tabs {
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.vision-notifications-tabs .bp6-tab[aria-selected="true"] {
    font-weight: 600;
}

/* Щелчок мышью по вкладке не оставляет на ней рамку фокуса: приложение не прячет рамки через FocusStyleManager.
   Рамка клавиатурного фокуса остаётся */

.vision-notifications-tabs .bp6-tab:focus:not(:focus-visible) {
    outline: none;
}

.vision-notifications-counter {
    margin-left: 6px;
}

/* Высота списка ограничена и окном браузера, чтобы заголовок и кнопка настроек оставались на экране */

.vision-notifications-list {
    max-height: min(560px, calc(100vh - 200px));
    overflow-y: auto;
}

.vision-notifications-state {
    padding: 40px 16px;
    color: var(--bp-gray1);
    text-align: center;
}

.bp6-dark .vision-notifications-state {
    color: var(--bp-gray4);
}

.vision-notifications-more {
    display: flex;
    justify-content: center;
    padding: 8px;
}

.vision-notifications-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 8px 12px 16px;
    border-bottom: 1px solid var(--bp-light-gray3);
}

.bp6-dark .vision-notifications-row {
    border-bottom-color: var(--bp-dark-gray5);
}

.vision-notifications-row-unread {
    background-color: rgba(45, 114, 210, 0.07);
    cursor: pointer;
}

.bp6-dark .vision-notifications-row-unread {
    background-color: rgba(138, 187, 255, 0.08);
}

.vision-notifications-icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bp-blue3);
    color: var(--bp-white);
}

.vision-notifications-icon .bp6-icon {
    color: var(--bp-white);
}

.vision-notifications-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

/*
 * Основной текст - до двух строк, вспомогательный и подпись - в одну строку; длиннее обрезаются, а в раскрытой строке
 * показываются целиком. Основной текст обрезается высотой, а не -webkit-line-clamp: многоточие line-clamp стоит
 * сразу за последним словом, и «…» у правого края его бы не закрыло
 */

.vision-notifications-main {
    position: relative;
    max-height: 40px;
    overflow: hidden;
    overflow-wrap: anywhere;
    line-height: 20px;
}

.vision-notifications-expanded .vision-notifications-main {
    max-height: none;
}

.vision-notifications-actor {
    font-weight: 600;
}

.vision-notifications-item {
    font-variant-numeric: tabular-nums;
}

.vision-notifications-link {
    color: var(--bp-blue2);
    cursor: pointer;
}

.vision-notifications-link:hover {
    color: var(--bp-blue2);
    text-decoration: underline;
}

.bp6-dark .vision-notifications-link, .bp6-dark .vision-notifications-link:hover {
    color: var(--bp-blue5);
}

.vision-notifications-details, .vision-notifications-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vision-notifications-details {
    position: relative;
    color: var(--bp-dark-gray5);
    font-size: 13px;
    line-height: 18px;
}

.bp6-dark .vision-notifications-details {
    color: var(--bp-light-gray1);
}

.vision-notifications-expanded .vision-notifications-details, .vision-notifications-expanded .vision-notifications-label {
    overflow-wrap: anywhere;
    white-space: normal;
}

/*
 * «…» на месте обрезки показывает тексты строки целиком. Его фон - фон окна под подсветкой строки: под ним скрыт конец
 * обрезанного текста, а с левого края фон проявляется постепенно, чтобы срез посреди буквы не был виден
 */

.vision-notifications-expand {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 0 0 0 10px;
    border: 0;
    background: linear-gradient(to right, transparent, var(--bp-white) 8px);
    color: var(--bp-blue2);
    font: inherit;
    line-height: inherit;
    cursor: pointer;
}

.bp6-dark .vision-notifications-expand {
    background: linear-gradient(to right, transparent, var(--bp-dark-gray3) 8px);
    color: var(--bp-blue5);
}

.vision-notifications-row-unread .vision-notifications-expand {
    background: linear-gradient(to right, rgba(45, 114, 210, 0), rgba(45, 114, 210, 0.07) 8px), linear-gradient(to right, transparent, var(--bp-white) 8px);
}

.bp6-dark .vision-notifications-row-unread .vision-notifications-expand {
    background: linear-gradient(to right, rgba(138, 187, 255, 0), rgba(138, 187, 255, 0.08) 8px), linear-gradient(to right, transparent, var(--bp-dark-gray3) 8px);
}

.vision-notifications-meta {
    display: flex;
    gap: 8px;
    margin-top: 2px;
    color: var(--bp-gray1);
    font-size: 12px;
    line-height: 16px;
}

.bp6-dark .vision-notifications-meta {
    color: var(--bp-gray4);
}

.vision-notifications-label {
    min-width: 0;
}

.vision-notifications-time {
    margin-left: auto;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Точка непрочитанного у прочитанного уведомления скрыта, но место держит: строки не сдвигаются при прочтении */

.vision-notifications-dot {
    flex: none;
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background-color: var(--bp-blue3);
}

.bp6-dark .vision-notifications-dot {
    background-color: var(--bp-blue5);
}

.vision-notifications-dot.vision-notifications-dot-read {
    visibility: hidden;
}

.vision-notifications-delete {
    flex: none;
    margin-top: -4px;
}

.vision-notifications-removed {
    align-items: center;
    min-height: 52px;
    box-sizing: border-box;
    padding-top: 8px;
    padding-bottom: 8px;
    background-color: var(--bp-light-gray5);
    color: var(--bp-dark-gray5);
}

.bp6-dark .vision-notifications-removed {
    background-color: var(--bp-dark-gray4);
    color: var(--bp-light-gray1);
}

.vision-notifications-removedText {
    flex: 1 1 auto;
}

.vision-notifications-footer {
    display: flex;
    padding: 10px 16px;
}

/* Окно настроек уведомлений */

.vision-notifications-settingsDialog {
    width: 600px;
}

.vision-notifications-settingsTable {
    width: 100%;
}

/* Подпись строки стоит на одной линии с флажками */

.vision-notifications-settingsTable.bp6-html-table td {
    vertical-align: middle;
}

.vision-notifications-settingsTable .vision-notifications-channel {
    width: 104px;
    text-align: center;
}

.vision-notifications-channelTitle {
    display: block;
    margin-bottom: 6px;
}

/*
 * Флажок без подписи стоит по центру столбца, без места под подпись и без отступов.
 * Блок, а не строка: в строке значок опускается к базовой линии текста и уходит ниже середины ячейки
 */

.vision-notifications-checkbox.bp6-control {
    display: flex;
    justify-content: center;
    margin: 0;
    padding-left: 0;
}

.vision-notifications-checkbox.bp6-control .bp6-control-indicator {
    margin: 0;
}

.vision-notifications-dialogButton {
    min-width: 100px;
}

.vision-mainMenu-overlay {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.vision-mainMenu-overlay:focus {
    outline: 0;
}

.vision-mainMenu-buttonsDiv {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.vision-mainMenu-itemDiv {
    position: relative;
    width: 130px;
    margin-right: 40px;
    margin-left: 40px;
    height: 190px;
    text-align: center;
    cursor: default;
    display: inline-block;
}

.vision-mainMenu-itemDiv div.hover {
    background-color: #000000;
    position: absolute;
    left: 0;
    top: 0;
    width: 130px;
    height: 130px;
    opacity: 0;
    padding: 17px;
    cursor: pointer;
    border-radius: 10px;
    transition: opacity 200ms ease;
}

.vision-mainMenu-itemDiv div.hover:hover {
    opacity: 0.25;
}

.vision-mainMenu-itemDiv div.hover:active {
    opacity: 0.5;
}

.vision-mainMenu-menuButton {
    width: 130px;
    height: 130px;
    border-radius: 10px;
    background: white;
    padding: 17px;
    cursor: pointer;
    -webkit-box-shadow: 0 2px 22px 3px rgba(0, 0, 0, 0.41);
    -moz-box-shadow: 0 2px 22px 3px rgba(0, 0, 0, 0.41);
    box-shadow: 0 2px 22px 3px rgba(0, 0, 0, 0.41);
}

.bp6-dark .vision-mainMenu-menuButton {
    background: var(--bp-dark-gray5);
}

.vision-mainMenu-label {
    color: white;
    font-size: 20px;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    white-space: nowrap;
}

.vision-mainMenu-itemDiv:focus {
    outline: 0;
}

.vision-mainMenu-itemDiv::selection {
    background: 0;
}

.vision-mainMenu-overlay.bp6-overlay-appear, .vision-mainMenu-overlay.bp6-overlay-enter {
    opacity: 0;
}

.vision-mainMenu-overlay.bp6-overlay-appear-active, .vision-mainMenu-overlay.bp6-overlay-enter-active {
    opacity: 1;
    transition: opacity 200ms cubic-bezier(0.4, 1, 0.75, 0.9);
}

.vision-mainMenu-overlay.bp6-overlay-exit-active {
    opacity: 0;
    transition: opacity 200ms cubic-bezier(0.4, 1, 0.75, 0.9);
}

div.vision-settings-mainPanel {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: auto;
}

div.vision-settings-mainPanel .footer {
    margin-top: 20px;
    width: 60%;
    padding-bottom: 40px;
}

div.vision-settings-mainPanel .footer h5{
    color: #5c7080;
    margin-bottom: 10px;
    line-height: 17px;
}

.bp6-dark div.vision-settings-mainPanel .footer h5{
    color: var(--bp-light-gray3);
}

div.vision-settings-mainPanel div.panel {
    width: 60%;
    margin-top: 20px;
}

div.vision-settings-mainPanel div.panel h5 {
    color: #5c7080;
}

.bp6-dark div.vision-settings-mainPanel div.panel h5 {
    color: var(--bp-light-gray3);
}

div.vision-settings-mainPanel div.panel h5 .headerText {
    margin-right: 10px;
    line-height: 17px;
}

div.vision-settings-mainPanel div.panel h5 .userIcon {
    font-size: 16px;
    font-weight: normal;
}

div.vision-settings-mainPanel div.panel div.settings-group {
    background: white;
    padding: 20px;
}

.bp6-dark div.vision-settings-mainPanel div.panel div.settings-group {
    background: var(--bp-dark-gray2);
}

/* Подпись группы ЛИС ИН случаев («Данные анализа», «Заключение», «Препараты») над полями группы */

.lis-settings .lis-settings-caseIdsTitle {
    margin-top: 15px;
}

div.vision-settings-mainPanel div.panel div.settings-group .columnList-column {
    display: inline-block;
    width: 50%;
    height: 240px;
}

div.vision-settings-mainPanel div.panel div.settings-group .columnList-column .columnBox {
    display: inline-block;
    width: calc(100% - 40px);
    height: 210px;
    overflow: auto;
}

div.vision-settings-mainPanel div.panel div.settings-group .columnList-column .buttonDiv {
    display: inline-block;
    height: 210px;
    width: 40px;
    position: relative;
}

div.vision-settings-mainPanel div.panel div.settings-group .columnList-column .textLabel {
    line-height: 30px;
    margin-bottom: 0;
}

div.vision-settings-mainPanel div.panel div.settings-group .columnList-column .columnItem {
    line-height: 35px;
    font-size: 14px;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
}

div.vision-settings-mainPanel div.panel div.settings-group .columnList-column .columnItem.focused {
    box-shadow: inset 0 0 0 1px rgba(19, 124, 189, 1);
    background-color: rgba(19, 124, 189, 0.1);
}

div.vision-settings-mainPanel div.panel div.settings-group .buttonDiv .arrowTop {
    position: absolute;
    left: 10px;
    top: 72.5px;
}

div.vision-settings-mainPanel div.panel div.settings-group .buttonDiv .arrowBot {
    position: absolute;
    left: 10px;
    bottom: 72.5px;
}

div.vision-settings-mainPanel div.panel div.settings-group .buttonDiv .button30 {
    width: 30px;
    height: 30px;
    line-height: 30px;
}

div.vision-settings-mainPanel div.panel div.settings-group div.panel-gallery {
    padding-top: 10px;
    padding-bottom: 15px;
}

div.vision-settings-mainPanel div.panel div.settings-group div.panel-gallery .bp6-label {
    margin-bottom: 5px;
    height: 30px;
}

div.vision-settings-mainPanel div.panel div.settings-group label.bp6-label:last-child {
    margin: 0;
    height: 30px;
}

div.vision-settings-mainPanel div.panel div.settings-group div.panel-gallery .groupName {
    line-height: 30px;
    margin-bottom: 5px;
}

div.vision-settings-mainPanel div.panel div.settings-group.panel-gallery .groupNameBold {
    line-height: 30px;
    margin-bottom: 5px;
}

div.vision-settings-mainPanel div.panel div.settings-group.panel-gallery .groupNameBold.newLine {
    border-top: 1px solid rgba(128, 128, 128, 0.23);
    padding-top: 10px;
}

/* ColorPicker */

div.vision-settings-mainPanel .vision-settings-swatch {
    padding: 7px;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(16, 22, 26, 0.2), inset 0 -1px 0 rgba(16, 22, 26, 0.1);
    display: flex;
    cursor: pointer;
    background-color: #f5f8fa;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0));
}

.bp6-dark div.vision-settings-mainPanel .vision-settings-swatch {
    box-shadow: inset 0 0 0 1px rgba(121, 117, 117, 0.2), inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    background-color: var(--bp-dark-gray3);
    background-image: linear-gradient(to bottom, rgba(16, 22, 26, 0.8), rgba(16, 22, 26, 0));
}

div.vision-settings-mainPanel .vision-settings-swatch:not(.bp6-disabled):hover {
    box-shadow: inset 0 0 0 1px rgba(16, 22, 26, 0.2), inset 0 -1px 0 rgba(16, 22, 26, 0.1);
    background-clip: padding-box;
    background-color: #ebf1f5;
}

.bp6-dark div.vision-settings-mainPanel .vision-settings-swatch:not(.bp6-disabled):hover {
    box-shadow: inset 0 0 0 1px rgba(16, 22, 26, 0.2), inset 0 -1px 0 rgba(16, 22, 26, 0.1);
    background-color: var(--bp-dark-gray2);
}

div.vision-settings-mainPanel .vision-settings-swatch .swatchColor {
    width: 16px;
    height: 16px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
    margin-right: 10px;
}

div.vision-settings-mainPanel .vision-settings-swatch.bp6-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.vision-settings-popover-nopadding .bp6-popover-content {
    padding: 0 !important;
}

div.vision-settings-mainPanel label.bp6-label.vision-settings-colorPickDiv {
    margin-bottom: 5px;
    height: 30px;
    display: flex;
}

div.vision-settings-mainPanel span.vision-settings-colorPickLable {
    width: 250px;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Поле ввода числа начинается сразу за подписью, как образец цвета: Blueprint сдвигает поле в однострочной подписи вправо */

div.vision-settings-mainPanel label.bp6-label.vision-settings-colorPickDiv .bp6-numeric-input, div.vision-settings-mainPanel label.bp6-label.vision-settings-colorPickDiv .bp6-numeric-input .bp6-input-group {
    margin-left: 0;
}

div.vision-settings-mainPanel div.archive-settings div.checkbox-quote {
    margin-left: 26px;
}

div.archive-settings-schedule-rule > div > label, div.archive-settings-schedule-rule > div > div, div.archive-settings-rule-row > label, div.archive-settings-rule-row > div {
    margin-right: 10px;
    margin-bottom: 10px;
}

div.archive-settings-schedule-rule > div > label, div.archive-settings-rule-row > label {
    display: inline-block;
    line-height: 30px;
    vertical-align: bottom;
}

/* Строка действия правила случаев: элементы переносятся, как в строке правила проб, а отступ снизу дают сами элементы */

div.archive-settings-schedule-rule div.archive-settings-rule-row {
    display: inline-flex;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.archive-settings-schedule-rule-hr {
    margin: 0 0 21px;
    border: none;
    height: 1px;
    background-color: rgba(128, 128, 128, 0.23);
}

.archive-settings-button {
    background: #ffffff !important;
    box-shadow: none !important;
}

.bp6-dark .archive-settings-button {
    background: var(--bp-dark-gray3) !important;
}

.archive-settings-button .bp6-icon-caret-up {
    margin-top: 2px !important;
}

div.vision-settings-mainPanel div.archive-settings select.bp6-input {
    margin-left: 0;
}

div.vision-settings-mainPanel div.archive-settings .bp6-inline, .bp6-numeric-input, .bp6-input-group {

    /* display: inline-flex; */
    vertical-align: top;
    white-space: nowrap;
}

.archive-settings-numeric-input {
    display: inline-flex;
    vertical-align: bottom;
}

.archive-settings-numeric-input .bp6-input-group {
    margin-right: 0 !important;
}

div.vision-settings-mainPanel div.archive-settings .bp6-input-group {
    width: 36px;
}

div.vision-settings-mainPanel div.archive-settings div.inline {
    white-space: nowrap;
    margin-bottom: 8px;
}

div.vision-settings-mainPanel div.archive-settings div.inline span.inline-text {
    vertical-align: top;
    line-height: 30px;
}

div.vision-settings-mainPanel div.archive-settings div.inline .space-after {
    margin-right: 16px;
}

div.vision-settings-mainPanel .checkBox {
    margin-bottom: 20px;
}

div.vision-settings-mainPanel div.archive-settings .checkBox {
    margin-bottom: 12px;
}

div.vision-settings-mainPanel div.archive-settings div.no-bottom .checkBox {
    margin-bottom: 0 !important;
}

div.vision-settings-mainPanel .checkBox:last-child {
    margin-bottom: 0;
}

div.vision-settings-mainPanel div.atlas-settings .bp6-html-select {
    width: 220px;
}

div.vision-settings-mainPanel div.select-panel {
    margin-top: 10px;
}

div.archive-settings-schedule-rule {
    display: grid;
    grid-template-columns: auto 90px;
}

/* Условия правила случаев: подпись в колонке постоянной ширины, кнопка выбора и перечисление выбранного */

div.archive-settings-conditions > label {
    display: block;
    line-height: 30px;
    margin-bottom: 4px;
}

div.archive-settings-condition {
    display: grid;
    grid-template-columns: 240px 30px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    margin-bottom: 4px;
}

div.archive-settings-condition > span.archive-settings-condition-values {
    overflow-wrap: anywhere;
}

div.archive-settings-icdPicker {
    width: 420px;
    padding: 10px;
}

div.archive-settings-icdCodes {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

div.vision-settings-mainPanel div.select-panel .bp6-select {
    margin-bottom: 0;
    height: 30px;
}

div.vision-settings-mainPanel div.select-panel .bp6-inline {
    white-space: nowrap;
}

.vision-settings-mainPanel .settings-group .vision-logo-picker {
    margin-bottom: 20px;
}

.vision-settings-mainPanel .settings-group .vision-logo-picker .logoImage {
    max-height: 75px;
    max-width: 175px;
    box-shadow: 0 0 2px 1px #a0a0a0;
}

.vision-settings-collapse .bp6-collapse-body {
    padding-top: 10px;
}

.vision-settings-collapse .bp6-collapse-body:last-child {
    padding-bottom: 10px;
}

.vision-reportSettings-logo-leftColumn {
    vertical-align: top;
    display: inline-block;
}

.vision-reportSettings-logo-rightColumn {
    vertical-align: top;
    display: inline-block;
    width: calc(100% - 470px);
    height: 100%;
}

.vision-reportSettings-logo-button {
    justify-content: flex-start;
    margin-left: 20px;
    margin-bottom: 10px;
    width: 170px;
    height: 30px;
}

.bp6-label .bp6-inline {
    display: inline-block;
}

.bp6-numeric-input .bp6-button-group {
    min-height: 30px;
}

.vision-reset-settings{
    display: flex;
}

.vision-reset-settings > span{
    flex: 0;
    margin-right: 20px;
}

div.vision-settings-mainPanel div.panel div.settings-group label.bp6-label.settings-inline-row {
    display: flex;
    align-items: center;
    gap: 10px;
    height: auto;
    min-height: 30px;
}

div.vision-settings-mainPanel div.panel div.settings-group .settings-inline-label {
    white-space: normal;
}

/* Подпись над полем: поле занимает свою строку под текстом подписи */

div.vision-settings-mainPanel div.panel div.settings-group label.bp6-label.settings-stacked-label {
    display: block;
    height: auto;
    margin-bottom: 15px;
}

div.vision-settings-mainPanel div.panel div.settings-group label.bp6-label.settings-stacked-label:last-child {
    margin-bottom: 0;
}

div.vision-settings-mainPanel div.panel div.settings-group label.bp6-label.settings-stacked-label .bp6-html-select {
    display: block;
    margin-top: 5px;
}

div.vision-settings-mainPanel div.panel.patient-import-settings .bp6-html-select {
    width: 100%;
    max-width: 520px;
}

div.vision-settings-mainPanel div.panel div.settings-group .settings-divider {
    border-top: 1px solid rgba(128, 128, 128, 0.23);
    margin: 15px 0;
}
.bp6-dark .vision-sketch-color-picker {
    --sketch-background: var(--bp-dark-gray4) !important;
    --sketch-swatch-border-top: 1px solid var(--bp-dark-gray5) !important;
    --sketch-swatch-box-shadow: rgba(255, 255, 255, 0.25) 0 0 0 1px inset !important;
}

.bp6-dark .vision-sketch-color-picker .w-color-editable-input {
    --editable-input-label-color: var(--bp-light-gray5) !important;
    --editable-input-color: var(--bp-light-gray5) !important;
    --editable-input-box-shadow: var(--bp-dark-gray5) 0 0 0 1px inset !important;
}

div.image-quality-select-panel select{
    margin-left: 0 !important;
    width: 500px;
}
.vision-collapsibleBlock {
    margin-top: 8px;
    display: inline-block;
    cursor: default;
    width: 100%;
}

div.vision-collapsibleBlock .animated::before {
    transition: transform ease 0.25s;
    position: relative;
    top: 2px;
    height: fit-content;
}

div.vision-collapsibleBlock .ccw::before {
    transform: rotate(-90deg);
    display: inline-block;
    top: 1px;
}

div.vision-collapsibleBlock > p.fitsLabel {
    width: fit-content;
}

div.vision-collapsibleBlock > p.bp6-icon-caret-down {
    font-weight: bold;
    font-family: "blueprint-icons-16", -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Open Sans", "Helvetica Neue", sans-serif;
}

/*
 * Заголовок-элемент стоит в одной строке со значком раскрытия блока, поэтому он строчный и уже на ширину значка.
 * Текст заголовка и подпись мельче его выравниваются по базовой линии, а не по центру: иначе подпись стоит выше заголовка
 */

.vision-collapsibleBlock-header {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    width: calc(100% - 16px);
    vertical-align: baseline;
}

/*
 * Блок без содержимого: значка раскрытия нет. Заголовок-элемент шире на ширину значка (1em),
 * чтобы его правый край стоял там же, где у блока со значком
 */

div.vision-collapsibleBlock > p.noExpander::before {
    content: none;
}

div.vision-collapsibleBlock > p.noExpander > .vision-collapsibleBlock-header {
    width: calc(100% - 16px + 1em);
}

.vision-collapsibleBlock-header .vision-collapsibleBlock-meta {
    color: #5f6b7c;
    font-weight: normal;
    font-size: 12px;
}

.bp6-dark .vision-collapsibleBlock-header .vision-collapsibleBlock-meta {
    color: var(--bp-gray4);
}

.vision-collapsibleBlock-header .vision-collapsibleBlock-tools {
    align-self: center;
    margin-left: auto;
    display: flex;
    gap: 6px;
}
div.settings-panel span {
    width: 240px;
    vertical-align: middle;
}

div.settings-panel textarea {
    width: 400px;
    resize: none;
    margin-top: 15px;
    margin-left: 13px;
    background: #f6f6f6;
}

div.div-report-settings-remove-the-margin-mount {
    margin-top: -15px;
}

.checkbox-inner-margin {
    margin-left: 30px;
}

hr.grey-line {
    border: none;
    height: 1px;
    margin-bottom: 20px;
    margin-top: 20px;
    background-color: rgba(128, 128, 128, 0.23);
}

@media screen and (width <= 1164.64px) {

    div.settings-panel textarea {
        margin-top: -3px;
        margin-left: 13px;
    }

    div.div-report-settings-remove-the-margin-mount {
        margin-top: -6px;
    }

    div.div-report-settings-remove-the-margin-mount+div {
        margin-top: 10px;
        margin-bottom: 12px;
    }

    div.settings-panel div.div-additional-media-formatting>span {
        margin-left: 13px;
    }

    div.settings-panel div.div-additional-media-formatting+div>span {
        margin-left: 13px;
    }
}
div.inputText-span-reportSettings {
    width: 100%;
    display: block;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 15px;
}

div.inputText-span-reportSettings > span {
    resize: none;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    text-align: left;
    vertical-align: middle;
    display: inline-block;
}

div.inputText-span-reportSettings > input {
    width: 400px;
    max-width: 100%;
    font-size: 13px;
    display: inline;
    background: #f6f6f6;
    margin-left: 3px;
    overflow-wrap: break-word;
    word-break: break-all;
}

@media screen and (width <= 1164.64px) {

    div.inputText-span-reportSettings {
        margin-left: 10px;
        margin-top: 7px;
    }

    div.inputText-span-reportSettings > span {
        margin-left: 4px;
    }
}
.vision-icdSuggest-item {
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 8px;
}

.vision-icdSuggest-code {
    font-family: monospace;
    font-weight: 500;
}

/* Список подсказок справочника прокручивается, а не растёт на всю его длину */

.vision-icdSuggest-popover .bp6-menu {
    max-height: 300px;
    overflow-y: auto;
}

.confirm-dialog-sizing {
    width: 300px;
    min-height: 125px;
    padding: 15px;
    background-color: white;
}

.popup-confirm-dialog-sizing {
    width: 260px;
    min-height: 85px;
}

.confirm-form-buttons {
    text-align: right;
}

.confirm-form-buttons > button {
    min-width: 80px;
    height: 30px;
    margin: 0 0 10px 10px;
}

.confirm-form-buttons > button:focus {
    outline: rgba(45, 114, 210, 0.6) solid 2px;
    outline-offset: 2px;
}

.bp6-popover-content-sizing.bp6-popover-content-padding .bp6-popover-content {
    padding: 15px;
}

p.confirm-form-info {
    margin-bottom: 15px;
    word-break: break-word;
}

.bp6-dialog .confirm-form-info {
    padding-left: 15px;
    padding-right: 15px;
}

.bp6-dialog .confirm-form-buttons {
    padding-right: 15px;
}

input.confirm-form-input {
    display: block;
    margin-bottom: 15px;
}
.vision-sampleLog .vision-sampleList-table .bp6-table-body-cells .bp6-table-cell {
    cursor: default;
}

.vision-genome-page {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.vision-genome-banner {
    flex: none;
    margin: 8px 12px 0;
}

.vision-genome-columns {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    gap: 12px;
    padding: 12px;
    overflow: hidden;
}

.vision-genome-column {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(17, 20, 24, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.bp6-dark .vision-genome-column {
    border-color: rgba(255, 255, 255, 0.2);
}

.vision-genome-column-karyogram {
    flex: 1 1 32%;
    min-width: 260px;
}

.vision-genome-column-idiogram {
    flex: 1 1 40%;
    min-width: 320px;
}

.vision-genome-column-parameters {
    flex: 1 1 28%;
    min-width: 260px;
}

.vision-genome-columnTitle {
    flex: none;
    padding: 10px 12px;
    font-weight: 600;
}

.vision-genome-columnBody {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 12px;
}

/* Панель параметров подстраивается под ширину колонки и не даёт горизонтальной прокрутки */

.vision-genome-column-parameters .vision-genome-columnBody {
    overflow-x: hidden;
}

.vision-genome-actions {
    flex: none;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 0 12px 12px;
}

/* Выбор профиля: остаётся на месте при прокрутке шаблона */

.vision-genome-profile {
    flex: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 12px 10px;
}

.vision-genome-profileLabel {
    flex: none;
}

/* Шаблон кариограммы */

.vision-genome-karyogram {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: min-content;
}

.vision-genome-karyogramRow {
    display: flex;
    align-items: stretch;
    gap: 8px;
    min-height: 44px;
    padding: 2px;
    border: 1px dashed transparent;
    border-radius: 4px;
}

/* Ряд, в который попадёт перетаскиваемая хромосома */

.vision-genome-karyogramRow.target {
    border-color: #2d72d2;
    background: rgba(45, 114, 210, 0.08);
}

.vision-genome-chromosome {
    width: 48px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(17, 20, 24, 0.15);
    border-radius: 3px;
    background: rgba(143, 153, 168, 0.15);
    cursor: pointer;
    user-select: none;
}

.bp6-dark .vision-genome-chromosome {
    border-color: rgba(255, 255, 255, 0.2);
}

.vision-genome-chromosome.selected {
    background: rgba(143, 153, 168, 0.4);
    font-weight: bold;
}

/* Перетаскиваемая хромосома остаётся на месте, но помечается */

.vision-genome-chromosome.dragging {
    opacity: 0.5;
    border-style: dashed;
    border-color: #2d72d2;
}

/* Место, куда встанет перетаскиваемая хромосома */

.vision-genome-dropMarker {
    width: 3px;
    align-self: stretch;
    border-radius: 2px;
    background: transparent;
}

.vision-genome-dropMarker.active {
    background: #2d72d2;
}

.vision-genome-chromosome.readonly {
    cursor: default;
}

/* Идиограмма */

.vision-genome-idiogram {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

.vision-genome-toolbar {
    flex: none;
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
}

.vision-genome-scale {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 320px;
    margin-left: auto;
}

.vision-genome-scaleSlider {
    flex: 1 1 auto;
    margin: 2px 0 0 4px;
}

.bp6-dark .vision-genome-scaleSlider .bp6-slider-progress:not(.bp6-intent-primary) {
    background: rgba(255, 255, 255, 0.2);
}

.vision-genome-canvasArea {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

.vision-genome-canvasScroll {
    flex: 0 0 auto;
    width: 14px;
    overflow-y: scroll;
}

.vision-genome-canvas {
    cursor: default;
}

.vision-genome-canvas .boundary {
    cursor: row-resize;
}

.vision-genome-canvas .label {
    fill: currentcolor;
    font-size: 11px;
    user-select: none;
    dominant-baseline: middle;
    text-anchor: middle;
}

.vision-genome-canvas .rulerLabel {
    text-anchor: end;
}

.vision-genome-canvas .barPaper {
    fill: #ffffff;
}

.vision-genome-canvas .barInk {
    color: #111418;
}

/* Подсказка с названием уровня у курсора. Обводка цветом фона отделяет её от линий под ней. */

.vision-genome-canvas .levelHint {
    fill: currentcolor;
    font-size: 11px;
    user-select: none;
    dominant-baseline: middle;
    paint-order: stroke;
    stroke: #ffffff;
    stroke-width: 3px;
    stroke-linejoin: round;
}

.bp6-dark .vision-genome-canvas .levelHint {
    stroke: #2f343c;
}

.vision-genome-parametersGroup {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vision-genome-parametersGroup+.vision-genome-parametersGroup {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(17, 20, 24, 0.15);
}

.bp6-dark .vision-genome-parametersGroup+.vision-genome-parametersGroup {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.vision-genome-parametersTitle {
    font-weight: 600;
}

.vision-genome-parameterRow {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vision-genome-parameterLabel {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
}

.vision-genome-parameterValue {
    flex: none;
    width: 120px;
}

.vision-genome-parameterValue .bp6-control-group {
    width: 100%;
}

.vision-genome-parameterValue .bp6-input-group {
    flex: 1 1 auto;
    min-width: 0;
}

.vision-genome-parameterValue .bp6-input {
    width: 100%;
    min-width: 0;
}

.vision-genome-palette {
    display: grid;
    grid-template-columns: repeat(4, 40px);
    gap: 8px;
}

.vision-genome-paletteItem {
    width: 40px;
    height: 34px;
    border: 1px solid rgba(17, 20, 24, 0.4);
    border-radius: 2px;
    padding: 0;
    background: #ffffff;
    color: #111418;
    cursor: pointer;
}

.vision-genome-paletteFill {
    display: block;
    width: 100%;
    height: 100%;
}

.vision-genome-paletteItem.selected {
    outline: 2px solid #2d72d2;
    outline-offset: 1px;
}
.loading-panel {
    position: absolute;
    right: 0;
    background-color: #ffffff;
    width: 50px;
    height: 20px;
    z-index: 3;
    opacity: 0;
    transition: opacity ease 1s;
    pointer-events: none;
}

.bp6-dark .loading-panel {
    background-color: var(--bp-dark-gray3);
}

.loading-panel .progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
    height: 100%;
}

.loading-panel .progress .pane {
    padding: 4px 0 0;
}

.loading-panel .progress .pane .item {
    opacity: 1;
    transition: opacity ease 1s;
    display: inline-block;
    margin: 1px;
    border-radius: 50%;
    width: 12px;
    height: 12px;
}
.vision-patientCard-dialog {
    width: min(820px, calc(100vw - 40px));
}

.vision-attachPatient-dialog {
    width: min(960px, calc(100vw - 40px));
}

.vision-patientCard-dialog .bp6-dialog-footer-actions button, .vision-attachPatient-dialog .bp6-dialog-footer-actions button {
    min-width: 100px;
}

.vision-patientCard-sectionTitle {
    margin-bottom: 6px;
}

.vision-patientCard-panel {
    padding: 12px 16px 0;
    margin-bottom: 12px;
    border: 1px solid rgba(17, 20, 24, 0.15);
    border-radius: 4px;
}

.bp6-dark .vision-patientCard-panel {
    border-color: rgba(255, 255, 255, 0.2);
}

.vision-patientCard-columns {
    display: flex;
    gap: 16px;
}

.vision-patientCard-columns > div {
    flex: 1 1 0;
    min-width: 0;
}

.vision-patientCard-tabs .bp6-tab-panel {
    margin-top: 10px;
}

/* Щелчок мышью по вкладке не оставляет на ней рамку фокуса: приложение не прячет рамки через FocusStyleManager,
   а рамка клавиатурного фокуса остаётся */

.vision-patientCard-dialog .bp6-tab:focus:not(:focus-visible), .vision-attachPatient-dialog .bp6-tab:focus:not(:focus-visible) {
    outline: none;
}

.vision-patientCard-tabs .vision-patientCard-panel {
    margin-bottom: 0;
}

.vision-patientCard-tabs .bp6-text-area {
    margin-bottom: 12px;
}

.vision-attachPatient-filters {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    margin-bottom: 10px;
}

.vision-attachPatient-filters > .bp6-form-group {
    flex: 1 1 0;
    margin-bottom: 0;
}

.vision-attachPatient-filterButtons {
    display: flex;
    gap: 6px;
}

/* Таблица Blueprint растёт по содержимому, пока её обёртка не ограничена по высоте: ограничивается здесь, а строки прокручиваются внутри */

.vision-attachPatient-table {
    height: 300px;
    overflow: hidden;
}

.vision-attachPatient-table .visionDataTable {
    box-sizing: border-box;
    height: 100%;
    width: 100%;
    max-height: 100%;
    max-width: 100%;
}

.vision-attachPatient-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.vision-attachPatient-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #5f6b7c;
}

.bp6-dark .vision-attachPatient-hint {
    color: var(--bp-gray4);
}

.vision-attachPatient-footer .bp6-dialog-footer-actions {
    margin-left: auto;
}

.vision-sample-ds-column {
    vertical-align: top;
    display: inline-block;
    width: 360px;
    height: 100%;
    padding: 10px 20px;
    background-color: #ffffff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-right: 20px;
}

.vision-sample-ds-innerColumn {
    width: calc(100% + 17px);
    height: 100%;
    overflow-y: scroll;
}

.vision-sample-ds-columnRight {
    vertical-align: top;
    display: inline-block;
    width: calc(100% - 420px);
    height: 100%;
    margin-right: 20px;
}

.vision-sample-ds-columnRight.expanded {
    width: calc(100% - 40px);
}

/* Препарат репозитория случаев: скан во всю рабочую область, поверх него подпись препарата */

.vision-ds-caseSlide {
    position: relative;
    width: 100%;
    height: 100%;
}

.vision-controls-markerSmall .vision-controls-marker-button {
    height: 30px;
    width: 30px;
    padding-top: 5px;
}

.vision-controls-markerSmall a.vision-controls-marker-buttonSmall {
    height: 30px;
    width: 18px;
    min-width: 18px;
    line-height: 30px;
}

.vision-controls-markerSmall .vision-controls-markerContainer {
    width: 18px;
    height: 18px;
    margin: 4px;
    cursor: pointer;
    position: relative;
}

.vision-controls-markerSmall .vision-controls-markerContainerButton {
    width: 18px;
    height: 18px;
    position: relative;
}

.vision-controls-markerSmall .vision-controls-marker:before {
    display: block;
    content: "";
    position: absolute;
    border-left: 18px solid transparent;
    border-top: 18px solid rgba(0, 0, 0, 0.6);
}

.vision-controls-markerSmall .vision-controls-marker::after {
    display: block;
    content: "";
    position: absolute;
    border-left: 15px solid transparent;
    top: 1px;
    right: 1px;
}

.vision-controls-markerSmall .vision-controls-marker-blue::after {
    border-top: 15px solid #2471c3;
}

.vision-controls-markerSmall .vision-controls-marker-green::after {
    border-top: 15px solid #23b023;
}

.vision-controls-markerSmall .vision-controls-marker-red::after {
    border-top: 15px solid #df2323;
}

.vision-controls-markerSmall .vision-controls-marker-yellow::after {
    border-top: 15px solid #e2c606;
}

.vision-controls-markerSmall .vision-controls-marker-purple::after {
    border-top: 15px solid #c92ece;
}

.vision-controls-markerSmall .vision-controls-marker-gray::after {
    border-top: 15px solid #adb4b7;
}

/* big */

.vision-controls-marker-button {
    height: 40px;
    width: 40px;
}

a.vision-controls-marker-buttonSmall {
    height: 40px;
    width: 20px;
    min-width: 20px;
    line-height: 40px;
}

ul.vision-controls-markerMenu {
    min-width: 20px;
}

.vision-controls-invisible {
    display: none;
}

.vision-controls-downloadButton {
    width: 40px;
    padding-left: 12px;
}

.vision-controls-markerContainer {
    width: 18px;
    height: 18px;
    margin: 6px;
    cursor: pointer;
    position: relative;
}

.vision-controls-markerContainerButton {
    margin-top: 1px;
    width: 18px;
    height: 18px;
    position: relative;
}

.vision-controls-markerContainer:hover {
    background-color: rgba(167, 182, 194, 0.3);
}

.vision-controls-marker:before {
    display: block;
    content: "";
    position: absolute;
    border-left: 18px solid transparent;
    border-top: 18px solid rgba(0, 0, 0, 0.6);
}

.vision-controls-marker::after {
    display: block;
    content: "";
    position: absolute;
    border-left: 15px solid transparent;
    top: 1px;
    right: 1px;
}

.vision-controls-marker-blue::after {
    border-top: 15px solid #2471c3;
}

.vision-controls-marker-green::after {
    border-top: 15px solid #23b023;
}

.vision-controls-marker-red::after {
    border-top: 15px solid #df2323;
}

.vision-controls-marker-yellow::after {
    border-top: 15px solid #e2c606;
}

.vision-controls-marker-purple::after {
    border-top: 15px solid #c92ece;
}

.vision-controls-marker-gray::after {
    border-top: 15px solid #adb4b7;
}

.vision-controls-sliderDiv {
    display: inline-block;
    margin-left: 20px;
    height: 40px;
    padding-top: 12px;
}

.vision-controls-topAlign {
    vertical-align: top;
}

.vision-cellColorPicker-portal > .bp6-overlay > .bp6-popover-transition-container {
    left: 425px !important;
}

.vision-controls-cellColorPicker {
    height: 30px;
    width: 10px;
}

.vision-controls-disabledImg {
    opacity: 0.6;
}

.vision-labelTooltip-blank {
    background: white;
    box-shadow: 0 0 18px 1px #a0a0a0;
    border-radius: 4px;
    padding: 6px;
}

.bp6-dark .vision-labelTooltip-blank {
    background: var(--bp-dark-gray5);
}

.vision-labelTooltip-blank:focus {
    outline: none;
}

/* Zoom control */

.vision-controls-zoomInput {
    display: inline-block;
    vertical-align: top;
}

.vision-controls-zoomInput button {
    width: 96px;
}

.vision-logo-picker .logoLabel {
    width: 220px;
    justify-content: flex-start;
}
.vision-sample-customAttr-folderInside {
    padding-left: 9px;
}

.vision-sample-customAttr-radio {
    margin-top: 1px;
    margin-bottom: 5px;
    text-overflow: ellipsis;
    overflow: hidden;
    line-height: 1.1;
}

.vision-sample-customAttr-radio input[type="checkbox"]:focus + span, .vision-sample-customAttr-radio input[type="radio"]:focus + span, .custom-attr-radio input[type="radio"]:focus + span {
    outline: none !important;
    outline-offset: 0 !important;
}

.vision-sample-customAttr-labelRadio {
    text-align: left;
}

.vision-sample-customAttr-checkBoxDiv {
    text-align: left;
    padding-top: 2px;
    width: 100%;
    overflow: hidden;
    display: grid;
    justify-content: start;
    justify-items: start;
}

.vision-sample-customAttr-labelRadio .bp6-label {
    display: block;
    vertical-align: top;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 100%;
    margin-bottom: 5px;
}

.vision-sample-customAttr-alert {
    display: block;
    vertical-align: top;
    text-overflow: ellipsis;
    white-space: normal;
    overflow: hidden;
    width: 100%;
    margin-bottom: 5px;
    color: red;
    font-weight: bold;
    background: url(/images/Sample_Attention-Black_16x16.svg) no-repeat;
    padding-left: 20px;
}

.bp6-dark .vision-sample-customAttr-alert {
    color: var(--bp-red5);
    background: url(/images/Sample_Attention-Dark_16x16_dark.svg) no-repeat;
}

.vision-sample-customAttr-pointsTotal {
    position: absolute;
    right: 0;
    margin-right: 40px;
}

.vision-sample-customAttr-referenceText {
    padding-left: 10px;
    margin-bottom: 20px;
    font-weight: normal;
}

.vision-sample-customAttr-calcHeader {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: calc(100% - 130px);
    display: inline-block;
    vertical-align: top;
}

.vision-sample-customAttr-folder label.bp6-label .bp6-select select {
    width: 0;
}

.displacedDropdown select.vision-sample-oak-result-input {
    width: calc(180px - 32px) !important;
    min-width: calc(180px - 12px) !important;
    left: 12px;
    position: relative;
}

span.attr-info-block-row {
    line-height: 18px;
    display: block;
}

.custom-attr-info-block-icon {
    color: #5f6b7c;
    align-self: start;
    justify-self: center;
    margin: 0 5px;
}

.bp6-dark .custom-attr-info-block-icon {
    color: var(--bp-gray4);
}

.attr-grid {
    display: grid !important;
    grid-template-columns: 1fr 2fr 20px 20px;
    grid-template-rows: 1fr;
    gap: 0;
}

.attr-grid.without-info {
    grid-template-columns: 1fr 1fr 0 0;
}

.attr-input-icon {
    font-family: "blueprint-icons-16", -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Open Sans", "Helvetica Neue", sans-serif;
}

textarea.vision-sample-text-attr {
    padding: 6px 10px;
}

textarea.vision-sample-text-attr.bp6-text-area-auto-resize {
    resize: none;
    width: 100% !important;
}

.custom-attr-root {
    display: grid;
    grid-template-columns: 1fr repeat(3, auto);
}

.custom-attr-content {
    display: grid;
}

.custom-attr-input {
    padding: 10px;
    word-break: break-word;
}

.custom-attr-input input {
    width: 100% !important;
}

.custom-attr-ref-result {
    align-content: center;
}

.custom-attr-radio {
    display: flex;
    line-height: 1.1;
    margin-bottom: 5px;
}

.custom-attr-radio .bp6-control-indicator {
    top: 2px;
}

.custom-attr-wordbreak {
    word-break: break-word;
    white-space: normal;
}

.custom-attr-hk {
    align-content: center;
    padding-top: 6px;
}

.custom-attr-hk input {
    width: 30px;
    height: 20px;
    position: relative;
    top: -3px;
}

.custom-attr-hk-tag {
    font-weight: bold;
    font-size: smaller;
    right: 5px;
    top: -2px;
}

.bp6-dark .custom-attr-hk-tag {
    background-color: var(--bp-gray4);
}

.custom-attr-input .readOnly {
    cursor: default;
}

.bp6-dark .custom-attr-input .readOnly {
    box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.25);
}

.custom-attr-row-fill {
    width: 100%;
}
.template-editor, .template-data-editor {
    box-sizing: border-box;
    max-height: calc(100dvh - 70px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.template-editor {
    width: min(900px, calc(100vw - 40px));
    min-height: min(600px, calc(100dvh - 70px));
    --template-filter-max-height: max(40px, calc(100dvh - 70px - 470px));
    --key-filter-height: 40px;
    --table-min-height: clamp(180px, 35dvh, 250px);
}

.template-data-editor {
    width: min(760px, calc(100vw - 40px));
    --template-filter-max-height: max(40px, calc(100dvh - 70px - 190px));
    --key-filter-height: 40px;
}

.template-editor-body, .template-data-editor-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.template-editor label, .template-data-editor label {
    flex: 0 0 auto;
    margin-bottom: 5px;
}

.template-editor-body button, .template-data-editor-body button {
    min-width: 100px;
}

.input-group {
    display: flex;
    gap: 10px;
    min-width: 0;
}

.input-group-filter {
    flex: 0 0 auto;
    align-items: flex-start;
}

.input-group-textArea {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 760px;
}

.input-group-action {
    flex: 0 0 auto;
}

.template-editor-key-filter {
    flex: 0 0 auto;
    width: min(760px, 100%);
}

.template-editor-filter {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    margin-bottom: 5px;
    overflow: auto;
}

.template-editor-filter-template {
    max-height: var(--template-filter-max-height);
    resize: vertical;
}

.template-editor-filter-key {
    height: var(--key-filter-height);
    min-height: var(--key-filter-height);
    max-height: var(--key-filter-height);
    resize: none;
}

.input-group-table-row {
    flex: 1 1 400px;
    min-height: var(--table-min-height);
    margin-top: 5px;
    margin-bottom: 10px;
    overflow: hidden;
    align-items: stretch;
}

.input-group-table-row .input-group-table {
    position: relative;
    flex: 1 1 auto;
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    margin-bottom: 0;
    overflow: hidden;
}

/* Рамка таблицы цветом её сетки. Ячейки рисуют только свои правую и нижнюю линии, поэтому слева и сверху
   рамки нет, а правая линия последнего столбца уходит за край. Рамка лежит поверх таблицы и не занимает места */

.input-group-table-row .input-group-table::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 30;
    border: 1px solid rgba(17, 20, 24, 0.15);
    pointer-events: none;
}

.bp6-dark .input-group-table-row .input-group-table::after {
    border-color: rgba(17, 20, 24, 0.4);
}

/* Текст ячейки отступает от линий сетки сверху и снизу. Сумма полей должна совпадать с rowMetrics.verticalPadding
   в TemplateEditorDialog.tsx: по нему считается высота строки, иначе последняя строка текста ляжет на линию */

.template-editor .template-editor-cell {
    padding-top: 6px;
    padding-bottom: 6px;
}

.input-group-table-row .buttons {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.input-group-table-row .buttons .order-control {
    display: flex;
    gap: 10px;
}

.input-group-table-row .buttons .order-control button {
    min-width: 30px;
}

.footer-buttons {
    flex: 0 0 auto;
    justify-content: flex-end;
    display: flex;
    gap: 10px;
}

.template-data-editor .footer-buttons button {
    margin-top: 5px;
}

.template-editor .input-group .input-group-table .bp6-table-quadrant, .template-editor .input-group .input-group-table .bp6-table-quadrant-main, .template-editor .input-group .input-group-table .bp6-table-quadrant-stack, .template-editor .input-group .input-group-table .bp6-table-quadrant-scroll-container, .template-editor .input-group .input-group-table .bp6-table-scroll-container {
    max-width: 100%;
    overflow-x: hidden !important;
}
.vision-sample-textArea-hint-item div {
    white-space: pre-line;
}

.vision-sample-textArea-line {
    position: relative;
}

.vision-sample-textArea-marker {
    position: absolute;
    right: 0;
    bottom: 100%;
    z-index: 1;
    margin-bottom: 2px;
    padding: 0 6px;
    border-radius: 3px;
    color: #ffffff;
    font-size: 11px;
    line-height: 17px;
    white-space: nowrap;
    pointer-events: none;
}
div.cellgallery {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    cursor: default;
    background-color: #ffffff;
}

.bp6-dark div.cellgallery {
    background-color: var(--bp-black);
}

div.cellgallery div.cellgallery {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

div.cellgallery div.part {
    display: inline-block;
    width: 50px;
    height: 50px;
    border: 1px solid black;
    margin: 4px;
    padding: 0;
}

div.cellgallery div.scroll-helper {
    display: inline-block;
    width: 0;
}

div.cellgallery div.thumbnail {
    position: absolute;
    display: inline-block;
    border: 1px solid #d8d6d7;
    color: #182026;
    overflow: hidden;
    text-overflow: ellipsis;
    font: normal 13px Arial, Verdana;
    padding: 2px;
    text-shadow: -1px -1px 1px #ffffff, 0 -1px 1px #ffffff, 1px -1px 1px #ffffff, -1px 0 1px #ffffff, 1px 0 1px #ffffff, -1px 1px 1px #ffffff, 0 1px 1px #ffffff, 1px 1px 1px #ffffff;
    z-index: 1;
}

.bp6-dark div.cellgallery div.thumbnail {
    border: 1px solid var(--bp-dark-gray5);
}

div.cellgallery div.selected {
    border: 1px solid #3399ff;
    box-shadow: inset #3399ff 0 0 2px 1px;
}

div.cellgallery div.focused {
    box-shadow: inset 0 0 1px 0 rgba(0, 0, 0, 0.75);
}

div.cellgallery div.selected.focused {
    box-shadow: inset #3399ff 0 0 2px 1px, inset 0 0 8px 0 rgba(0, 0, 0, 0.75);
}

div.cellgallery div.fixeader {
    position: absolute;
    display: inline-block;
    overflow: visible;
    z-index: 3;
    max-width: calc(100% - var(--scrollbar-width, 0px));
}

div.cellgallery .fixeader div.header {
    border-top: 0;
}

div.cellgallery div.header {
    position: absolute;
    display: inline-block;
    border-top: 1px solid #c9ced2;
    border-bottom: 1px solid #c9ced2;
    background-color: #eaeff3;
    color: #5d707f;
    font: normal 13px Arial, Verdana;
    padding: 2px 10px 0;
    z-index: 10;
}

.bp6-dark div.cellgallery div.header {
    border-top: 1px solid var(--bp-gray1);
    border-bottom: 1px solid var(--bp-gray1);
    color: var(--bp-light-gray5);
    background-color: var(--bp-dark-gray3);
}

div .cellgallery div.group {
    position: absolute;
    display: inline-block;
    background-color: #ffffff;
    color: #808080;
    font: normal 13px Arial, Verdana;
    padding: 17px 0 0 10px;
    z-index: 0;
}

.bp6-dark div .cellgallery div.group {
    background-color: var(--bp-black);
    color: var(--bp-light-gray5);
}

div.cellgallery div.group-selected {
    background-color: #deecf4 !important;
    border-bottom: 1px solid #137cbd;
}

.bp6-dark div.cellgallery div.group-selected {
    background-color: var(--bp-blue2) !important;
}

div.cellgallery div.header-selected {
    background-color: #b0dbf2 !important;
    border-top: 1px solid #137cbd;
    border-bottom: 1px solid #137cbd;
}

.bp6-dark div.cellgallery div.header-selected {
    background-color: var(--bp-blue3) !important;
}

div.cellgallery div.scrollbar {
    position: absolute;
    display: inline-block;
}

div.cellgallery div.marker {
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

div.cellgallery div.marker::before {
    right: 0;
    top: 0;
    display: block;
    content: "";
    position: absolute;
    border-left: 18px solid transparent;
    border-top: 18px solid rgba(0, 0, 0, 0.6);
    pointer-events: none;
}

div.cellgallery div.marker::after {
    display: block;
    content: "";
    position: absolute;
    border-style: solid;
    border-width: 15px 0 0 15px;
    top: 1px;
    right: 1px;
    pointer-events: none;
}

div.cellgallery div.marker-blue::after {
    border-color: #2471c3 transparent transparent;
}

div.cellgallery div.marker-green::after {
    border-color: #23b023 transparent transparent;
}

div.cellgallery div.marker-purple::after {
    border-color: #c92ece transparent transparent;
}

div.cellgallery div.marker-red::after {
    border-color: #df2323 transparent transparent;
}

div.cellgallery div.marker-yellow::after {
    border-color: #e2c606 transparent transparent;
}

div.cellgallery div.has-comment {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

div.cellgallery div.has-comment::before {
    left: 0;
    bottom: 0;
    display: block;
    content: "";
    position: absolute;
    border-left: 18px solid rgba(0, 0, 0, 0.6);
    border-top: 18px solid transparent;
    pointer-events: none;
}

div.cellgallery div.has-comment::after {
    display: block;
    content: "";
    position: absolute;
    border-left: 15px solid #bbbbbb;
    border-top: 15px solid transparent;
    bottom: 1px;
    left: 1px;
    pointer-events: none;
}

/* Каркас нескольких панелей галереи с общей прокруткой */

div.cellgallery div.cellgallery-split-scroll {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
}

div.cellgallery div.cellgallery-split-content {
    position: relative;
    width: 100%;
}

/* Ширина и положение панели задаются координатором в пикселях: доли процента дают пляшущее число колонок */

div.cellgallery div.cellgallery-pane {
    position: absolute;
    top: 0;
    height: 100%;
    overflow: hidden;
}

div.cellgallery div.cellgallery-fixeader-host {
    position: absolute;
    top: 0;
    z-index: 3;
    pointer-events: none;
}

/* Ширина панели уже посчитана без полосы прокрутки, вычитать её второй раз не нужно */

div.cellgallery div.cellgallery-fixeader-host div.fixeader {
    max-width: 100%;
    pointer-events: auto;
}

/* Разделитель вынесен из панелей: рамка у панели попала бы в её замеряемую ширину */

div.cellgallery div.cellgallery-split-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;

    /* Выше заголовка категории (10): панели и их содержимое своих контекстов наложения не создают,
       поэтому прокручиваемые заголовки конкурируют с разделителем напрямую */
    z-index: 11;
    background-color: #c9ced2;
    pointer-events: none;
}

.bp6-dark div.cellgallery div.cellgallery-split-divider {
    background-color: var(--bp-gray1);
}

/* Полоса приёма перетаскивания в атлас. Отдельный элемент, потому что прямоугольники целей
   замораживаются в начале перетаскивания, а панель растянута на всю высоту содержимого */

div.cellgallery div.cellgallery-atlas-droparea {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

div.cellgallery-drag-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
    cursor: grabbing;
}

/* Сброс в текущей точке недопустим */

div.cellgallery-drag-container.drop-not-allowed, div.cellgallery-drag-container.drop-not-allowed div.dragger {
    cursor: no-drop;
}

div.cellgallery-drag-container div.dragger {
    position: absolute;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    border: 1px solid #d8d6d7;
    background-color: #d8d6d7;
    color: #182026;
    font: normal 13px Arial, Verdana;
    text-shadow: -1px -1px 1px #ffffff, 0 -1px 1px #ffffff, 1px -1px 1px #ffffff, -1px 0 1px #ffffff, 1px 0 1px #ffffff, -1px 1px 1px #ffffff, 0 1px 1px #ffffff, 1px 1px 1px #ffffff;
    z-index: 9999;
    margin: 0;
    padding: 0;
    cursor: -webkit-grabbing;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.75);
    transition: transform 0.5s ease;
}

div.cellgallery.progress-bar {
    overflow: auto;
    width: calc(100% - 10px);
    height: 3px;
    top: 0;
    position: absolute;
    z-index: 10;
    background-color: transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
}

div.cellgallery.progress-bar div.progress {
    overflow: auto;
    height: inherit;
    top: 0;
    position: absolute;
    background-color: #137cbd;
}

div.cellgallery.progress-bar div.animate {
    transition: width 200ms ease;
}
.time .bp6-datepicker {
    display: none;
}

.time .bp6-popover .bp6-popover-arrow {
    display: none;
}

.time .bp6-timepicker-input-row {
    width: 100%;
}

.time .bp6-timepicker-input {
    text-align: left;
    padding: 10px;
    width: 100%;
}

.time .bp6-timepicker .bp6-timepicker-divider-text {
    width: 7px;
}

input.without-picker::-webkit-calendar-picker-indicator {
    display: none;
}
/* Выпадающий список вариантов значения: кнопка во всю ширину, пункт "не выбрано" приглушён */

.choice-select-button {
    justify-content: space-between;
}

.choice-select-button-empty .bp6-button-text {
    color: #5f6b7c;
}

.bp6-dark .choice-select-button-empty .bp6-button-text {
    color: var(--bp-gray4);
}

/* Короткое имя стоит по центру высоты, когда название переносится на вторую строку */

.choice-select-button .bp6-button-text {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    min-width: 0;
}

.choice-select-button .choice-select-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.choice-select-button .choice-select-label {
    flex: 0 0 auto;
    margin-left: 10px;
    color: #5f6b7c;
}

.bp6-dark .choice-select-button .choice-select-label {
    color: var(--bp-gray4);
}

/*
 * Длинный список вариантов не уходит за край экрана, а прокручивается. Высоты хватает на полный список окрасок
 * препаратов случая с пунктом "не задана", даже когда длинные названия переносятся на вторую строку
 */

.choice-select-popover .bp6-menu {
    max-height: min(460px, 70vh);
    overflow-y: auto;
}

.choice-select-popover .bp6-menu-item {
    align-items: center;
}

.vision-waiter-fieldset {
    margin: 0;
    padding: 0;
    border-width: 0;
}

.vision-waiter-fieldset > .vision-spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}
.responsible-dialog {
    width: 850px;
    min-height: 570px;
    padding-bottom: 10px;
}

.only-assign {
    width: 750px !important;
    height: 340px !important;
    min-height: unset;
}

.responsible-dialog>.bp6-dialog-body {
    height: 80%;
    display: grid;
    grid-template-rows: auto 1fr;
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 10px;
}

.section-button {
    margin-left: 10px;
    margin-right: 5px;
    width: 95px;
    height: 30px;
}

.only-assign .buttons {
    margin-right: 10px;
    width: 700px;
}

.responsible-dialog>.bp6-dialog-body div.buttons {
    text-align: right;
    margin-top: 20px;
}

.responsible-dialog>.bp6-dialog-body div.buttons>button {
    margin-left: 10px;
    min-width: 100px;
}

.bp6-table-container.responsibility-table {
    width: 700px !important;
}

.bp6-table-container.responsibility-table .bp6-table-cell {
    cursor: default;
    pointer-events: none;
}

.bp6-table-container.responsibility-table:focus {
    outline: none !important;
    box-shadow: 0 0 0 1px rgba(17, 20, 24, 0.15) !important;
}

.bp6-table-container.assignments-table {
    width: 700px !important;
}

.bp6-table-container.assignments-table .bp6-table-cell {
    cursor: default;
    pointer-events: none;
}

.bp6-table-container.assignments-table:focus {
    outline: none !important;
    box-shadow: 0 0 0 1px rgba(17, 20, 24, 0.15) !important;
}
.vision-sample-oak-result-columnRight {
    vertical-align: top;
    display: inline-block;
    width: calc(100% - 420px);
    height: 100%;
    overflow: hidden;
    margin-right: 20px;
    position: relative;
}

.vision-sample-oak-result-columnLeft {
    vertical-align: top;
    display: inline-block;
    width: 360px;
    margin-left: 20px;
    margin-right: 20px;
    height: 100%;
}

.vision-sample-oak-result-columnPadding {
    padding-left: 20px;
}

.vision-sample-oak-result-innerColumn {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 20px;
    background-color: #ffffff;
}

.bp6-dark .vision-sample-oak-result-innerColumn {
    background-color: var(--bp-black);
}

.vision-sample-oak-result-innerColumnHalf {
    display: inline-block;
    height: 100%;
    width: 50%;
    vertical-align: top;
}

.vision-sample-oak-innerColumnBorders {
    border-top: 1px solid #dbdcdd;
    border-bottom: 1px solid #dbdcdd;
    padding-bottom: 20px;
}

.bp6-dark .vision-sample-oak-innerColumnBorders {
    border-top: 1px solid var(--bp-gray1);
    border-bottom: 1px solid var(--bp-gray1);
}

.vision-sample-oak-result-textInput {
    text-align: left;
    margin-bottom: 5px !important;
    margin-right: 5px !important;
    display: flex;
}

.vision-sample-oak-result-responsible-textInput {
    text-align: left;
    height: 24px !important;
    margin-right: 5px !important;
    display: flex;
}

.vision-sample-oak-result-responsibleInput {
    text-align: left;
    margin-bottom: 10px !important;
    margin-right: 5px !important;
    grid-template-columns: 2fr auto 25px;
    display: grid;
}

.vision-sample-info-responsible-list {
    overflow: hidden;
    display: flex;
    padding-right: 10px;
    flex-direction: column;
    width: 155px;
}

.vision-sample-info-responsible-button .bp6-icon > svg {
    width: 16px;
    height: 16px;
}

.vision-template-button .bp6-icon > svg {
    width: 16px;
    height: 16px;
}

.vision-sample-oak-result-textInput > a {
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
    min-width: 157px;
    width: 140px;
    text-align: left;
}

label.bp6-label.bp6-inline input.vision-sample-oak-result-input, .vision-sample-oak-result-input {
    min-width: 157px;
    width: 140px;
    display: flex;
}

.vision-sampleView-workArea .bp6-table-selection-enabled .bp6-table-cell {
    cursor: default !important;
}

.bp6-table-selection-enabled .bp6-editable-text::before, .bp6-table-selection-enabled .bp6-editable-content{
    cursor: text !important;
}

.vision-sample-oak-result-input-readOnly {
    box-shadow: 0 0 0 0 #000000 !important;
    width: 180px !important;
    min-width: 180px !important;
    margin: 0 !important;
    cursor: default !important;
}

.vision-sample-customAttr-folder .vision-sample-oak-result-input-readOnly {
    box-shadow: 0 0 0 0 rgba(45, 114, 210, 0), 0 0 0 0 rgba(45, 114, 210, 0), inset 0 0 0 1px rgba(17, 20, 24, 0.2), inset 0 1px 1px rgba(17, 20, 24, 0.3) !important;
}

.bp6-dark .vision-sample-customAttr-folder .vision-sample-oak-result-input-readOnly {
    box-shadow: 0 0 0 0 rgba(76, 144, 240, 0), 0 0 0 0 rgba(76, 144, 240, 0), 0 0 0 0 rgba(76, 144, 240, 0), inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 -1px 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.vision-sample-oak-result-responsible-readOnly {
    box-shadow: 0 0 0 0 #000000 !important;
    max-width: 180px;
    height: 20px;
    margin: 0 !important;
    cursor: default !important;
    white-space: nowrap;
}

.vision-sample-oak-result-input-disabled {
    cursor: default !important;
}

.vision-sample-oak-result-input {
    width: 180px !important;
    min-width: 180px !important;
    border: none;
}

.bp6-dark .vision-sample-oak-result-input {
    background: var(--bp-black);
    box-shadow: 0 0 0 0 rgba(76, 144, 240, 0), 0 0 0 0 rgba(76, 144, 240, 0), 0 0 0 0 rgba(76, 144, 240, 0), inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 -1px 1px 0 rgba(255, 255, 255, 0.3);
}

.vision-sample-oak-result-input .bp6-input-action {
    pointer-events: none;
}

.vision-sample-oak-result-textInputLabel {
    float: left;
    padding-right: 6px;
    font-weight: normal;
    line-height: 29px;
    text-align: left;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.vision-sample-result-textInputLabel-fixed {
    display: inline-block;
    font-weight: normal;
    line-height: 30px;
    text-align: left;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.vision-sample-result-textInput-fixed {
    width: 400px;
}

.vision-sample-result-select {
    padding: 0 !important;
    line-height: 0 !important;
    width: 220px;
    background-color: #f6f7f9;
}

.vision-sample-result-select-color {
    padding: 0 !important;
    margin: 0 !important;
    line-height: 0px !important;
    width: 220px;
}

.vision-sample-oak-result-textInputLabel-bold {
    float: left;
    padding-right: 6px;
    text-align: left;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: calc(100% - 165px);
}

.vision-sample-oak-dropDownsDiv {
    margin-bottom: 20px;
}

.vision-sample-textArea-label {
    padding-right: 6px;
    font-weight: normal;
    line-height: 29px;
    padding-top: 1px;
    text-align: left;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;
    display: block;
}

.vision-sample-textArea-div {
    margin-bottom: 5px;
}

.vision-sample-textArea-area {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    min-height: 31px;
    line-height: 1.5;
    outline: none;
    border: none;
    border-radius: 3px;
    box-shadow: 0 0 0 0 rgba(19, 124, 189, 0), 0 0 0 0 rgba(19, 124, 189, 0), inset 0 0 0 1px rgba(16, 22, 26, 0.15), inset 0 1px 1px rgba(16, 22, 26, 0.2);
    background: #ffffff;
    padding: 5px 10px;
    vertical-align: middle;
    color: #182026;
    font-size: 14px;
    font-weight: normal;
    transition: box-shadow 100ms cubic-bezier(0.4, 1, 0.75, 0.9);
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    overflow: auto;
    resize: vertical;
}

.bp6-dark .vision-sample-textArea-area {
    background: var(--bp-black);
    color: var(--bp-light-gray5);
    box-shadow: 0 0 0 0 rgba(76, 144, 240, 0), 0 0 0 0 rgba(76, 144, 240, 0), 0 0 0 0 rgba(76, 144, 240, 0), inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 -1px 1px 0 rgba(255, 255, 255, 0.3);
}

.vision-sample-textArea-area.readOnly {
    box-shadow: 0 0 0 0 rgba(19, 124, 189, 0), 0 0 0 0 rgba(19, 124, 189, 0), inset 0 0 0 1px rgba(16, 22, 26, 0.05), inset 0 1px 1px rgba(16, 22, 26, 0.05);
}

.bp6-dark .vision-sample-textArea-area.readOnly {
    box-shadow: 0 0 0 0 rgba(19, 124, 189, 0), 0 0 0 0 rgba(19, 124, 189, 0), inset 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.vision-sample-textArea-line.with-template-buttons {
    display: flex;
    gap: 2.5px;
    height: 100%;
}

.vision-template-buttons {
    display: flex;
    flex-direction: column;
    outline: 0;
}

.bp6-select select::-ms-value {
    background: transparent;
    color: black;
}

label.bp6-label.vision-sample-oak-DateInput span.bp6-popover-wrapper {
    margin: 0;
}

div.bp6-table-container .animated::before {
    transition: transform ease 0.25s;
    position: relative;
    top: 1px;
}

div.bp6-table-container .ccw::before {
    transform: rotate(-90deg);
    display: inline-block;
    top: 0;
}

.vision-sample-textArea-hint {
    flex: auto;
}
.glassGallery-button {
    margin-right: 20px;
}

.vision-sampleview-toolbar {
    display: flex;
    height: 80px;
    width: 100%;
    padding-left: 20px;
    padding-top: 20px;
    padding-right: 20px;
    flex-flow: row;
    min-width: 800px;
}

.vision-toolbar-leftbar {
    order: 1;
    width: 390px;
    min-width: 390px;
    margin-right: 20px;
    height: 100%;
    display: inline-block;
    vertical-align: top;
    white-space: nowrap;
}

/* Без левой панели пробы выравнивать средний блок не по чему: левый блок сжимается до своих кнопок */

.vision-toolbar-leftbar.compact {
    width: auto;
    min-width: 0;
}

.vision-toolbar-middlebar {
    order: 2;
    height: 100%;
    display: inline-block;
    vertical-align: top;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    flex-grow: 1;
}

.vision-toolbar-rightbar {
    flex-grow: unset;
    order: 3;
    height: 100%;
    vertical-align: top;
    white-space: nowrap;
    flex-basis: 390px;
    display: flex;
    flex-flow: row;
}

.vision-toolbar-rightbar>.left-side {
    flex-grow: 1;
    order: 1;
}

.vision-toolbar-rightbar>.right-side {
    order: 2;
    text-align: right;
}

.vision-toolbar-rightbar>.left-side .bp6-button-group {
    margin-left: 0 !important;
    margin-right: 20px !important;
}

button.vision-toolbutton {
    height: 40px !important;
    width: 40px !important;
    padding: 8px;
    line-height: 0;
}

button.vision-toolbutton-active {
    height: 40px !important;
    width: 40px !important;
    background: #ced9e0 !important;
    padding: 8px;
    z-index: 10;
}

.bp6-dark button.vision-toolbutton-active {
    background: var(--bp-dark-gray1) !important;
}

/* Подсказка, стоящая в строке панели вне группы кнопок, прижимается к верху строки, как группы кнопок:
   по базовой линии строки кнопка внутри неё опускалась бы ниже соседних */

.vision-sampleMode-rightbar-button {
    vertical-align: top;
}

.vision-sampleMode-rightbar-button a {
    font-size: 16px;
    line-height: 40px;
    height: 40px;
}

/* Квадратная кнопка со значком. Значок ставится по центру выравниванием строки: боковые отступы кнопки
   Blueprint здесь убраны, иначе положение значка зависело бы от их величины */

.vision-sampleMode-buttons {
    line-height: 40px;
    height: 40px;
    width: 40px;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
    display: inline-block;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    cursor: pointer;
}

.menuField {
    overflow-y: scroll;
    height: 245px;
}

.menuItem-icon {
    margin-right: 4px;
}

.vision-toolbar-rightbar .vision-tooltip-popover {
    width: 40px;
    height: 40px;
}

.vision-toolbar-overflowOpacity {
    width: 40px;
    height: 40px;
    position: absolute;
    right: 0;
    top: 0;
}

.vision-toolbar-rightbar>.right-side> :first-child .bp6-button-group:first-of-type {
    margin-left: 0 !important;
}

#slideView-anchor-button .bp6-icon-eye-open {
    margin: 9px 1px;
}

#slideView-anchor-button::after {
    right: 2px !important;
}
.share-dialog-content .vision-tooltip-popover {
    width: 100%;
}

.share-dialog {
    user-select: none;
    width: min(600px, calc(100vw - 40px));
}

.share-dialog-content {
    max-height: 65vh;
    overflow-y: auto;
}

.share-section + .share-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--bp-gray5);
}

.bp6-dark .share-section + .share-section {
    border-top-color: var(--bp-dark-gray5);
}

.share-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.share-section-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bp-light-gray3);
    color: var(--bp-gray1);
}

.share-section-icon.active {
    background: var(--bp-blue5);
    color: var(--bp-blue1);
}

.bp6-dark .share-section-icon {
    background: var(--bp-dark-gray5);
    color: var(--bp-gray4);
}

.bp6-dark .share-section-icon.active {
    background: var(--bp-blue1);
    color: var(--bp-blue5);
}

.share-section-title {
    flex: 1;
    min-width: 0;
}

.share-section-title b, .share-section-title small {
    display: block;
}

.share-section-title small, .share-empty {
    color: var(--bp-gray1);
}

.bp6-dark .share-section-title small, .bp6-dark .share-empty {
    color: var(--bp-gray4);
}

.share-section-header .share-switch {
    margin: 0;
}

.share-section-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 12px;
}

.share-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.share-row > .bp6-input-group, .share-row > span {
    flex: 1;
    min-width: 0;
}

.share-text-button {
    min-width: 100px;
}

.share-url input {
    font-family: monospace;
}

.share-link {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 10px 12px;
    border: 1px solid var(--bp-gray5);
    border-radius: 3px;
}

.bp6-dark .share-link {
    border-color: var(--bp-dark-gray5);
}

.share-link-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-link-header > * {
    flex: none;
}

.share-link-header > .share-link-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: bold;
}

.share-link-header .vision-sampleList-menuWidth {
    width: auto;
}

.share-link-header .share-switch {
    margin: 0;
}

.share-link-content {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.share-link.off .share-link-content {
    opacity: 0.5;
    pointer-events: none;
}

.share-row .share-anonymize {
    flex: 1;
    margin: 6px 0 0;
}

.share-tag-menu {
    max-height: 300px;
    overflow-y: auto;
}

.share-tag-input input {
    width: auto !important;
}

.share-tag-input input.zero-width {
    width: 0 !important;
}

.share-error {
    color: red;
}

.bp6-dark .share-error {
    color: var(--bp-red5);
}

/* Участники случая: аватары на панели инструментов, список «Сейчас в случае», аватары на миниатюрах препаратов,
   указатели, следование и демонстрация */

/* Кнопки на панели инструментов отделены от соседей отступом слева, как группы кнопок панели: отступы соседних
   строчных элементов складываются, и отступ справа прибавлялся бы к отступу следующей группы */

.vision-case-participantsButton.bp6-button {
    margin-left: 20px;
}

.vision-case-participantsButton .bp6-button-text {
    display: flex;
    align-items: center;
}

/* Инициалы стоят по центру круга высотой заглавных букв: они обёрнуты в span, обрезанный по верху заглавных и по
   базовой линии, и круг центрирует его. Отступ 0.15px сверху ставит базовую линию почти на целое число пикселей от верха круга:
   браузер округляет до пикселей экрана круг и текст по отдельности, и без отступа при части масштабов они расходятся
   на пиксель. Где обрезка не поддерживается, заглавные почти по середине строки ставит Arial, одинаковый на Windows
   и Mac, в отличие от системных шрифтов */

.vision-case-participantAvatar {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding-top: 0.15px;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--bp-white);
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: bold;
    line-height: 1;
}

.vision-case-participantAvatar > span {
    text-box: trim-both cap alphabetic; /* stylelint-disable-line property-no-unknown -- свойство новее используемого stylelint */
}

.bp6-dark .vision-case-participantAvatar {
    box-shadow: 0 0 0 2px var(--bp-dark-gray2);
}

.vision-case-participantsButton .vision-case-participantAvatar + .vision-case-participantAvatar {
    margin-left: -6px;
}

/* Зелёная точка - участник на связи */

.vision-case-participantAvatar i {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 11px;
    height: 11px;
    border: 2px solid var(--bp-white);
    border-radius: 50%;
    background-color: var(--bp-palette-green-4);
}

.bp6-dark .vision-case-participantAvatar i {
    border-color: var(--bp-dark-gray2);
}

.vision-case-participantAvatar.small {
    width: 18px;
    height: 18px;
    font-size: 8px;
}

/* Обводка цветом текста - за участником следует пользователь; в тёмной теме она белая */

.vision-case-participantAvatar.followed {
    box-shadow: 0 0 0 2px var(--bp-white), 0 0 0 4px var(--bp-dark-gray1);
}

.bp6-dark .vision-case-participantAvatar.followed {
    box-shadow: 0 0 0 2px var(--bp-dark-gray2), 0 0 0 4px var(--bp-white);
}

.vision-case-participantsCount {
    margin-left: 8px;
    color: var(--bp-gray1);
}

.bp6-dark .vision-case-participantsCount {
    color: var(--bp-gray4);
}

.vision-case-participants {
    width: 400px;
}

.vision-case-participantsHeader, .vision-case-participantsFooter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
}

.vision-case-participantsHeader .bp6-checkbox {
    margin: 0 0 0 auto;
}

.vision-case-participantsFooter .bp6-button:last-child {
    margin-left: auto;
}

.vision-case-participant {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 4px 10px;
    padding: 10px 12px;
}

.vision-case-participant, .vision-case-participantsFooter {
    border-top: 1px solid var(--bp-light-gray2);
}

.bp6-dark .vision-case-participant, .bp6-dark .vision-case-participantsFooter {
    border-color: var(--bp-dark-gray5);
}

.vision-case-participant .vision-case-participantAvatar {
    grid-row: span 2;
}

.vision-case-participantName {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    overflow-wrap: anywhere;
}

.vision-case-participantWhere {
    color: var(--bp-gray1);
    font-size: 12px;
}

.bp6-dark .vision-case-participantWhere {
    color: var(--bp-gray4);
}

.vision-case-participantActions {
    display: flex;
    grid-column: 2;
    gap: 6px;
    margin-top: 4px;
}

/* Значок-картинка недоступной кнопки «Следовать» гаснет вместе с подписью */

.vision-case-followButton:disabled > span:not(.bp6-button-text), .vision-case-followButton.bp6-disabled > span:not(.bp6-button-text) {
    opacity: 0.5;
}

/* Указатели других участников: стрелка, остриё которой стоит в точке указателя, и имя участника */

.vision-case-cursors {
    position: absolute;
    inset: 0;
    z-index: 4;
    overflow: hidden;
    pointer-events: none;
}

.vision-case-cursors.fixed {
    position: fixed;
    z-index: 15;
}

.vision-case-cursor {
    position: absolute;
    top: 0;
    left: 0;
    will-change: transform;
}

.vision-case-cursor svg {
    display: block;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}

.vision-case-cursorLabel {
    position: absolute;
    top: 17px;
    left: 12px;
    padding: 0 6px;
    border-radius: 3px;
    color: #ffffff;
    font-size: 11px;
    line-height: 17px;
    white-space: nowrap;
}

.vision-case-filmParticipants {
    position: absolute;
    top: 6px;
    left: 6px;
}

.vision-case-filmParticipants .vision-case-participantAvatar + .vision-case-participantAvatar {
    margin-left: -4px;
}

/* Следование: рамка цвета участника по краю окна и плашка внизу по центру; поверх указателей, под окнами Blueprint */

.vision-case-followFrame {
    position: fixed;
    inset: 0;
    z-index: 16;
    border: 3px solid;
    pointer-events: none;
}

.vision-case-followBanner {
    position: fixed;
    bottom: 12px;
    left: 50%;
    z-index: 17;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 32px);
    height: 34px;
    padding: 0 5px 0 12px;
    border: 1px solid;
    border-radius: 17px;
    box-sizing: border-box;
    background-color: var(--bp-white);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateX(-50%);
    white-space: nowrap;
}

.bp6-dark .vision-case-followBanner {
    background-color: var(--bp-dark-gray3);
}

/* Обрезается только текст: обёртка Popover вокруг кнопки обрезала бы её обводку фокуса */

.vision-case-followBanner > span:not(.vision-case-participantAvatar):not(.bp6-popover-target) {
    overflow: hidden;
    text-overflow: ellipsis;
}

.vision-case-followBanner .bp6-button {
    flex: none;
    border-radius: 12px;
}

/* Демонстрация: кнопка на панели инструментов, окно запуска, оранжевые рамка и плашка ведущего */

.vision-case-demoButton.bp6-button {
    margin-left: 20px;
}

.vision-case-demoDialog {
    width: 440px;
}

.vision-case-demoDialog .bp6-dialog-footer-actions .bp6-button {
    min-width: 100px;
}

.vision-case-followFrame.demo, .vision-case-followBanner.demo {
    border-color: var(--bp-palette-orange-4);
}

.vision-case-demoFollowers {
    display: flex;
    flex: none;
}

.vision-case-demoFollowers .vision-case-participantAvatar + .vision-case-participantAvatar {
    margin-left: -4px;
}

.vision-case-demoCount, .vision-case-demoAway {
    color: var(--bp-gray1);
}

.bp6-dark .vision-case-demoCount, .bp6-dark .vision-case-demoAway {
    color: var(--bp-gray4);
}

/* Чат случая: кнопка со счётчиком на панели инструментов и панель справа под панелью инструментов, поверх содержимого */

.vision-case-chatButton.bp6-button {
    margin-left: 20px;
}

.vision-case-chatUnread {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    box-sizing: border-box;
    background-color: var(--bp-palette-red-3);
    color: #ffffff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
}

.vision-case-chat {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 14;
    display: flex;
    flex-direction: column;
    width: 380px;
    max-width: 100vw;
    background-color: var(--bp-white);
}

.bp6-dark .vision-case-chat {
    background-color: var(--bp-dark-gray3);
}

.vision-case-chat.closed {
    display: none;
}

.vision-case-chatHeader {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-bottom: 1px solid;
}

.vision-case-chatParticipants {
    display: flex;
    flex: 1;
    justify-content: flex-end;
}

.vision-case-chatParticipants .vision-case-participantAvatar + .vision-case-participantAvatar {
    margin-left: -4px;
}

.vision-case-chatMessages {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 8px 12px;
    overflow-y: auto;
}

.vision-case-chatHeader, .vision-case-chatInput {
    border-color: var(--bp-light-gray2);
}

.bp6-dark .vision-case-chatHeader, .bp6-dark .vision-case-chatInput {
    border-color: var(--bp-dark-gray5);
}

.vision-case-chatInput {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 12px;
    border-top: 1px solid;
}

.vision-case-chatInput textarea {
    min-height: 60px;
    resize: vertical;
}

.vision-case-chatMessage {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 8px;
    border-radius: 3px;
}

.vision-case-chatAuthor {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    overflow-wrap: anywhere;
}

.vision-case-chatLabel, .vision-case-chatTime, .vision-case-chatAs, .vision-case-chatSystem {
    color: var(--bp-gray1);
    font-size: 12px;
}

.bp6-dark .vision-case-chatLabel, .bp6-dark .vision-case-chatTime, .bp6-dark .vision-case-chatAs, .bp6-dark .vision-case-chatSystem {
    color: var(--bp-gray4);
}

.vision-case-chatText {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.vision-case-chatSystem {
    align-self: center;
    border-radius: 3px;
    text-align: center;
    overflow-wrap: anywhere;
}

/* Сообщение или запись журнала, пришедшие при открытой вкладке, кратко подсвечиваются */

.vision-case-chatMessage.fresh, .vision-case-chatSystem.fresh, .vision-case-activityEntry.fresh {
    animation: vision-case-chatFresh 2s ease-out;
}

@keyframes vision-case-chatFresh {

    from {
        background-color: rgb(45 114 210 / 25%);
    }

    to {
        background-color: transparent;
    }
}

.vision-case-chatChips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.vision-case-chatChip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    border: 1px solid var(--bp-light-gray1);
    border-radius: 12px;
}

.bp6-dark .vision-case-chatChip {
    border-color: var(--bp-dark-gray5);
}

.vision-case-chatChip > button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    padding: 2px 8px;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.vision-case-chatChip.deleted {
    opacity: 0.6;
}

.vision-case-chatChip.deleted > button {
    cursor: default;
}

.vision-case-chatChip i, .vision-case-chatPickerColor {
    display: inline-block;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.vision-case-chatActions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vision-case-chatActions .bp6-button:last-child {
    flex: none;
    margin-left: auto;
}

.vision-case-chatAs {
    overflow-wrap: anywhere;
}

.vision-case-chatError {
    color: var(--bp-palette-red-3);
}

.vision-case-chatPicker {
    max-width: 340px;
    max-height: 320px;
    overflow-y: auto;
}

.vision-case-chatTabs {
    flex: none;
    padding: 0 12px;
}

.vision-case-activityFilter {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px 12px 0;
}

.vision-case-activityParticipant {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--bp-light-gray2);
    border-radius: 3px;
}

.bp6-dark .vision-case-activityParticipant {
    border-color: var(--bp-dark-gray5);
}

.vision-case-activityParticipantName {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.vision-case-activityEntry {
    display: flex;
    align-items: baseline;
    gap: 6px;
    border-radius: 3px;
}

.vision-case-activityEntry > i {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.vision-case-activityText {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.vision-panzoom {
    width: 100%;
    height: 100%;
    position: relative;
}

.vision-panzoom.with-measurer {
    width: 100%;
    height: 100%;
    position: absolute;
}

.vision-panzoom-container {
    border: 1px solid;
    border-color: #e4e4e4;
    text-align: center;
    overflow: auto;
    width: 100%;
    height: 100%;
    position: absolute;
    align-content: center;
}

.bp6-dark .vision-panzoom-container {
    border-color: var(--bp-gray1);
}

svg.vision-panzoom-container {
    pointer-events: none;
}

.vision-panzoom-centerFlex {
    display: flex;
    justify-content: center;
    align-items: center;
}

.vision-panzoom-container div.thumbnail {
    position: absolute;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
    z-index: 19;
}

.vision-panzoom-container img.frame {
    transition: opacity ease-in 400ms;
    -webkit-transform: translateZ(0);
}

.vision-panzoom div.progress-bar {
    overflow: auto;
    width: 100%;
    height: 4px;
    top: 0;
    position: absolute;
    background-color: #ffffff;
    pointer-events: none;
    transition: opacity 300ms ease;
}

.vision-panzoom div.progress-bar div.progress {
    overflow: auto;
    height: 4px;
    top: 0;
    position: absolute;
    background-color: #137cbd;
}

.vision-panzoom div.progress-bar div.animate {
    transition: width 200ms ease;
}

div.vision-panzoom-editing {
    cursor: crosshair;
}

div.vision-panzoom .clickable {
    cursor: pointer;
}

div.vision-panzoom .loading {
    filter: blur(8px);
}

div.vision-panzoom canvas.animate {
    align-items: center;
}

div.vision-panzoom .rotateButton {
    left: 6px;
    top: 6px;
    height: 30px;
    width: 25px;
    position: absolute;
    z-index: 1;
}
svg.cell-editor text.cluster {
    text-anchor: middle;
    pointer-events: none;
    font-family: Arial, Helvetica;
    font-size: 12px;
    font-weight: bold;
    text-shadow: -1px -1px 1px #ffffff, 0 -1px 1px #ffffff, 1px -1px 1px #ffffff, -1px 0 1px #ffffff, 1px 0 1px #ffffff, -1px 1px 1px #ffffff, 0 1px 1px #ffffff, 1px 1px 1px #ffffff;
}

svg.cell-editor text.point {
    text-anchor: middle;
    pointer-events: none;
    font-family: Arial, Helvetica;
    font-size: 9px;
    font-weight: bold;
}

svg.cell-editor text.rect {
    text-anchor: start;
    pointer-events: none;
    font-family: Arial, Helvetica;
    font-size: 12px;
    font-weight: normal;
}

svg.cell-editor text.light {
    text-shadow: -1px -1px 1px #000000, 1px -1px 1px #000000, -1px 1px 1px #000000, 1px 1px 1px #000000;
}

svg.cell-editor text.dark {
    text-shadow: -1px -1px 1px #ffffff, 1px -1px 1px #ffffff, -1px 1px 1px #ffffff, 1px 1px 1px #ffffff;
}

svg.cell-editor text.pointer {
    text-anchor: middle;
    pointer-events: none;
    font-family: Arial, Helvetica;
    font-size: 12px;
    text-shadow: -1px -1px 1px #ffffff, 0 -1px 1px #ffffff, 1px -1px 1px #ffffff, -1px 0 1px #ffffff, 1px 0 1px #ffffff, -1px 1px 1px #ffffff, 0 1px 1px #ffffff, 1px 1px 1px #ffffff;
}

svg.crosshair {
    cursor: crosshair;
}

svg.cell-editor text.roiInfo {
    text-shadow: -1px -1px 1px #ffffff, 1px -1px 1px #ffffff, -1px 1px 1px #ffffff, 1px 1px 1px #ffffff;
    font-family: Arial, Helvetica;
    font-size: 12px;
    font-weight: bold;
}
.vision-cellEdit-cross {
    cursor: pointer;
    font-size: 32px;
    color: white;
    position: absolute;
    right: 30px;
    top: 20px;
    pointer-events: all;
}

div.vision-cellEdit-overlay {
    margin: 0;
    height: 60%;
    min-height: 500px;
    max-width: 800px;
    width: 60%;
    margin-top: 100px;
    z-index: 25;
    pointer-events: all;
    background-color: #ffffff;
}

div.vision-cellEdit-overlay .vision-controls-marker:before {
    border-left-width: 14px;
    border-top-width: 14px;
    top: 1px;
    left: 2px;
}

div.vision-cellEdit-overlay .vision-controls-marker::after {
    border-left-width: 11px;
    border-top-width: 11px;
    top: 2px;
    left: 4px;
    width: 0;
}

.vision-cellEdit-body {
    height: calc(100% - 30px);
    padding: 20px;
}

.vision-cellEdit-footer {
    height: 30px;
    width: 100%;
    padding: 0 20px;
    display: flex;
    margin-bottom: 15px;
}

.vision-cellEdit-measurer-button {
    width: 30px;
    height: 30px;
    margin-left: 10px;
}

.vision-cellEdit-measurer-button-image {
    margin-top: 3px;
}

.vision-cellEdit-flexDiv .vision-cellEdit-body .vision-panzoom-container {
    overflow: hidden;
}

.vision-cellEdit-flexDiv .vision-cellEdit-body .vision-panzoom-container.scroll {
    overflow: auto !important;
}

.vision-cellEdit-flexDiv .vision-cellEdit-body .vision-panzoom-container.no-scroll {
    overflow: hidden !important;
}

.vision-cellEdit-flexDiv .vision-cellEdit-preview .vision-panzoom-container.no-scroll {
    overflow: hidden;
}

.vision-cellEdit-commentInputReadOnly {
    background: #f5f8fa !important;
    box-shadow: 0 0 0 0 #000000 !important;
}

.vision-cellEdit-commentInput {
    width: 663px;
    vertical-align: top;
    margin-right: 10px;
}

.vision-cellEdit-overlay .vision-cellEdit-preview {
    height: 100%;
    padding: 20px;
    overflow: hidden;
}

.ce-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    width: 100%;
    height: 100%;
    padding: 0 15px;
}

.ce-rectangle {
    width: 50px;
    height: 80px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    background-color: var(--bp-gray5);
}

.bp6-dark .ce-rectangle {
    background-color: var(--bp-dark-gray5);
}

.ce-arrow {
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
}

.ce-arrow.right {
    border-left-width: 35px;
    border-left-style: solid;
    border-left-color: var(--bp-white);
}

.ce-arrow.left {
    border-right-width: 35px;
    border-right-style: solid;
    border-right-color: var(--bp-white);
}

.bp6-dark .ce-arrow.left {
    border-right-color: var(--bp-gray4);
}

.bp6-dark .ce-arrow.right {
    border-left-color: var(--bp-gray4);
}

.ce-dialog {
    max-width: 800px;
    min-width: 500px;
    min-height: 500px;
    width: 100%;
    height: 100%;
}

.vision-cellEdit-flexDiv {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
}
svg.measurer {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 1;
}

svg.measurer.clickable {
    cursor: default;
}

svg.measurer text.text-measurer {
    font-family: Arial;
    font-size: 0.8em;
    text-anchor: middle;
    text-shadow: -1px -1px 1px #ffffff, 0 -1px 1px #ffffff, 1px -1px 1px #ffffff, -1px 0 1px #ffffff, 1px 0 1px #ffffff, -1px 1px 1px #ffffff, 0 1px 1px #ffffff, 1px 1px 1px #ffffff;
}

svg.ruler {
    --primary-color: var(--bp-black);
    --secondary-color: var(--bp-white);
    position: absolute;
    cursor: default;
    z-index: 10;
    pointer-events: none;
}

.bp6-dark svg.ruler {
    --primary-color: var(--bp-white);
    --secondary-color: var(--bp-black);
}

svg.ruler g {
    pointer-events: all;
    cursor: move;
}

svg.coords-animate {
    transition-property: right, bottom;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

svg.ruler text {
    fill: var(--primary-color);
    font-weight: bold;
    font-size: 0.8em;
    text-anchor: middle;
    font-family: Arial, Helvetica, sans-serif;
    text-shadow: -1px -1px 1px var(--secondary-color), 1px -1px 1px var(--secondary-color), -1px 1px 1px var(--secondary-color), 1px 1px 1px var(--secondary-color);
}

svg.ruler path {
    stroke: transparent;
}

svg.ruler #ed {
    fill: var(--primary-color);
    fill-opacity: 0.5;
}

svg.ruler #od {
    fill: var(--secondary-color);
    fill-opacity: 0.5;
}

svg.ruler #ld {
    stroke: var(--primary-color);
    stroke-width: 1;
    stroke-linecap: square;
    stroke-linejoin: miter;
    shape-rendering: crispedges;
}

svg.ruler circle {
    stroke: var(--primary-color);
    fill: var(--secondary-color);
    stroke-width: 1;
    fill-opacity: 0.5;
}

svg.ruler #paths-background path {
    stroke-width: 1;
    stroke: var(--secondary-color);
    stroke-opacity: 0.7;
    vector-effect: non-scaling-stroke;
}
.vision-sample-framesGallery-top {
    vertical-align: top;
    display: inline-block;
    width: 100%;
    height: calc(100% - 178px);
    overflow: hidden;
    background-color: #ffffff;
}

.bp6-dark .vision-sample-framesGallery-top {
    background-color: var(--bp-black);
}

.vision-sample-framesGallery-div {
    width: 100%;
    height: 100%;
}

.vision-sample-framesGallery-mainFrame {
    display: block;
    margin: 0 auto;
}

.vision-sample-fullFrames-columnLeft {
    vertical-align: top;
    display: inline-block;
    width: 390px;
    height: 100%;
    overflow-x: hidden;
    margin-right: 20px;
}

.vision-sample-fullFrames-columnRight {
    vertical-align: top;
    display: inline-block;
    width: calc(100% - 450px);
    height: 100%;
    margin-right: 20px;
    position: relative;
}

.vision-sample-fullFrames-columnRight.expanded {
    width: calc(100% - 40px);
}
div.frameslistbox {
    vertical-align: top;
    display: inline-flex;
    width: 100%;
    height: 158px;
    padding: 7px 11px;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    cursor: default;
    background-color: #ffffff;
    margin-top: 20px;
}

.bp6-dark div.frameslistbox {
    background-color: var(--bp-black);
}

div.frameslistbox div.thumbnail {
    position: absolute;
    display: inline-block;
    border: 1px solid #d8d6d7;
    color: #182026;
    overflow: hidden;
    text-overflow: ellipsis;
    font: normal 13px Arial, Verdana;
    padding: 2px;
    text-shadow: -1px -1px 1px #ffffff, 0 -1px 1px #ffffff, 1px -1px 1px #ffffff, -1px 0 1px #ffffff, 1px 0 1px #ffffff, -1px 1px 1px #ffffff, 0 1px 1px #ffffff, 1px 1px 1px #ffffff;
    z-index: 1;
}

.bp6-dark div.frameslistbox div.thumbnail {
    border: 1px solid var(--bp-dark-gray2);
}

div.frameslistbox div.focused {
    border: 1px solid #3399ff;
    box-shadow: inset 0 0 1px 0 rgba(0, 0, 0, 0.75);
}

.bp6-dark div.frameslistbox div.focused {
    border: 2px solid var(--bp-blue3);
    box-shadow: inset 0 0 1px 0 rgba(0, 0, 0, 0.75);
}

div.frameslistbox div.scrollbar {
    position: absolute;
    display: inline-block;
}

div.frameslistbox div.marker {
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 0;
}

div.frameslistbox div.marker::before {
    right: 0;
    top: 0;
    display: block;
    content: "";
    position: absolute;
    border-left: 18px solid transparent;
    border-top: 18px solid rgba(0, 0, 0, 0.6);
}

div.frameslistbox div.marker::after {
    display: block;
    content: "";
    position: absolute;
    border-style: solid;
    border-width: 15px 0 0 15px;
    top: 1px;
    right: 1px;
}

div.frameslistbox div.marker-blue::after {
    border-color: #2471c3 transparent transparent;
}

div.frameslistbox div.marker-green::after {
    border-color: #23b023 transparent transparent;
}

div.frameslistbox div.marker-purple::after {
    border-color: #c92ece transparent transparent;
}

div.frameslistbox div.marker-red::after {
    border-color: #df2323 transparent transparent;
}

div.frameslistbox div.marker-yellow::after {
    border-color: #e2c606 transparent transparent;
}

div.frameslistbox div.has-comment {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

div.frameslistbox div.has-comment::before {
    left: 0;
    bottom: 0;
    display: block;
    content: "";
    position: absolute;
    border-left: 18px solid rgba(0, 0, 0, 0.6);
    border-top: 18px solid transparent;
    pointer-events: none;
}

div.frameslistbox div.has-comment::after {
    display: block;
    content: "";
    position: absolute;
    border-left: 15px solid #bbbbbb;
    border-top: 15px solid transparent;
    bottom: 1px;
    left: 1px;
    pointer-events: none;
}
svg.scale-bar {
    --primary-color: var(--bp-black);
    --secondary-color: var(--bp-white);
    position: absolute;
    z-index: 10;
    bottom: 0;
    right: 0;
}

.bp6-dark svg.scale-bar {
    --primary-color: var(--bp-white);
    --secondary-color: var(--bp-black);
}

svg.scale-bar path {
    stroke: var(--primary-color);
    stroke-linecap: square;
}

svg.scale-bar .background-path {
    stroke: var(--secondary-color);
    stroke-opacity: 0.7;
    vector-effect: non-scaling-stroke;
}

svg.scale-bar text {
    fill: var(--primary-color);
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    text-shadow: -1px -1px 1px var(--secondary-color), 1px -1px 1px var(--secondary-color), -1px 1px 1px var(--secondary-color), 1px 1px 1px var(--secondary-color);
}
.image-viewer {
    position: absolute;
    transition: transform ease 0.4s;
}

.vision-panzoom-container {
    overflow: hidden !important;
}
div.hi-res-image-container {
    height: 100%;
    width: 100%;
    background-color: #ffffff;
    display: table; /* Для выравнивания .notSupportedMessage по вертикальному центру */
}

.bp6-dark div.hi-res-image-container {
    background-color: var(--bp-black);
}

div.hi-res-image-container .notSupportedMessage {
    display: table-cell; /* Для выравнивания по вертикальному центру */
    vertical-align: middle;
    text-align: center;
}

div.hi-res-image-annotate {
    cursor: crosshair;
}

div.hi-res-image-editing {
    cursor: crosshair;
}

div.hi-res-image-editing .field-disabled {
    cursor: not-allowed;
}

div.hi-res-image-container .clickable {
    cursor: pointer;
}

div.hi-res-image-annotate .clickable {
    cursor: crosshair;
}

div.hi-res-image-container .editing {
    cursor: crosshair;
}

div.hi-res-image-container *:focus {
    outline: initial;
    outline-offset: initial;
}

.navigator {
    bottom: 0;
    top: 0;
    height: 100%;
    width: 100%;
    cursor: crosshair;
}

.container {
    position: relative;
    height: 100%;
    width: 100%;
}

.hi-res-image-status {
    position: absolute;
    right: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: var(--bp-gray1);
    pointer-events: none;
}

.bp6-dark .hi-res-image-status {
    color: var(--bp-gray4);
}

.openseadragon-container {
    position: absolute !important;
}

.displayregioncontainer {
    position: absolute !important;
}

.openseadragon-canvas {
    border: none !important;
}

.hi-res-image-navigator {
    width: 100%;
    height: 100%;
    border: none !important;
}

.draggable-navigator {
    z-index: 16; /* Больше, чем у якорей в Draggable.css: миниатюра целиком лежит поверх окна маркировки, а не проступает сквозь него одними якорями */
}

.hi-res-image-navigator canvas {
    opacity: 1 !important;
}

.draggable-container .hi-res-image-trace-clear {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 10;
    visibility: hidden; /* Не заменять на display: none: всплывающее подтверждение привязано к положению кнопки */
}

.draggable-container:hover .hi-res-image-trace-clear-on, .draggable-container .hi-res-image-trace-clear-on > .bp6-popover-target.bp6-popover-open {
    visibility: visible; /* При открытом подтверждении кнопка остаётся и без наведения */
}

.hi-res-image-slide-data {
    min-width: 270px;
    font-size: 13px;
    z-index: 20; /* Больше, чем у миниатюры: окно данных целиком лежит поверх неё и её якорей */
}

.hi-res-image-slide-data .draggable-header {
    padding: 6px 6px 6px 8px;
    border-bottom: 1px solid var(--bp-light-gray2);
    background-color: #eaeff3;
    font-weight: 500;
}

.bp6-dark .hi-res-image-slide-data .draggable-header {
    background-color: var(--bp-dark-gray3);
}

.hi-res-image-slide-data .draggable-header > span:not(.bp6-icon) {
    flex: 1 1 auto; /* Название окна занимает место между ручкой и крестиком; span значка Blueprint остаётся по содержимому */
}

.hi-res-image-slide-data-list {
    display: grid;
    grid-template-columns: auto max-content; /* Колонка значений не сжимается: окно не становится уже своего содержимого, когда упирается в край родителя */
    margin: 0;
    padding: 0 10px;
}

.hi-res-image-slide-data-list dt, .hi-res-image-slide-data-list dd {
    margin: 0;
    padding: 5px 0;
    white-space: nowrap;
    border-top: 1px solid var(--bp-light-gray2);
}

.hi-res-image-slide-data-list dt:first-of-type, .hi-res-image-slide-data-list dd:first-of-type {
    border-top: none;
}

.hi-res-image-slide-data-list dt {
    color: var(--bp-gray1);
    padding-right: 12px;
}

.hi-res-image-slide-data-list dd {
    text-align: right;
}

.bp6-dark .hi-res-image-slide-data .draggable-header, .bp6-dark .hi-res-image-slide-data-list dt, .bp6-dark .hi-res-image-slide-data-list dd {
    border-color: var(--bp-dark-gray5);
}

.bp6-dark .hi-res-image-slide-data-list dt {
    color: var(--bp-gray4);
}
.coord-dialog-sizing {
    width: 400px;
    min-height: 200px;
    padding: 15px;
    background-color: white;
}

.dialog-content {
    margin: 20px 20px 10px;
}

.dialog-form {
    margin-bottom: 20px;
}

.coord-dialog-sizing .buttons {
    text-align: right;
}

.coord-dialog-sizing .buttons > .bp6-button {
    margin-left: 10px;
    min-width: 100px;
}

.zoomSelect-button-width button {
    width: 84px;
}
.vision-combobox-button {
    padding-right: 36px !important;
}

.vision-combobox-button span.bp6-button-text {
    line-height: 28px;
}

.vision-combobox-portal {
    z-index: 10000;
}

.vision-combobox-portal .bp6-popover {
    z-index: 10000;
}
div.mode-selector {
    vertical-align: top;
}

div.mode-selector button.bp6-disabled img.vector {
    opacity: 0.5;
}

.vector {
    vertical-align: middle;
}

.rotateMenu {
    padding-left: 25px;
    padding-right: 25px;
}

.rotateMenu-field {
    padding-top: 10px;
    width: 300px;
    display: flex;
    align-items: center;
}

.rotateSelect-button-width {
    width: 50px;
}

#rotate-anchor-button::after {
    padding-left: 10px;
}

.vision-cell-context-menu {
    position: fixed;
}

.no-icon::before {
    content: "\00a0";
    width: 16px;
}

.vision-cellContext-popover .bp6-popover-content {
    max-height: 500px;
    overflow-y: auto;
}

.vision-context-marker-blue::after {
    border-top: 15px solid #2471c3;
}

.vision-context-marker-green::after {
    border-top: 15px solid #23b023;
}

.vision-context-marker-red::after {
    border-top: 15px solid #df2323;
}

.vision-context-marker-yellow::after {
    border-top: 15px solid #e2c606;
}

.vision-context-marker-purple::after {
    border-top: 15px solid #c92ece;
}

.vision-context-marker-gray::after {
    border-top: 15px solid #adb4b7;
}

.vision-context-marker::after {
    display: block;
    content: "";
    border-left: 15px solid transparent;
    top: 1px;
    right: 1px;
}

.roi-context-menu .bp6-menu-item::before {
    margin-right: 7px;
}

.roi-context-menu .bp6-menu-item-icon {
    margin-right: 8px;
}
.cs-dialog-body {
    user-select: none;
    flex: 1 1 auto;
    margin: 15px;
}

.cs-slider {
    margin-top: 10px;
    min-width: 200px;
    width: auto;
}

.cs-item {
    justify-content: space-between;
    margin: 0 10px;
}

.bp6-label.cs-item {
    margin-bottom: 5px !important;
}

.cs-form-content {
    display: flex;
}

.cs-slide-value {
    width: 25px;
    margin: 3px 15px !important;
    text-align: end;
}

.cs-images-container {
    display: flex;
    justify-content: center;
}

.cs-images-container > div {
    width: 220px;
    height: 220px;
    margin: 0 10px 10px;
}

.cs-image {
    border: 1px solid #d8d6d7;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cs-button-group {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.cs-button {
    margin: 0 0 0 10px;
    min-width: 80px;
}

.cs-popover .bp6-popover-content {
    padding: 15px 5px;
}

#ds-color-settings::after {
    right: 2px !important;
}

.ds-color-settings-devider {
    margin: 5px 5px 10px;
}

/*!
 * Quill Editor v2.0.3
 * https://quilljs.com
 * Copyright (c) 2017-2024, Slab
 * Copyright (c) 2014, Jason Chen
 * Copyright (c) 2013, salesforce.com
 */
.ql-container{box-sizing:border-box;font-family:Helvetica,Arial,sans-serif;font-size:13px;height:100%;margin:0;position:relative}.ql-container.ql-disabled .ql-tooltip{visibility:hidden}.ql-container:not(.ql-disabled) li[data-list=checked] > .ql-ui,.ql-container:not(.ql-disabled) li[data-list=unchecked] > .ql-ui{cursor:pointer}.ql-clipboard{left:-100000px;height:1px;overflow-y:hidden;position:absolute;top:50%}.ql-clipboard p{margin:0;padding:0}.ql-editor{box-sizing:border-box;counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;line-height:1.42;height:100%;outline:none;overflow-y:auto;padding:12px 15px;tab-size:4;-moz-tab-size:4;text-align:left;white-space:pre-wrap;word-wrap:break-word}.ql-editor > *{cursor:text}.ql-editor p,.ql-editor ol,.ql-editor pre,.ql-editor blockquote,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{margin:0;padding:0}@supports (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-set:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor p,.ql-editor h1,.ql-editor h2,.ql-editor h3,.ql-editor h4,.ql-editor h5,.ql-editor h6{counter-reset:list-0 list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor table{border-collapse:collapse}.ql-editor td{border:1px solid #000;padding:2px 5px}.ql-editor ol{padding-left:1.5em}.ql-editor li{list-style-type:none;padding-left:1.5em;position:relative}.ql-editor li > .ql-ui:before{display:inline-block;margin-left:-1.5em;margin-right:.3em;text-align:right;white-space:nowrap;width:1.2em}.ql-editor li[data-list=checked] > .ql-ui,.ql-editor li[data-list=unchecked] > .ql-ui{color:#777}.ql-editor li[data-list=bullet] > .ql-ui:before{content:'\2022'}.ql-editor li[data-list=checked] > .ql-ui:before{content:'\2611'}.ql-editor li[data-list=unchecked] > .ql-ui:before{content:'\2610'}@supports (counter-set:none){.ql-editor li[data-list]{counter-set:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list]{counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered]{counter-increment:list-0}.ql-editor li[data-list=ordered] > .ql-ui:before{content:counter(list-0, decimal) '. '}.ql-editor li[data-list=ordered].ql-indent-1{counter-increment:list-1}.ql-editor li[data-list=ordered].ql-indent-1 > .ql-ui:before{content:counter(list-1, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-set:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-1{counter-reset:list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-2{counter-increment:list-2}.ql-editor li[data-list=ordered].ql-indent-2 > .ql-ui:before{content:counter(list-2, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-set:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-2{counter-reset:list-3 list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-3{counter-increment:list-3}.ql-editor li[data-list=ordered].ql-indent-3 > .ql-ui:before{content:counter(list-3, decimal) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-set:list-4 list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-3{counter-reset:list-4 list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-4{counter-increment:list-4}.ql-editor li[data-list=ordered].ql-indent-4 > .ql-ui:before{content:counter(list-4, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-set:list-5 list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-4{counter-reset:list-5 list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-5{counter-increment:list-5}.ql-editor li[data-list=ordered].ql-indent-5 > .ql-ui:before{content:counter(list-5, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-set:list-6 list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-5{counter-reset:list-6 list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-6{counter-increment:list-6}.ql-editor li[data-list=ordered].ql-indent-6 > .ql-ui:before{content:counter(list-6, decimal) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-set:list-7 list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-6{counter-reset:list-7 list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-7{counter-increment:list-7}.ql-editor li[data-list=ordered].ql-indent-7 > .ql-ui:before{content:counter(list-7, lower-alpha) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-set:list-8 list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-7{counter-reset:list-8 list-9}}.ql-editor li[data-list=ordered].ql-indent-8{counter-increment:list-8}.ql-editor li[data-list=ordered].ql-indent-8 > .ql-ui:before{content:counter(list-8, lower-roman) '. '}@supports (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-set:list-9}}@supports not (counter-set:none){.ql-editor li[data-list].ql-indent-8{counter-reset:list-9}}.ql-editor li[data-list=ordered].ql-indent-9{counter-increment:list-9}.ql-editor li[data-list=ordered].ql-indent-9 > .ql-ui:before{content:counter(list-9, decimal) '. '}.ql-editor .ql-indent-1:not(.ql-direction-rtl){padding-left:3em}.ql-editor li.ql-indent-1:not(.ql-direction-rtl){padding-left:4.5em}.ql-editor .ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:3em}.ql-editor li.ql-indent-1.ql-direction-rtl.ql-align-right{padding-right:4.5em}.ql-editor .ql-indent-2:not(.ql-direction-rtl){padding-left:6em}.ql-editor li.ql-indent-2:not(.ql-direction-rtl){padding-left:7.5em}.ql-editor .ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:6em}.ql-editor li.ql-indent-2.ql-direction-rtl.ql-align-right{padding-right:7.5em}.ql-editor .ql-indent-3:not(.ql-direction-rtl){padding-left:9em}.ql-editor li.ql-indent-3:not(.ql-direction-rtl){padding-left:10.5em}.ql-editor .ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:9em}.ql-editor li.ql-indent-3.ql-direction-rtl.ql-align-right{padding-right:10.5em}.ql-editor .ql-indent-4:not(.ql-direction-rtl){padding-left:12em}.ql-editor li.ql-indent-4:not(.ql-direction-rtl){padding-left:13.5em}.ql-editor .ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:12em}.ql-editor li.ql-indent-4.ql-direction-rtl.ql-align-right{padding-right:13.5em}.ql-editor .ql-indent-5:not(.ql-direction-rtl){padding-left:15em}.ql-editor li.ql-indent-5:not(.ql-direction-rtl){padding-left:16.5em}.ql-editor .ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:15em}.ql-editor li.ql-indent-5.ql-direction-rtl.ql-align-right{padding-right:16.5em}.ql-editor .ql-indent-6:not(.ql-direction-rtl){padding-left:18em}.ql-editor li.ql-indent-6:not(.ql-direction-rtl){padding-left:19.5em}.ql-editor .ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:18em}.ql-editor li.ql-indent-6.ql-direction-rtl.ql-align-right{padding-right:19.5em}.ql-editor .ql-indent-7:not(.ql-direction-rtl){padding-left:21em}.ql-editor li.ql-indent-7:not(.ql-direction-rtl){padding-left:22.5em}.ql-editor .ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:21em}.ql-editor li.ql-indent-7.ql-direction-rtl.ql-align-right{padding-right:22.5em}.ql-editor .ql-indent-8:not(.ql-direction-rtl){padding-left:24em}.ql-editor li.ql-indent-8:not(.ql-direction-rtl){padding-left:25.5em}.ql-editor .ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:24em}.ql-editor li.ql-indent-8.ql-direction-rtl.ql-align-right{padding-right:25.5em}.ql-editor .ql-indent-9:not(.ql-direction-rtl){padding-left:27em}.ql-editor li.ql-indent-9:not(.ql-direction-rtl){padding-left:28.5em}.ql-editor .ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:27em}.ql-editor li.ql-indent-9.ql-direction-rtl.ql-align-right{padding-right:28.5em}.ql-editor li.ql-direction-rtl{padding-right:1.5em}.ql-editor li.ql-direction-rtl > .ql-ui:before{margin-left:.3em;margin-right:-1.5em;text-align:left}.ql-editor table{table-layout:fixed;width:100%}.ql-editor table td{outline:none}.ql-editor .ql-code-block-container{font-family:monospace}.ql-editor .ql-video{display:block;max-width:100%}.ql-editor .ql-video.ql-align-center{margin:0 auto}.ql-editor .ql-video.ql-align-right{margin:0 0 0 auto}.ql-editor .ql-bg-black{background-color:#000}.ql-editor .ql-bg-red{background-color:#e60000}.ql-editor .ql-bg-orange{background-color:#f90}.ql-editor .ql-bg-yellow{background-color:#ff0}.ql-editor .ql-bg-green{background-color:#008a00}.ql-editor .ql-bg-blue{background-color:#06c}.ql-editor .ql-bg-purple{background-color:#93f}.ql-editor .ql-color-white{color:#fff}.ql-editor .ql-color-red{color:#e60000}.ql-editor .ql-color-orange{color:#f90}.ql-editor .ql-color-yellow{color:#ff0}.ql-editor .ql-color-green{color:#008a00}.ql-editor .ql-color-blue{color:#06c}.ql-editor .ql-color-purple{color:#93f}.ql-editor .ql-font-serif{font-family:Georgia,Times New Roman,serif}.ql-editor .ql-font-monospace{font-family:Monaco,Courier New,monospace}.ql-editor .ql-size-small{font-size:.75em}.ql-editor .ql-size-large{font-size:1.5em}.ql-editor .ql-size-huge{font-size:2.5em}.ql-editor .ql-direction-rtl{direction:rtl;text-align:inherit}.ql-editor .ql-align-center{text-align:center}.ql-editor .ql-align-justify{text-align:justify}.ql-editor .ql-align-right{text-align:right}.ql-editor .ql-ui{position:absolute}.ql-editor.ql-blank::before{color:rgba(0,0,0,0.6);content:attr(data-placeholder);font-style:italic;left:15px;pointer-events:none;position:absolute;right:15px}.ql-snow.ql-toolbar:after,.ql-snow .ql-toolbar:after{clear:both;content:'';display:table}.ql-snow.ql-toolbar button,.ql-snow .ql-toolbar button{background:none;border:none;cursor:pointer;display:inline-block;float:left;height:24px;padding:3px 5px;width:28px}.ql-snow.ql-toolbar button svg,.ql-snow .ql-toolbar button svg{float:left;height:100%}.ql-snow.ql-toolbar button:active:hover,.ql-snow .ql-toolbar button:active:hover{outline:none}.ql-snow.ql-toolbar input.ql-image[type=file],.ql-snow .ql-toolbar input.ql-image[type=file]{display:none}.ql-snow.ql-toolbar button:hover,.ql-snow .ql-toolbar button:hover,.ql-snow.ql-toolbar button:focus,.ql-snow .ql-toolbar button:focus,.ql-snow.ql-toolbar button.ql-active,.ql-snow .ql-toolbar button.ql-active,.ql-snow.ql-toolbar .ql-picker-label:hover,.ql-snow .ql-toolbar .ql-picker-label:hover,.ql-snow.ql-toolbar .ql-picker-label.ql-active,.ql-snow .ql-toolbar .ql-picker-label.ql-active,.ql-snow.ql-toolbar .ql-picker-item:hover,.ql-snow .ql-toolbar .ql-picker-item:hover,.ql-snow.ql-toolbar .ql-picker-item.ql-selected,.ql-snow .ql-toolbar .ql-picker-item.ql-selected{color:#06c}.ql-snow.ql-toolbar button:hover .ql-fill,.ql-snow .ql-toolbar button:hover .ql-fill,.ql-snow.ql-toolbar button:focus .ql-fill,.ql-snow .ql-toolbar button:focus .ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-fill,.ql-snow.ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:focus .ql-stroke.ql-fill,.ql-snow.ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar button.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke.ql-fill,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke.ql-fill{fill:#06c}.ql-snow.ql-toolbar button:hover .ql-stroke,.ql-snow .ql-toolbar button:hover .ql-stroke,.ql-snow.ql-toolbar button:focus .ql-stroke,.ql-snow .ql-toolbar button:focus .ql-stroke,.ql-snow.ql-toolbar button.ql-active .ql-stroke,.ql-snow .ql-toolbar button.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke,.ql-snow.ql-toolbar button:hover .ql-stroke-miter,.ql-snow .ql-toolbar button:hover .ql-stroke-miter,.ql-snow.ql-toolbar button:focus .ql-stroke-miter,.ql-snow .ql-toolbar button:focus .ql-stroke-miter,.ql-snow.ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar button.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-label.ql-active .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item:hover .ql-stroke-miter,.ql-snow.ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter,.ql-snow .ql-toolbar .ql-picker-item.ql-selected .ql-stroke-miter{stroke:#06c}@media (pointer:coarse){.ql-snow.ql-toolbar button:hover:not(.ql-active),.ql-snow .ql-toolbar button:hover:not(.ql-active){color:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-fill,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke.ql-fill{fill:#444}.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke,.ql-snow.ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter,.ql-snow .ql-toolbar button:hover:not(.ql-active) .ql-stroke-miter{stroke:#444}}.ql-snow{box-sizing:border-box}.ql-snow *{box-sizing:border-box}.ql-snow .ql-hidden{display:none}.ql-snow .ql-out-bottom,.ql-snow .ql-out-top{visibility:hidden}.ql-snow .ql-tooltip{position:absolute;transform:translateY(10px)}.ql-snow .ql-tooltip a{cursor:pointer;text-decoration:none}.ql-snow .ql-tooltip.ql-flip{transform:translateY(-10px)}.ql-snow .ql-formats{display:inline-block;vertical-align:middle}.ql-snow .ql-formats:after{clear:both;content:'';display:table}.ql-snow .ql-stroke{fill:none;stroke:#444;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.ql-snow .ql-stroke-miter{fill:none;stroke:#444;stroke-miterlimit:10;stroke-width:2}.ql-snow .ql-fill,.ql-snow .ql-stroke.ql-fill{fill:#444}.ql-snow .ql-empty{fill:none}.ql-snow .ql-even{fill-rule:evenodd}.ql-snow .ql-thin,.ql-snow .ql-stroke.ql-thin{stroke-width:1}.ql-snow .ql-transparent{opacity:.4}.ql-snow .ql-direction svg:last-child{display:none}.ql-snow .ql-direction.ql-active svg:last-child{display:inline}.ql-snow .ql-direction.ql-active svg:first-child{display:none}.ql-snow .ql-editor h1{font-size:2em}.ql-snow .ql-editor h2{font-size:1.5em}.ql-snow .ql-editor h3{font-size:1.17em}.ql-snow .ql-editor h4{font-size:1em}.ql-snow .ql-editor h5{font-size:.83em}.ql-snow .ql-editor h6{font-size:.67em}.ql-snow .ql-editor a{text-decoration:underline}.ql-snow .ql-editor blockquote{border-left:4px solid #ccc;margin-bottom:5px;margin-top:5px;padding-left:16px}.ql-snow .ql-editor code,.ql-snow .ql-editor .ql-code-block-container{background-color:#f0f0f0;border-radius:3px}.ql-snow .ql-editor .ql-code-block-container{margin-bottom:5px;margin-top:5px;padding:5px 10px}.ql-snow .ql-editor code{font-size:85%;padding:2px 4px}.ql-snow .ql-editor .ql-code-block-container{background-color:#23241f;color:#f8f8f2;overflow:visible}.ql-snow .ql-editor img{max-width:100%}.ql-snow .ql-picker{color:#444;display:inline-block;float:left;font-size:14px;font-weight:500;height:24px;position:relative;vertical-align:middle}.ql-snow .ql-picker-label{cursor:pointer;display:inline-block;height:100%;padding-left:8px;padding-right:2px;position:relative;width:100%}.ql-snow .ql-picker-label::before{display:inline-block;line-height:22px}.ql-snow .ql-picker-options{background-color:#fff;display:none;min-width:100%;padding:4px 8px;position:absolute;white-space:nowrap}.ql-snow .ql-picker-options .ql-picker-item{cursor:pointer;display:block;padding-bottom:5px;padding-top:5px}.ql-snow .ql-picker.ql-expanded .ql-picker-label{color:#ccc;z-index:2}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-fill{fill:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-label .ql-stroke{stroke:#ccc}.ql-snow .ql-picker.ql-expanded .ql-picker-options{display:block;margin-top:-1px;top:100%;z-index:1}.ql-snow .ql-color-picker,.ql-snow .ql-icon-picker{width:28px}.ql-snow .ql-color-picker .ql-picker-label,.ql-snow .ql-icon-picker .ql-picker-label{padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-label svg,.ql-snow .ql-icon-picker .ql-picker-label svg{right:4px}.ql-snow .ql-icon-picker .ql-picker-options{padding:4px 0}.ql-snow .ql-icon-picker .ql-picker-item{height:24px;width:24px;padding:2px 4px}.ql-snow .ql-color-picker .ql-picker-options{padding:3px 5px;width:152px}.ql-snow .ql-color-picker .ql-picker-item{border:1px solid transparent;float:left;height:16px;margin:2px;padding:0;width:16px}.ql-snow .ql-picker:not(.ql-color-picker):not(.ql-icon-picker) svg{position:absolute;margin-top:-9px;right:0;top:50%;width:18px}.ql-snow .ql-picker.ql-header .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-font .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-label[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-label]:not([data-label=''])::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-label]:not([data-label=''])::before{content:attr(data-label)}.ql-snow .ql-picker.ql-header{width:98px}.ql-snow .ql-picker.ql-header .ql-picker-label::before,.ql-snow .ql-picker.ql-header .ql-picker-item::before{content:'Normal'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="1"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before{content:'Heading 1'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="2"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before{content:'Heading 2'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="3"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before{content:'Heading 3'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="4"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before{content:'Heading 4'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="5"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before{content:'Heading 5'}.ql-snow .ql-picker.ql-header .ql-picker-label[data-value="6"]::before,.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before{content:'Heading 6'}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="1"]::before{font-size:2em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="2"]::before{font-size:1.5em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="3"]::before{font-size:1.17em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="4"]::before{font-size:1em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="5"]::before{font-size:.83em}.ql-snow .ql-picker.ql-header .ql-picker-item[data-value="6"]::before{font-size:.67em}.ql-snow .ql-picker.ql-font{width:108px}.ql-snow .ql-picker.ql-font .ql-picker-label::before,.ql-snow .ql-picker.ql-font .ql-picker-item::before{content:'Sans Serif'}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=serif]::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{content:'Serif'}.ql-snow .ql-picker.ql-font .ql-picker-label[data-value=monospace]::before,.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{content:'Monospace'}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=serif]::before{font-family:Georgia,Times New Roman,serif}.ql-snow .ql-picker.ql-font .ql-picker-item[data-value=monospace]::before{font-family:Monaco,Courier New,monospace}.ql-snow .ql-picker.ql-size{width:98px}.ql-snow .ql-picker.ql-size .ql-picker-label::before,.ql-snow .ql-picker.ql-size .ql-picker-item::before{content:'Normal'}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=small]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{content:'Small'}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=large]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{content:'Large'}.ql-snow .ql-picker.ql-size .ql-picker-label[data-value=huge]::before,.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{content:'Huge'}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=small]::before{font-size:10px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=large]::before{font-size:18px}.ql-snow .ql-picker.ql-size .ql-picker-item[data-value=huge]::before{font-size:32px}.ql-snow .ql-color-picker.ql-background .ql-picker-item{background-color:#fff}.ql-snow .ql-color-picker.ql-color .ql-picker-item{background-color:#000}.ql-code-block-container{position:relative}.ql-code-block-container .ql-ui{right:5px;top:5px}.ql-toolbar.ql-snow{border:1px solid #ccc;box-sizing:border-box;font-family:'Helvetica Neue','Helvetica','Arial',sans-serif;padding:8px}.ql-toolbar.ql-snow .ql-formats{margin-right:15px}.ql-toolbar.ql-snow .ql-picker-label{border:1px solid transparent}.ql-toolbar.ql-snow .ql-picker-options{border:1px solid transparent;box-shadow:rgba(0,0,0,0.2) 0 2px 8px}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-label{border-color:#ccc}.ql-toolbar.ql-snow .ql-picker.ql-expanded .ql-picker-options{border-color:#ccc}.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item.ql-selected,.ql-toolbar.ql-snow .ql-color-picker .ql-picker-item:hover{border-color:#000}.ql-toolbar.ql-snow + .ql-container.ql-snow{border-top:0}.ql-snow .ql-tooltip{background-color:#fff;border:1px solid #ccc;box-shadow:0 0 5px #ddd;color:#444;padding:5px 12px;white-space:nowrap}.ql-snow .ql-tooltip::before{content:"Visit URL:";line-height:26px;margin-right:8px}.ql-snow .ql-tooltip input[type=text]{display:none;border:1px solid #ccc;font-size:13px;height:26px;margin:0;padding:3px 5px;width:170px}.ql-snow .ql-tooltip a.ql-preview{display:inline-block;max-width:200px;overflow-x:hidden;text-overflow:ellipsis;vertical-align:top}.ql-snow .ql-tooltip a.ql-action::after{border-right:1px solid #ccc;content:'Edit';margin-left:16px;padding-right:8px}.ql-snow .ql-tooltip a.ql-remove::before{content:'Remove';margin-left:8px}.ql-snow .ql-tooltip a{line-height:26px}.ql-snow .ql-tooltip.ql-editing a.ql-preview,.ql-snow .ql-tooltip.ql-editing a.ql-remove{display:none}.ql-snow .ql-tooltip.ql-editing input[type=text]{display:inline-block}.ql-snow .ql-tooltip.ql-editing a.ql-action::after{border-right:0;content:'Save';padding-right:0}.ql-snow .ql-tooltip[data-mode=link]::before{content:"Enter link:"}.ql-snow .ql-tooltip[data-mode=formula]::before{content:"Enter formula:"}.ql-snow .ql-tooltip[data-mode=video]::before{content:"Enter video:"}.ql-snow a{color:#06c}.ql-container.ql-snow{border:1px solid #ccc}
.ql-disabled
{
    border: none !important;
}

.popover-empty
{
    min-width: 160px;
}

.internal-link
{
    color: #01a049;
    cursor: pointer;
    font-weight: normal;
    border-bottom: none;
    text-decoration: none;
}

.internal-link:hover
{
    color: #04a63f;
    background-color: transparent;
    text-decoration: underline;
}

.ql-editor a.internal-link
{
    color: #01a049 !important;
    text-decoration: none !important;
    border-bottom: none !important;
    font-weight: normal;
}

.ql-editor a.internal-link:hover
{
    background-color: transparent !important;
    text-decoration: underline !important;
}

.ql-toolbar .ql-internal-link .bp6-icon-pin::before
{
    font-size: 18px;
    color: #444;
}

.ql-toolbar .ql-internal-link .bp6-icon-pin:hover::before
{
    font-size: 18px;
    color: #0066cc;
}

.bp6-dark .ql-toolbar .ql-link:hover
{
    font-size: 18px;
    color: #0066cc;
}

.bp6-dark .ql-toolbar .ql-internal-link .bp6-icon-pin:hover::before
{
    font-size: 18px;
    color: #0066cc;
}

.bp6-dark .ql-toolbar .ql-internal-link .bp6-icon-pin::before
{
    font-size: 18px;
    color: #c3cbd8;
}

.ql-toolbar .ql-internal-link.ql-active .bp6-icon-pin::before
{
    color: #01a049;
}

.dark .ql-container, .dark-mode-quill .ql-container
{
    background-color: var(--bp-black);
    color: #e5e7eb !important;
}

.dark .ql-editor, .dark-mode-quill .ql-editor
{
    background-color: var(--bp-black);
    color: #e5e7eb !important;
    border: 1px solid #4f4f4f !important;
}

.dark-mode-quill .ql-toolbar.ql-snow
{
    border: 1px solid #4f4f4f !important;
    background-color: var(--bp-black);
    color: var(--bp-light-gray5);
}

.dark-mode-quill > .ql-snow .ql-picker.ql-expanded .ql-picker-options
{
    background-color: var(--bp-black);
    color: var(--bp-light-gray5);
}

.dark-mode-quill > .ql-snow .ql-picker-options .ql-picker-item
{
    background-color: var(--bp-black);
    color: var(--bp-light-gray5);
}

.dark-mode-quill > .ql-snow .ql-tooltip
{
    background-color: var(--bp-black);
    color: var(--bp-light-gray5);
}

.dark-mode-quill > .ql-snow .ql-tooltip a
{
    background-color: var(--bp-black);
    color: var(--bp-light-gray5);
}

.dark-mode-quill > .ql-snow .ql-stroke
{
    stroke: #c3cbd8;
}

.dark-mode-quill > .ql-snow .ql-active .ql-stroke
{
    stroke: #cdd0d8;
}

.dark-mode-quill > .ql-snow .ql-fill
{
    fill: #abb3bf;
}

.dark-mode-quill > .ql-snow .ql-active .ql-fill
{
    fill: #cdd0d8;
}

.dark-mode-quill .ql-snow .ql-picker {
    color: var(--bp-light-gray5);
    background-color: var(--bp-black);
}

.dark .ql-editor h1, .dark .ql-editor h2, .dark .ql-editor h3, .dark .ql-editor strong
{
    color: #f3f4f6;
}

.dark .ql-snow a {
    color: #8abbff;
}

.dark .ql-editor blockquote {
    border-left-color: #6b7280;
    color: #9ca3af;
}

.dark .ql-editor pre {
    background-color: #374151;
    color: #e5e7eb;
}

.bp6-dark .ql-container.ql-snow {
    border: 1px solid #4f4f4f;
}

.bp6-dark .ql-container.ql-snow.ql-disabled {
    border: none !important;
}

.description-block-header {
    color: #5d707f;
    background: #eaeff3;
    box-shadow: inset 0 0 0 rgba(16, 22, 26, 0.15), inset 0 -1px 0 rgba(16, 22, 26, 0.15);
}

.bp6-dark .description-block-header {
    color: var(--bp-light-gray5);
    background: var(--bp-dark-gray1);
}

.bp6-dark .vision-sample-pap-multi-column3 {
    background-color: var(--bp-black);
}

.vision-sample-pap-multi-column3 {
    background-color: var(--bp-white);
}

.description-content
{
    height: calc(100% - 120px);
    padding: 0 10px 10px;
}

.description-content-readonly
{
    height: calc(100% - 80px);
}

.description-edit-actions
{
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 10px;
}

.description-edit-actions > .bp6-button
{
    flex: 1 1 0;
    min-width: 100px;
}

.description-footer-actions > .bp6-button
{
    min-width: 100px;
    margin-left: 10px;
}

.quill
{
    display: flex;
    flex-direction: column;
    height: 100%;
}

.quill .ql-container.ql-snow
{
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    border: 0;
}

.bp6-dark .description-readonly.ql-editor
{
    border: 1px solid #4f4f4f !important;
}

.bp6-dark .description-readonly.ql-editor a
{
    color: #06c;
}

.description-readonly.ql-editor
{
    border: 1px solid #ccc;
}

.ql-editor
{
    height: 100%;
    overflow: auto;
    border: 1px solid #ccc;
}

.ql-container.ql-snow[contenteditable="false"] {
    user-select: text !important;
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
}

.ql-editor[contenteditable="false"] {
    user-select: text !important;
    -webkit-user-select: text !important;
    cursor: text !important;
}

.ql-toolbar.ql-snow .ql-formats
{
    position: relative;
    margin-right: 5px;
    padding-right: 5px;
}

.ql-toolbar.ql-snow .ql-formats:not(:last-child)::after
{
    content: "";
    position: absolute;
    top: 5px;
    right: 0;
    width: 1px;
    height: calc(100% - 10px);
    background: #c5cbd3;
}

.dark-mode-quill .ql-toolbar.ql-snow .ql-formats:not(:last-child)::after
{
    background: #5c6570;
}

#editor .ql-toolbar.ql-snow
{
    position: relative;
    z-index: 2;
    white-space: nowrap;
    overflow: visible;
}

.area-tooltip
{
    width: 100% !important;
}

.bp6-button.description-area-button {
    width: 100%;
    height: 30px;
    padding: 5px 25px;
}

.ql-editor[contenteditable="true"], .ql-editor[contenteditable="true"] a, .ql-editor[contenteditable="true"] a.internal-link
{
    cursor: text !important;
}

.ctrl-link-mode .ql-editor[contenteditable="true"] a, .ctrl-link-mode .ql-editor[contenteditable="true"] a.internal-link
{
    cursor: pointer !important;
}
.vision-sampleView-workArea-glass-gallery-visible {
    height: calc(100% - 292px);
    width: 100%;
    min-height: 500px;
}

.vision-sampleView-workArea {
    height: 100%;
    width: 100%;
}

.vision-sampleView-workArea-sampleMode {
    height: calc(100% - 100px);
    width: 100%;
}

.vision-sampleView-workArea-left {
    vertical-align: top;
    display: inline-block;
    height: 100%;
    background-color: #ffffff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 390px;
    margin-right: 20px;
}

.bp6-dark .vision-sampleView-workArea-left {
    background-color: var(--bp-black);
}

.vision-sampleView-workArea-rightPanel {
    position: relative;
    vertical-align: top;
    display: inline-block;
    height: 100%;
    margin-right: 20px;
    width: calc(100% - 450px);
}

.vision-sampleView-workArea-rightPanel.expanded {
    width: calc(100% - 40px);
}

/* Без боковых панелей слева нет и кнопки их сворачивания, поэтому её место занимает отступ */

.vision-sampleView-workArea-rightPanel.alone {
    margin-left: 20px;
}

.vision-sampleView-workArea-left.fixed {
    margin-left: 20px;
}

.vision-sampleView-workArea-left>.vision-sampleCommon {
    margin: 10px 20px 20px;
}

.vision-sampleView-workArea-left>div.vision-sample-customAttr-folder {
    margin-top: 10px;
    margin-left: 4px;
}

.vision-sampleAttributes {
    margin: 0 20px;
}
div.info-panel.bp6-toast-container {
    position: inherit;
    height: 40px;
    width: 100%;
    line-height: 40px;
    z-index: 4;
    margin: 0;
    padding: 0;
    opacity: 0.92;
}

div.info-panel.bp6-toast-container div.bp6-toast {
    padding: 0;
    max-width: inherit;
    width: 100%;
    margin: 0;
}

div.info-panel.bp6-toast-container div.bp6-toast span.bp6-icon {
    max-width: inherit;
}

div.info-panel.bp6-toast-container div.bp6-toast span.bp6-toast-message {
    padding: 0;
}

div.simple-table .drag-place {
    position: relative;
    width: 0;
    height: 0;
}

div.simple-table .drag-place .dragger {
    position: absolute;
    width: 2px;
    background-color: #5c7080;
    z-index: 5;
}

div.simple-table .work-area {
    overflow-x: auto;
    overflow-y: hidden;
}

div.simple-table .work-area > div {
    width: inherit !important;
}

div.simple-table .table-columns {
    position: relative;
    white-space: nowrap;
    border-top: 1px solid #c9ced2;
    border-bottom: 1px solid #c9ced2;
    color: #5d707f;
    font-size: 14px;
    height: 31px;
    background-color: #f5f8fa;
}

.bp6-dark div.simple-table .table-columns {
    border-top: 1px solid var(--bp-gray1);
    border-bottom: 1px solid var(--bp-gray1);
    color: var(--bp-light-gray1);
    background-color: var(--bp-dark-gray1);
}

div.simple-table .table-columns .table-column {
    position: relative;
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
    line-height: 30px;
}

div.simple-table .table-columns .table-column:hover {
    background-color: #e1e8ed;
}

.bp6-dark div.simple-table .table-columns .table-column:hover {
    background-color: var(--bp-dark-gray5);
}

div.simple-table .resizing .table-columns .table-column:hover {
    background-color: transparent;
}

div.simple-table .table-columns .column-resizer {
    position: absolute;
    display: inline-block;
    height: 29px;
    width: 16px;
    cursor: col-resize;
    margin: 0 0 0 -8px;
    z-index: 4;
}

div.simple-table .resizing .table-columns .column-resizer.active {
    background-image: linear-gradient(90deg, #c9ced2, #f5f8fa);
}

div.simple-table .table-columns .column-resizer:hover {
    background-image: linear-gradient(90deg, #c9ced2, #f5f8fa);
}

.bp6-dark div.simple-table .resizing .table-columns .column-resizer.active {
    background-image: linear-gradient(90deg, var(--bp-gray1), var(--bp-dark-gray5));
}

.bp6-dark div.simple-table .table-columns .column-resizer:hover {
    background-image: linear-gradient(90deg, var(--bp-gray1), var(--bp-dark-gray5));
}

div.simple-table .table-body .table-row {
    white-space: nowrap;
    font-size: 14px;
    height: 30px;
    color: #182026;
    box-shadow: inset 0 0 0 rgba(16, 22, 26, 0.15), inset 0 -1px 0 rgba(16, 22, 26, 0.15);
}

.bp6-dark div.simple-table .table-body .table-row {
    color: var(--bp-light-gray5);
}

div.simple-table .table-body .table-row.selected {
    background-color: #e7f2f8;
}

.bp6-dark div.simple-table .table-body .table-row.selected {
    background-color: var(--bp-dark-gray4);
}

div.simple-table:focus-within .table-body .table-row.selected {
    box-shadow: inset 0 0 0 rgba(19, 124, 189, 1), inset 0 -1px 0 rgba(19, 124, 189, 1), inset 0 1px 0 rgba(19, 124, 189, 1);
}

div.simple-table:focus .table-body .table-row.selected {
    box-shadow: inset 0 0 0 rgba(19, 124, 189, 1), inset 0 -1px 0 rgba(19, 124, 189, 1), inset 0 1px 0 rgba(19, 124, 189, 1);
}

div.simple-table .table-body .table-row:hover {
    background-color: #fbfbfb;
}

.bp6-dark div.simple-table .table-body .table-row:hover {
    background-color: var(--bp-dark-gray5);
}

div.simple-table .resizing .table-body .table-row:hover {
    background-color: transparent;
}

div.simple-table .table-body .table-row .table-cell {
    display: inline-block;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
    line-height: 30px;
}

div.simple-table .table-body .table-row .table-cell.editable {
    padding: 0;
    box-shadow: rgba(19, 124, 189, 1) 0 0 6px;
}

div.simple-table .table-body .table-row .table-cell.editable input[type="text"] {
    width: 100%;
    height: 30px;
    line-height: 30px;
    padding: 0 9px;
    border: 1px solid rgba(19, 124, 189, 1);
    border-radius: 0;
    font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Open Sans", "Helvetica Neue", "Icons16", sans-serif;
    font-size: 14px;
}

div.simple-table .table-body .table-row .table-cell .animated::before {
    display: inline-block;
    transition: transform ease 0.25s;
}

div.simple-table .table-body .table-row .table-cell .ccw::before {
    transform: rotate(-90deg);
    display: inline-block;
}

div.simple-table input[type="text"].typing {
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
    position: absolute;
    background-color: red;
    border: 0 transparent;
    z-index: -1;
}
.vision-flagCells-innerColumn {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vision-flagCells-tableFlex {
    overflow: auto;
    flex: 1 1 100%;
}

.vision-flagCells-commentFlex {
    flex: none;
    padding: 15px;
    box-shadow: inset 0 0.5px 0 0 #a0a0a0, inset 0 -0.5px 0 0 #a0a0a0;
}
div.vision-table .bp6-table-cell {
    font-size: 14px;
    padding: 0 4px;
}

div.vision-table .bp6-table-quadrant-scroll-container {
    border-bottom: 1px solid #c9ced2;
}

div.vision-table .bp6-table-quadrant-top {
    border-top: 1px solid #c9ced2;
}

div.vision-table .bp6-table-column-name {
    font-size: 14px;
    line-height: 28px;
}

div.vision-table .bp6-table-column-headers {
    color: #5d707f;
}

.bp6-dark div.vision-table .bp6-table-column-headers {
    color: var(--bp-light-gray1);
    background: var(--bp-dark-gray1);
}

.bp6-dark div.vision-table .bp6-table-top-container {
    background: var(--bp-dark-gray1);
    border-bottom: 1px solid var(--bp-gray1);
}

div.vision-table .bp6-table-cell .bp6-table-truncated-text {
    line-height: 30px;
}

div.vision-table .bp6-table-cell .bp6-table-editable-text {
    line-height: 30px;
}

.vision-table .bp6-table-body-cells .bp6-table-cell {
    box-shadow: inset 0 0 0 rgba(16, 22, 26, 0.15), inset 0 -1px 0 rgba(16, 22, 26, 0.15);
    cursor: default;
}

.vision-table .bp6-table-body-cells .bp6-table-last-in-column {
    box-shadow: inset 0 0 0 rgba(16, 22, 26, 0.15), 0 1px 0 rgba(16, 22, 26, 0.15);
}

.vision-table .bp6-table-column-headers .bp6-table-header {
    box-shadow: inset 0 0 0 rgba(16, 22, 26, 0.15), inset 0 -1px 0 rgba(16, 22, 26, 0.15);
}

.vision-table {
    box-shadow: 0 0 0;
}

.vision-table:focus {
    outline: 0;
}

.vision-table .bp6-table-quadrant-main {
    background: #ffffff;
}

.bp6-dark .vision-table .bp6-table-quadrant-main {
    background: var(--bp-black);
}

.bp6-dark .vision-table .bp6-table-quadrant-main .bp6-table-cell-client {
    background: var(--bp-black);
}

div.vision-table.vision-concentration-editCell-fix .bp6-table-quadrant-scroll-container {
    overflow-y: hidden;
}

.bp6-editable-text-editing {
    margin-top: 1px;
    height: calc(100% - 2px) !important;
}

.bp6-editable-text-input {
    margin-top: -1px;
}

.bp6-table-editable-name.bp6-editable-text::before {
    left: 0;
    right: 0;
    width: calc(100% - 2px);
}

.vision-sample-wbc-column-left {
    vertical-align: top;
    display: inline-block;
    width: 360px;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    margin-right: 20px;
}

.vision-sample-wbc-column-right {
    vertical-align: top;
    display: inline-block;
    width: calc(100% - 420px);
    height: 100%;
    overflow: hidden;
    margin-right: 20px;
    position: relative;
}

.vision-sample-wbc-column-right.expanded {
    width: calc(100% - 40px);
}

.vision-sample-wbc-innerColumn {
    width: calc(100% + 17px);
    height: 100%;
    overflow-y: scroll;
}

.vision-sample-wbc-colorPicker {
    width: 15px;
    height: 10px;
    margin: 7px 0 0 5px;
}

.vision-sample-wbc-gallery-groupHeader {
    background-color: #e1e8ed;
    padding: 6px 9px;
    border-radius: 3px;
}

.vision-sample-wbc-gallery-groupBody {
    padding: 6px 9px;
    color: #a19faf;
}

.vision-sample-wbc-gallery-cellImage {
    margin: 3px;
    box-shadow: 0 0 1px 1px #8a9ba8;
}

.vision-sample-wbc-hotkeyInput {
    text-align: center;
    cursor: text;
    width: 100%;
    height: 28px;
}

.vision-sample-wbc-hotkeyInput:focus {
    outline: 0;
}

.vision-sample-wbc-hotkeyInputFocused {
    box-shadow: inset 0 0 1px 1px rgba(2, 116, 175, 0.77);
    background: #ffffff;
    z-index: 50;
    position: relative;
}

.bp6-dark .vision-sample-wbc-hotkeyInputFocused {
    background: var(--bp-black);
}
.vision-TypesTreeTable-eye {
    padding-left: 5px;
    font-size: 14px;
}

.vision-TypesTreeTable {
    min-height: 10px;
    flex-direction: column;
}

.vision-TypesTreeTable-eyeHead {
    margin: 6px;
}

.vision-TypesTreeTable-countHead {
    font-size: 15px;
}

.vision-TypesTreeTable-eyeCell {
    margin-left: 2px;
    margin-top: 7px;
    cursor: pointer;
    color: #5d707f;
}

.vision-TypesTreeTable-eyeCell-popover {
    width: 18px;
}

.vision-TypesTreeTable-popover {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 4px;
}

.vision-TypesTreeTable .bp6-table-header-content {
    display: inline-grid;
}

.vision-TypesTreeTable-hotkeyHead-popover {
    padding: 0 10px;
}

.vision-TypesTreeTable .bp6-table-column-headers {
    color: #5d707f;
    background: #eaeff3;
    box-shadow: inset 0 0 0 rgba(16, 22, 26, 0.15), inset 0 -1px 0 rgba(16, 22, 26, 0.15);
}

.bp6-dark .vision-TypesTreeTable .bp6-table-column-headers {
    color: var(--bp-light-gray5);
    background: var(--bp-dark-gray1);
}

.vision-TypesTreeTable .bp6-table-cell {
    font-size: 14px;
    padding: 0 4px;
}

.vision-TypesTreeTable .bp6-table-column-headers .bp6-table-header {
    box-shadow: 0 0 0;
    line-height: 28px;
    height: 30px;
}

.vision-TypesTreeTable .bp6-table-quadrant-top {
    background: #eaeff3;
    padding-top: 1px;
    box-shadow: inset 0 0 0 rgba(16, 22, 26, 0.15), inset 0 -1px 0 rgba(16, 22, 26, 0.15);
}

.bp6-dark .vision-TypesTreeTable .bp6-table-quadrant-top {
    background: var(--bp-black);
}

.bp6-dark .vision-TypesTreeTable .bp6-table-cell-client {
    background: var(--bp-black);
}

.vision-TypesTreeTable .bp6-table-body-cells .bp6-table-cell {
    box-shadow: inset 0 0 0 rgba(16, 22, 26, 0.15), inset 0 -1px 0 rgba(16, 22, 26, 0.15);
    line-height: 28px;
    cursor: default;
}

.vision-TypesTreeTable .bp6-table-body-cells .bp6-table-last-in-column {
    box-shadow: inset 0 0 0 rgba(16, 22, 26, 0.15), 0 1px 0 rgba(16, 22, 26, 0.15);
}

.vision-TypesTreeTable:focus {
    outline: 0;
}

.vision-TypesTreeTable .bp6-table-quadrant-main {
    background: #ffffff;
}

.bp6-dark .vision-TypesTreeTable .bp6-table-quadrant-main {
    background: var(--bp-black);
}

.bp6-table-body-cells .bp6-table-cell.vision-TypesTreeTable-colorCell {
    padding: 0;
}

.vision-TypesTreeTable-tableDiv {
    width: 100%;
}

.bp6-dark .vision-sampleView-workArea-left .bp6-table-header.bp6-table-last-in-row, .bp6-dark .vision-flagCells-tableFlex .bp6-table-header.bp6-table-last-in-row {
    background-color: var(--bp-dark-gray1);
}

.vision-TypesTreeTable.onlyheader, .vision-rbc-treeTable.onlyheader {
    min-height: 30px;
    max-height: 30px;
    position: sticky !important;
    top: 0 !important;
    z-index: 1 !important;
}

.vision-TypesTreeTable.onlybody .bp6-table-top-container, .vision-TypesTreeTable.onlybody .bp6-table-quadrant.bp6-table-quadrant-top, .vision-rbc-treeTable.onlybody .bp6-table-top-container, .vision-rbc-treeTable.onlybody .bp6-table-quadrant.bp6-table-quadrant-top {
    display: none;
}
.vision-sample-rbc-column-left {
    vertical-align: top;
    display: inline-block;
    width: 390px;
    height: 100%;
    overflow-x: hidden;
    background: white;
    margin-right: 20px;
}

.bp6-dark .vision-sample-rbc-column-left {
    background: var(--bp-black);
}

.vision-sample-rbc-column-right {
    vertical-align: top;
    display: inline-block;
    width: calc(100% - 450px);
    height: 100%;
    margin-right: 20px;
    position: relative;
}

.vision-sample-rbc-column-right.expanded {
    width: calc(100% - 40px);
}

.vision-sample-rbc-circle {
    margin: 8px 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 0 1px 0 #4c494c;
}

.vision-sample-rbc-circleEditable {
    cursor: pointer;
}

.vision-sample-rbc-circleEditable.disabled {
    cursor: not-allowed;
}

.vision-sample-rbc-columnName {
    margin-left: 8px;
    font-size: 13px;
}

.vision-sample-rbc-circleGreen {
    background: #299229;
}

.vision-sample-rbc-circleRed {
    background: #db0000;
}

.vision-sample-rbc-circleBlank {
    background: #f3f2f2;
}

.vision-sample-rbc-cellGalleryModeButton {
    height: 40px;
    width: 40px;
    padding: 8px;
    vertical-align: top;
}

span button .vision-sample-rbc-groupSelect .bp6-button {
    box-shadow: 0 0 0 0 rgba(19, 124, 189, 0), 0 0 0 0 rgba(19, 124, 189, 0), inset 0 0 0 1px rgba(16, 22, 26, 0.15), inset 0 1px 1px rgba(16, 22, 26, 0.2);
    background: #ffffff;
    min-width: 120px;
    display: inline-block;
    vertical-align: top;
}

.vision-sample-rbc-groupSelect .bp6-icon-caret-down {
    position: relative;
    top: 2px;
}

.vision-sample-rbc-groupSelectLabel {
    min-width: 80px;
    display: inline-block;
    text-align: left;
}

.vision-sample-rbc-showMaskButton {
    height: 40px;
    width: 40px;
    padding: 8px;
    margin-left: 20px;
    vertical-align: top;
}

.vision-rbc-treeTable .bp6-table-column-headers {
    color: #5d707f;
    background: #eaeff3;
    box-shadow: inset 0 0 0 rgba(16, 22, 26, 0.15), inset 0 -1px 0 rgba(16, 22, 26, 0.15);
}

.vision-rbc-treeTable .bp6-table-header-content {
    display: inline-grid;
}

.bp6-dark .vision-rbc-treeTable .bp6-table-column-headers {
    background: var(--bp-dark-gray1);
    color: var(--bp-light-gray5);
}

.vision-rbc-treeTable .bp6-table-cell {
    font-size: 14px;
    padding: 0 4px;
}

.vision-rbc-treeTable .bp6-table-column-headers .bp6-table-header {
    box-shadow: 0 0 0;
    line-height: 28px;
    height: 30px;
}

.vision-rbc-treeTable .bp6-table-quadrant-top {
    background: #eaeff3;
    padding-top: 1px;
    box-shadow: inset 0 0 0 rgba(16, 22, 26, 0.15), inset 0 -1px 0 rgba(16, 22, 26, 0.15);
}

.bp6-dark .vision-rbc-treeTable .bp6-table-quadrant-top {
    background: var(--bp-black);
}

.vision-rbc-treeTable .bp6-table-body-cells .bp6-table-cell {
    box-shadow: inset 0 0 0 rgba(16, 22, 26, 0.15), inset 0 -1px 0 rgba(16, 22, 26, 0.15);
    line-height: 28px;
    cursor: default;
}

.vision-rbc-treeTable .bp6-table-body-cells .bp6-table-last-in-column {
    box-shadow: inset 0 0 0 rgba(16, 22, 26, 0.15), 0 1px 0 rgba(16, 22, 26, 0.15);
}

.vision-rbc-treeTable:focus {
    outline: 0;
}

.vision-rbc-treeTable .bp6-table-quadrant-main {
    background: #ffffff;
}

.bp6-dark .vision-rbc-treeTable .bp6-table-quadrant-main {
    background: var(--bp-black);
}

.bp6-dark .vision-rbc-treeTable .bp6-table-cell-client {
    background: var(--bp-black);
}

.vision-rbc-fitToZoom {
    height: 40px;
    width: 40px;
    margin-right: 20px;
}

.bp6-table-cell .bp6-tether-target:focus {
    outline: 0;
}
.vision-sample-pap-innerColumn {
    width: calc(100% + 17px);
    height: 100%;
    overflow-y: scroll;
}

.vision-sampleView-workArea-results {
    background: white;
    width: 100%;
    height: 100%;
    padding: 10px;
    overflow: auto;
}

.bp6-dark .vision-sampleView-workArea-results {
    background: var(--bp-black);
}

.vision-sampleView-workArea-results .papHalf {
    width: 50%;
    display: inline-block;
    padding-left: 10px;
    padding-right: 10px;
    vertical-align: top;
}

.vision-sampleView-workArea-main {
    position: relative;
    vertical-align: top;
    display: inline-block;
    height: 100%;
    width: calc(100% - 420px);
}

.vision-sampleView-workArea-leftRight {
    position: relative;
    vertical-align: top;
    display: inline-block;
    height: 100%;
    margin-right: 20px;
    width: calc(100% - 420px);
}

.vision-sampleView-workArea-leftRight.expanded {
    width: calc(100% - 40px);
}

.vision-sample-pap-multi-inner {
    width: 100%;
    height: 100%;
}

.vision-sample-pap-multi-column2 {
    position: relative;
    vertical-align: top;
    display: inline-block;
    height: 100%;
    width: calc(100% - 410px);
}

.vision-sample-pap-multi-column3 {
    position: relative;
    vertical-align: top;
    display: inline-block;
    height: 100%;
    margin-left: 20px;
    width: 390px;
}

.vision-sample-pap-multi-navBarRight {
    position: absolute;
    vertical-align: top;
    display: inline-block;
    left: calc(100% - 151px);
}

@media only screen and (max-width: 1500px) {

    .vision-sample-pap-multi-navBarRight {
        left: calc(100% - 151px);
    }
}

.multiscale-container {
    height: 100%;
    width: 100%;
    background-color: #ffffff;
}

.annotation-edit-body {
    margin-left: 20px;
    margin-top: 10px;
    margin-bottom: 5px;
}

.annotation-edit-color {
    width: 40px;
    height: 20px;
    background: repeating-conic-gradient(#cccccc 0% 25%, #ffffff 0% 50%) 0 0 / 10px 10px; /* Шахматная подложка: видна сквозь полупрозрачный цвет образца */
    box-shadow: 0 0 0 1px rgba(16, 22, 26, 0.2);
}
div.slides-listbox {
    vertical-align: top;
    display: inline-flex;
    width: 100%;
    height: 173px;
    padding: 7px 11px;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    cursor: default;
    background-color: #ffffff;
    margin-top: 20px;
}

.bp6-dark div.slides-listbox {
    background-color: var(--bp-black);
}

div.slides-listbox div.thumbnail {
    position: absolute;
    display: inline-block;
    border: 1px solid #d8d6d7;
    color: #182026;
    overflow: hidden;
    text-overflow: ellipsis;
    font: normal 13px Arial, Verdana;
    background-position-x: center !important;
    background-position-y: center !important;
    padding: 2px;
    text-shadow: -1px -1px 1px #ffffff, 0 -1px 1px #ffffff, 1px -1px 1px #ffffff, -1px 0 1px #ffffff, 1px 0 1px #ffffff, -1px 1px 1px #ffffff, 0 1px 1px #ffffff, 1px 1px 1px #ffffff;
    z-index: 1;
}

div.slides-listbox div.focused {
    border: 1px solid #3399ff;
    box-shadow: inset 0 0 1px 0 rgba(0, 0, 0, 0.75);
}

div.slides-listbox div.scrollbar {
    position: absolute;
    display: inline-block;
}

div.slides-listbox div.marker {
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 0;
}

div.slides-listbox div.marker::before {
    right: 0;
    top: 0;
    display: block;
    content: "";
    position: absolute;
    border-left: 18px solid transparent;
    border-top: 18px solid rgba(0, 0, 0, 0.6);
}

div.slides-listbox div.marker::after {
    display: block;
    content: "";
    position: absolute;
    border-style: solid;
    border-width: 15px 0 0 15px;
    top: 1px;
    right: 1px;
}

div.slides-listbox div.marker-blue::after {
    border-color: #2471c3 transparent transparent;
}

div.slides-listbox div.marker-green::after {
    border-color: #23b023 transparent transparent;
}

div.slides-listbox div.marker-purple::after {
    border-color: #c92ece transparent transparent;
}

div.slides-listbox div.marker-red::after {
    border-color: #df2323 transparent transparent;
}

div.slides-listbox div.marker-yellow::after {
    border-color: #e2c606 transparent transparent;
}

div.slides-listbox div.has-comment {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

div.slides-listbox div.has-comment::before {
    left: 0;
    bottom: 0;
    display: block;
    content: "";
    position: absolute;
    border-left: 18px solid rgba(0, 0, 0, 0.6);
    border-top: 18px solid transparent;
    pointer-events: none;
}

div.slides-listbox div.has-comment::after {
    display: block;
    content: "";
    position: absolute;
    border-left: 15px solid #bbbbbb;
    border-top: 15px solid transparent;
    bottom: 1px;
    left: 1px;
    pointer-events: none;
}

/* Участники пробы, у которых открыт этот снимок: маленькие аватары в правом нижнем углу */

div.slides-listbox div.slide-participants {
    position: absolute;
    right: 4px;
    bottom: 4px;
    display: flex;
    text-shadow: none;
}

div.slides-listbox div.slide-participants span + span {
    margin-left: -4px;
}

div.slides-listbox input.slide-checkbox {
    position: absolute;
    margin: 1px 0 0 4px;
    width: 15px;
}
/* Список кадров пробы Карио: по одному кадру в строке, превью фиксированного размера слева и сведения о кадре справа */

.karyo-framesList {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
    outline: none;
    background-color: #ffffff;
}

.bp6-dark .karyo-framesList {
    background-color: var(--bp-black);
}

.karyo-framesList div.karyo-framesList-item {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
    align-items: flex-start;
    box-sizing: border-box;
    padding: 4px;
    border: 1px solid #d8d6d7;
    color: #182026;
    font: normal 13px Arial, Verdana;
    cursor: pointer;
}

.bp6-dark .karyo-framesList div.karyo-framesList-item {
    border-color: var(--bp-dark-gray2);
    color: var(--bp-light-gray5);
}

/* Выделенный кадр: синяя заливка строки с белым текстом */

.karyo-framesList div.karyo-framesList-item.focused, .bp6-dark .karyo-framesList div.karyo-framesList-item.focused {
    border-color: #3399ff;
    background-color: #2d72d2;
    color: #ffffff;
}

/* Превью: всегда одного размера; фон белый и в тёмной теме - кадры сканера сняты на белом фоне */

.karyo-framesList .karyo-framesList-item-preview {
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box;
    width: 120px;
    height: 120px;
    border: 1px solid #d8d6d7;
    background-color: #ffffff;
    overflow: hidden;
}

.bp6-dark .karyo-framesList .karyo-framesList-item-preview {
    border-color: var(--bp-dark-gray2);
}

.karyo-framesList div.karyo-framesList-item-image {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
}

/* Номер кадра в углу превью: с белой обводкой, чтобы читался поверх изображения */

.karyo-framesList .karyo-framesList-item-number {
    position: absolute;
    left: 2px;
    top: 1px;
    color: #182026;
    text-shadow: -1px -1px 1px #ffffff, 0 -1px 1px #ffffff, 1px -1px 1px #ffffff, -1px 0 1px #ffffff, 1px 0 1px #ffffff, -1px 1px 1px #ffffff, 0 1px 1px #ffffff, 1px 1px 1px #ffffff;
    pointer-events: none;
}

/* Сведения о кадре: строки не переносятся, длинные обрезаются многоточием */

.karyo-framesList .karyo-framesList-item-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 2px;
    line-height: 18px;
}

.karyo-framesList .karyo-framesList-item-info > div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Число хромосом: зелёная плашка при нормальном числе, красная при отклонении */

.karyo-framesList .karyo-framesList-item-count {
    display: inline-block;
    min-width: 14px;
    padding: 0 5px;
    border-radius: 9px;
    text-align: center;
    color: #ffffff;
    font-weight: 600;
}

.karyo-framesList .karyo-framesList-item-count.count-normal {
    background-color: #23b023;
}

.karyo-framesList .karyo-framesList-item-count.count-abnormal {
    background-color: #df2323;
}

/* Разделитель перед нераспознанными кадрами: подпись и кнопка распознавания у правого края */

.karyo-framesList .karyo-framesList-divider {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    padding: 8px 4px;
    border-top: 1px solid #d8d6d7;
    border-bottom: 1px solid #d8d6d7;
    color: #182026;
    font: normal 13px Arial, Verdana;
}

.karyo-framesList .karyo-framesList-divider > div {
    align-self: stretch;
}

.bp6-dark .karyo-framesList .karyo-framesList-divider {
    border-color: var(--bp-dark-gray2);
    color: var(--bp-light-gray5);
}

/* "Добавлен в результаты": зелёный, как кнопка кариограммы; в выделенной строке - белый */

.karyo-framesList .karyo-framesList-item-inResults {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #238551;
}

.bp6-dark .karyo-framesList .karyo-framesList-item-inResults {
    color: #32a467;
}

.karyo-framesList div.karyo-framesList-item.focused .karyo-framesList-item-inResults {
    color: #ffffff;
}

.karyo-framesList div.marker {
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.karyo-framesList div.marker::before {
    right: 0;
    top: 0;
    display: block;
    content: "";
    position: absolute;
    border-left: 18px solid transparent;
    border-top: 18px solid rgba(0, 0, 0, 0.6);
}

.karyo-framesList div.marker::after {
    display: block;
    content: "";
    position: absolute;
    border-style: solid;
    border-width: 15px 0 0 15px;
    top: 1px;
    right: 1px;
}

.karyo-framesList div.marker-blue::after {
    border-color: #2471c3 transparent transparent;
}

.karyo-framesList div.marker-green::after {
    border-color: #23b023 transparent transparent;
}

.karyo-framesList div.marker-purple::after {
    border-color: #c92ece transparent transparent;
}

.karyo-framesList div.marker-red::after {
    border-color: #df2323 transparent transparent;
}

.karyo-framesList div.marker-yellow::after {
    border-color: #e2c606 transparent transparent;
}

.karyo-framesList div.has-comment {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.karyo-framesList div.has-comment::before {
    left: 0;
    bottom: 0;
    display: block;
    content: "";
    position: absolute;
    border-left: 18px solid rgba(0, 0, 0, 0.6);
    border-top: 18px solid transparent;
    pointer-events: none;
}

.karyo-framesList div.has-comment::after {
    display: block;
    content: "";
    position: absolute;
    border-left: 15px solid #bbbbbb;
    border-top: 15px solid transparent;
    bottom: 1px;
    left: 1px;
    pointer-events: none;
}

/* Уменьшенный вид неактивного режима в панели предпросмотра. Кадр лежит на фоне панели, как в области просмотра,
   и без полей: так он доходит до тех же краёв, что и лист кариограммы, и при смене режима превью не сдвигается */

.karyo-objectsPreview {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

/* Лист кариограммы белый и в тёмной теме: подписи групп на нём тёмные, а сам лист фон не заливает.
   Белое поле - часть листа, оно отделяет подписи и объекты от края */

.karyo-objectsPreview.karyo-objectsPreview-sheet {
    padding: 6px;
    background-color: #ffffff;
}

/* Канвас занимает панель целиком, а кадр вписывается в него отрисовкой:
   разметке подгонять нечего, и растянуть изображение она не может */

.karyo-objectsPreview-frame {
    display: block;
    width: 100%;
    height: 100%;
}

/* Оверлей объектов кадра 100х пробы Карио (режим "Объекты") */

.karyo-chromosomes-overlay {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.karyo-chromosomes-overlay-svg {
    width: 100%;
    height: 100%;
}

/* Контур хромосомы; цвет обводки задаётся объекту по типу (см. Lib/Karyo/ChromosomeColors). Толщины совпадают с лупой (KaryoMagnifier) */

.karyo-chromosome-contour {
    fill: none;
    stroke: #9b30d9;
    stroke-width: 2px;
    stroke-linejoin: round;
}

.karyo-chromosome-centerLine {
    fill: none;
    stroke: #ffe14d;
    stroke-width: 3px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.karyo-chromosome-centromere {
    fill: none;
    stroke: #ff4da6;
    stroke-width: 3px;
    stroke-linecap: round;
}

/* Обозначение хромосомы рядом с контуром: цвет текста задаётся объекту тем же, что у контура,
   а светлая обводка отделяет текст и от тела хромосомы, и от фона кадра. Шрифт как у обозначений
   кариограммы; размер прямоугольника подписи рассчитан на него (LabelCharWidthPx в KaryoChromosomesOverlay.tsx) */

.karyo-chromosome-label {
    font-size: 12px;
    font-weight: 600;
    text-anchor: middle;
    dominant-baseline: central;
    paint-order: stroke;
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 3px;
    stroke-linejoin: round;
}

.karyo-chromosome-selected {
    fill: rgba(46, 200, 255, 0.25);
    stroke: #2ec8ff;
    stroke-width: 3px;
    stroke-linejoin: round;
}

/* Маска объекта в предпросмотре редактора "Изменить маски" */

.karyo-chromosome-mask {
    fill: rgba(155, 48, 217, 0.45);
    stroke: #9b30d9;
    stroke-width: 2px;
    stroke-linejoin: round;
}

.karyo-toolPassthrough {
    pointer-events: none;
}

/* Оверлей инструмента "Кисть": перехватывает мышь, системный курсор скрыт —
   вместо него рисуется окружность с полупрозрачной заливкой */

.karyo-brushOverlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: none;
}

.karyo-brushOverlay-svg {
    width: 100%;
    height: 100%;
}

.karyo-brushOverlay-stroke {
    fill: none;
    stroke: rgba(255, 215, 0, 0.4);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.karyo-brushOverlay-point {
    fill: rgba(255, 215, 0, 0.4);
}

/* Курсор кисти: окружность, залитая полупрозрачным жёлтым цветом */

.karyo-brushOverlay-cursor {
    fill: rgba(255, 215, 0, 0.4);
    stroke: rgba(230, 190, 0, 0.9);
    stroke-width: 1px;
}

/* Ластик: след мазка с квадратными концами и курсор — полупрозрачный белый квадрат с чёрным контуром:
   под курсором видно, что именно он сотрёт. Вид курсора тот же в лупе (KaryoMagnifier) */

.karyo-eraserOverlay-stroke {
    fill: none;
    stroke: rgba(255, 255, 255, 0.9);
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.karyo-eraserOverlay-point {
    fill: rgba(255, 255, 255, 0.9);
}

.karyo-eraserOverlay-cursor {
    fill: rgba(255, 255, 255, 0.4);
    stroke: #000000;
    stroke-width: 1px;
}

/* Оверлей инструментов "Разделить", "Пересечение", "Пересечение по точкам" и "Изменить центромеру":
   перехватывает мышь и заменяет курсор над областью кадра своим для каждого инструмента.
   Курсоры задаёт компонент (ToolCursors в KaryoObjectToolOverlay.tsx) */

.karyo-toolOverlay {
    position: absolute;
    inset: 0;
    z-index: 10;
}

.karyo-toolOverlay-svg {
    width: 100%;
    height: 100%;
}

/* Подсветка контура, с которым сработает инструмент */

.karyo-toolOverlay-target {
    fill: rgba(61, 220, 132, 0.2);
    stroke: #3ddc84;
    stroke-width: 2px;
    stroke-linejoin: round;
}

/* Линия разреза: белая по чёрной, чтобы читаться и на объекте, и на фоне */

.karyo-toolOverlay-line {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.karyo-toolOverlay-lineShadow {
    fill: none;
    stroke: #000000;
    stroke-width: 4px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Точки на границе контура: указанные и следующая под курсором */

.karyo-toolOverlay-point {
    fill: #ffffff;
    stroke: #000000;
    stroke-width: 1.5px;
}

.karyo-toolOverlay-pointPreview {
    fill: rgba(255, 255, 255, 0.4);
    stroke: #000000;
    stroke-width: 1px;
    stroke-dasharray: 3 2;
}

/* Предпросмотр центромеры: пунктир в цвете отображаемой центромеры */

.karyo-toolOverlay-centromerePreview {
    fill: none;
    stroke: #ff4da6;
    stroke-width: 2px;
    stroke-linecap: round;
    stroke-dasharray: 4 3;
}

/* Ход распознавания хромосом над областью кадра: пока идёт запрос к серверу Karyo,
   по верхнему краю - полоса прогресса по кадрам, и кадр не принимает мышь.
   Вид самого кадра на это время задаёт KaryoShapeWaves */

.karyo-analyzing-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
}

.karyo-analyzing-overlay .karyo-analyzing-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    border-radius: 0;
}

/* Поле фигур над областью кадра во время распознавания сервером Karyo. Накладывается умножением:
   белый фон поля кадр не меняет, фигуры ложатся на него серым. Лежит над изображением и под
   оверлеями объектов, мышь пропускает насквозь. Появление задаёт волна фигур в шейдере,
   исчезновение - переход прозрачности */

.karyo-shapeWaves {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0;
    transition: opacity 400ms ease;
}

.karyo-shapeWaves.karyo-shapeWaves-visible {
    opacity: 1;
}

.karyo-shapeWaves-canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Лупа режима "Объекты": круг рядом с курсором с увеличенной областью кадра.
   Оверлей закрывает область кадра целиком, но мышь пропускает насквозь: лупа лежит поверх оверлеев
   инструментов и не мешает им */

.karyo-magnifier {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 15;
}

.karyo-magnifier-lens {
    position: absolute;
    overflow: hidden;
    border-radius: 50%;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px #e6e6e6, 0 1px 6px rgba(0, 0, 0, 0.5);
}

.bp6-dark .karyo-magnifier-lens {
    background-color: var(--bp-black);
}

.karyo-magnifier-image, .karyo-magnifier-objects {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

/* Изображение в лупе идёт с тем же CSS-фильтром, что и изображение кадра: пока кадр обрабатывается, оба размыты.
   Сетку и линии объектов фильтр не затрагивает */

.karyo-magnifier-image {
    filter: var(--karyo-image-filter, none);
}

/* Панель инструментов редактирования изображения кадра 100х пробы Карио */

.karyo-imageTools {
    display: flex;
    flex-direction: column;
    padding: 10px;
    height: 100%;
    overflow-y: auto;
}

.karyo-imageTools > * {
    flex-shrink: 0;
}

.karyo-imageTools .karyo-imageTools-bottomButton {
    margin-top: auto;
}

.karyo-imageTools .karyo-imageTools-button {
    margin-bottom: 4px;
}

/* Значок недоступной кнопки гаснет вместе с подписью */

.karyo-imageTools .karyo-imageTools-button:disabled > span:not(.bp6-button-text), .karyo-imageTools .karyo-imageTools-button.bp6-disabled > span:not(.bp6-button-text) {
    opacity: 0.5;
}

/* Строка из пары кнопок: панель кариограммы стоит в две колонки */

.karyo-imageTools.karyo-imageTools-twoColumns {
    display: grid;
    grid-template-columns: auto 1fr;
    align-content: start;
}

.karyo-imageTools-twoColumns > * {
    grid-column: 1 / -1;
}

.karyo-imageTools-row {
    display: contents;
}

.karyo-imageTools.karyo-imageTools-twoColumns .karyo-imageTools-button {
    padding-right: 4px;
    padding-left: 4px;
}

.karyo-imageTools-row > .karyo-imageTools-button > * {
    margin-right: 4px;
}

.karyo-imageTools-row > .karyo-imageTools-button > :last-child {
    margin-right: 0;
}

.karyo-imageTools .karyo-imageTools-button.bp6-active {
    background-color: oklch(from var(--bp-palette-blue-5) l c h / 0.35);
}

.bp6-dark .karyo-imageTools .karyo-imageTools-button.bp6-active {
    background-color: oklch(from var(--bp-palette-blue-2) l c h / 0.5);
}

/* Кнопка-слайдер: повторяет размеры большой кнопки панели, доля зелёной заливки показывает значение.
   Значение меняется движением мыши, поэтому курсор горизонтального изменения */

.karyo-imageTools .karyo-sliderButton {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    box-sizing: border-box;
    min-height: 40px;
    padding: 5px 15px;
    margin-bottom: 4px;
    border-radius: 3px;
    overflow: hidden;
    font-size: 16px;
    background-color: oklch(from var(--bp-palette-blue-5) l c h / 0.35);
    cursor: ew-resize;
}

.bp6-dark .karyo-imageTools .karyo-sliderButton {
    background-color: oklch(from var(--bp-palette-blue-2) l c h / 0.5);
}

.karyo-imageTools .karyo-sliderButton-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: var(--bp-palette-green-5);
}

.bp6-dark .karyo-imageTools .karyo-sliderButton-fill {
    background-color: var(--bp-palette-green-3);
}

/* Содержимое строки поверх заливки */

.karyo-imageTools .karyo-sliderButton > span {
    position: relative;
}

.karyo-imageTools .karyo-sliderButton-icon {
    display: inline-flex;
    align-items: center;
}

.karyo-imageTools .karyo-sliderButton-caption {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.karyo-imageTools .karyo-sliderButton-value {
    flex-shrink: 0;
    text-align: right;
}

.karyo-imageTools-sliders {
    padding: 5px 15px 10px;
}

.karyo-imageTools-slider-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.karyo-imageTools-slider-label {
    width: 80px;
    flex-shrink: 0;
}

/* Слайдер занимает место, оставшееся от подписи и значения. Своя минимальная ширина слайдера Blueprint (150px)
   не даёт строке ужаться и раздвигает панель шириной 320px */

.karyo-imageTools-slider-row .karyo-imageTools-slider {
    flex-grow: 1;
    min-width: 0;
}

.karyo-imageTools-slider-value {
    width: 30px;
    flex-shrink: 0;
    text-align: right;
}

.bp6-dark .karyo-imageTools-slider-row .bp6-slider-progress:not(.bp6-intent-primary) {
    background: rgba(255, 255, 255, 0.2);
}

.karyo-imageTools-divider {
    border-top: 1px solid rgba(17, 20, 24, 0.15);
    margin: 10px 0;
}

.bp6-dark .karyo-imageTools-divider {
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* Кнопка исходного вида в углу области кадра на странице и в окне фильтра ("Оригинал", "Без объектов"):
   действует, пока зажата. Лежит поверх оверлеев инструментов, иначе они перехватили бы нажатие, и поверх лупы,
   иначе лупа закрывала бы кнопку. Кадр под кнопкой светлый в любой теме, поэтому у неё полупрозрачная подложка
   в цветах темы. Класс в селекторах подложки поднимает их над правилами Blueprint для outlined-кнопок */

.karyo-peekButton {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 16;
    user-select: none;
}

.karyo-peekButton.bp6-button.bp6-outlined {
    background-color: rgba(255, 255, 255, 0.85);
}

.karyo-peekButton.bp6-button.bp6-outlined:hover {
    background-color: rgba(237, 239, 242, 0.9);
}

.karyo-peekButton.bp6-button.bp6-outlined:active, .karyo-peekButton.bp6-button.bp6-outlined.bp6-active {
    background-color: rgba(220, 224, 229, 0.95);
}

.bp6-dark .karyo-peekButton.bp6-button.bp6-outlined {
    background-color: rgba(28, 33, 39, 0.85);
}

.bp6-dark .karyo-peekButton.bp6-button.bp6-outlined:hover {
    background-color: rgba(47, 52, 60, 0.9);
}

.bp6-dark .karyo-peekButton.bp6-button.bp6-outlined:active, .bp6-dark .karyo-peekButton.bp6-button.bp6-outlined.bp6-active {
    background-color: rgba(64, 72, 84, 0.95);
}

.karyo-imageTools-areaOverlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    cursor: crosshair;
}

.karyo-imageTools-areaOverlay-svg {
    width: 100%;
    height: 100%;
}

.karyo-imageTools-areaLine-white, .karyo-imageTools-areaLine-black {
    fill: none;
    stroke-width: 2px;
    stroke-dasharray: 6 6;
}

.karyo-imageTools-areaLine-white {
    stroke: #ffffff;
}

.karyo-imageTools-areaLine-black {
    stroke: #000000;
    stroke-dashoffset: 6;
}

/* Окно "Фильтр изображения": предпросмотр кадра слева, кривые параметров справа */

.karyo-filterDialog.bp6-dialog {
    width: 95vw;
    height: 90vh;
    padding-bottom: 0;
}

.karyo-filterDialog .karyo-filterDialog-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    margin: 0;
    padding: 10px;
}

/* Заголовок окна: точка несохранённых изменений и название. Обёртка подсказки у точки гибкая, иначе строчная
   точка теряет размер и от неё остаётся только промежуток */

.karyo-filterDialog-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    vertical-align: middle;
}

.karyo-filterDialog-title > .bp6-popover-target {
    display: flex;
    flex-shrink: 0;
}

.karyo-filterDialog-title-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.karyo-filterDialog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.karyo-filterDialog-toolbar-view, .karyo-filterDialog-toolbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Текстовые кнопки окна не уже 100 px, как кнопки других окон программы; длинная подпись кнопку расширяет */

.karyo-filterDialog-button {
    min-width: 100px;
}

/* Список масштаба и кнопка "Подогнать размер кадра" - те же, что в панели страницы, но в высоту кнопок окна */

.karyo-filterDialog-toolbar .vision-controls-zoomInput.bp6-large .bp6-button {
    min-height: calc(var(--bp-surface-spacing) * 7.5);
    padding-top: 0;
    padding-bottom: 0;
    font-size: var(--bp-typography-size-body-medium);
    white-space: nowrap;
}

.karyo-filterDialog-toolbar .vision-controls-zoomInput.bp6-large::after {
    top: 7px;
}

.karyo-filterDialog-toolbar .vision-rbc-fitToZoom {
    width: calc(var(--bp-surface-spacing) * 7.5);
    height: calc(var(--bp-surface-spacing) * 7.5);
    margin-right: 0;
}

.karyo-filterDialog-main {
    display: flex;
    flex: 1 1 auto;
    gap: 10px;
    min-height: 0;
}

.karyo-filterDialog-preview {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    background-color: var(--bp-palette-light-gray-3);
}

.bp6-dark .karyo-filterDialog-preview {
    background-color: var(--bp-palette-black);
}

/* Область предпросмотра: по центру окно кадра, в углу кнопка "Оригинал" (karyo-peekButton) */

.karyo-filterDialog-area {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    min-height: 0;
    overflow: hidden;
}

/* Кадр: колесо масштабирует, перетаскивание сдвигает увеличенный кадр, с Ctrl движение мышью влево и вправо
   и колесо меняют положение предпросмотра. Окно кадра стоит по центру области и растёт с масштабом до её размера,
   обрезая увеличенный кадр */

.karyo-filterDialog-frame {
    position: relative;
    overflow: hidden;
    touch-action: none;
    user-select: none;
}

.karyo-filterDialog-frame.karyo-filterDialog-frame-pan {
    cursor: grab;
}

.karyo-filterDialog-frame.karyo-filterDialog-frame-panning {
    cursor: grabbing;
}

.karyo-filterDialog-frame.karyo-filterDialog-frame-gesture {
    cursor: ew-resize;
}

/* Слой масштаба: вписанный кадр (размер задаётся в разметке), канвас и шторка увеличиваются от левого верхнего
   угла, сдвиг задаёт translate */

.karyo-filterDialog-zoom {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
}

.karyo-filterDialog-zoom canvas {
    display: block;
    width: 100%;
    height: 100%;
}

.karyo-filterDialog-zoom canvas.karyo-filterDialog-pending {
    filter: blur(8px);
}

/* Шторка: вертикальная полоса поверх кадра, справа от неё обработанное изображение. Толщина делится на масштаб
   (--karyo-zoom), поэтому на увеличенном кадре полоса остаётся прежней толщины */

.karyo-filterDialog-zoom .vision-split-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: calc((100% - 12px / var(--karyo-zoom, 1)) * (1 - var(--karyo-shutter, 0.5)));
    display: flex;
    width: calc(12px / var(--karyo-zoom, 1));
    cursor: col-resize;
    opacity: 0.85;
}

.karyo-filterDialog-zoom .vision-split-handle::before {
    inset: 0 calc(-8px / var(--karyo-zoom, 1));
}

.karyo-filterDialog-zoom .vision-split-handle .bp6-icon {
    transform: rotate(90deg) scale(calc(1 / var(--karyo-zoom, 1)));
}

/* Плашка на кадре: подсказка управления при наведении и положение "Улучшение" при Ctrl и во время жеста. Мышь
   проходит сквозь неё к кадру. Плавно плашка только появляется: при плавном исчезновении после жеста мелькнул бы
   текст подсказки, который сменяет положение */

.karyo-filterDialog-hint {
    position: absolute;
    bottom: 12px;
    left: 50%;
    box-sizing: border-box;
    max-width: 90%;
    padding: 6px 10px;
    border-radius: 3px;
    color: #ffffff;
    background-color: rgba(17, 20, 24, 0.75);
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%);
}

.karyo-filterDialog-frame:hover .karyo-filterDialog-hint {
    opacity: 1;
    transition: opacity 0.15s;
}

.karyo-filterDialog-hint.karyo-filterDialog-hint-strength {
    width: 240px;
}

.karyo-filterDialog-hint.karyo-filterDialog-hint-active {
    opacity: 1;
    transition: opacity 0.15s;
}

.karyo-filterDialog-hint .bp6-icon {
    margin-right: 6px;
    color: inherit;
    vertical-align: text-bottom;
}

.karyo-filterDialog-hint-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.karyo-filterDialog-hint-value {
    font-weight: 600;
}

/* Полоска положения: середина - положение 0, заливка идёт от неё в сторону положения */

.karyo-filterDialog-hint-bar {
    position: relative;
    height: 4px;
    margin-top: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.25);
}

.karyo-filterDialog-hint-fill {
    position: absolute;
    top: 0;
    bottom: 0;
    background-color: var(--bp-palette-green-4);
}

.karyo-filterDialog-message {
    color: var(--bp-palette-gray-2);
}

.karyo-filterDialog-note {
    padding: 4px 8px;
    color: var(--bp-palette-orange-2);
}

.bp6-dark .karyo-filterDialog-note {
    color: var(--bp-palette-orange-5);
}

/* Правая колонка: прокручивается целиком, сверху закреплены слайдер "Улучшение" и гистограмма. Колонка вмещает
   карточки без прокрутки по горизонтали: сужается предпросмотр.
   Отступы: колонка 12px по бокам, между разделами 12px, между карточками 8px, внутри карточки
   --karyo-card-padding по бокам. --karyo-chart-inset (поле графика кривой) задаёт окно из ChartInset */

.karyo-filterDialog {
    --karyo-card-padding: 12px;
}

.karyo-filterDialog-right {
    display: flex;
    flex: 0 0 clamp(440px, 30vw, 560px);
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    padding: 0 12px 12px;
    overflow-y: auto;
}

/* Закреплённый блок: "Улучшение" и раздел гистограммы остаются над прокручиваемыми разделами */

.karyo-filterDialog-pinned {
    position: sticky;
    top: 0;
    z-index: 1;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(17, 20, 24, 0.15);
    background-color: var(--bp-palette-light-gray-5);
}

.bp6-dark .karyo-filterDialog-pinned {
    border-bottom-color: rgba(255, 255, 255, 0.2);
    background-color: var(--bp-palette-dark-gray-1);
}

/* Слайдер "Улучшение": той же ширины, что карточки, поэтому его -100, 0 и +100 стоят над теми же положениями
   графиков: строка слайдера отступает на рамку и внутренний отступ карточки и на поле графика. Ручка на краю
   уходит в этот отступ, а не на рамку */

.karyo-filterDialog-strength {
    padding-top: 8px;
}

.karyo-filterDialog-strength-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0 calc(1px + var(--karyo-card-padding));
}

.karyo-filterDialog-strength-value {
    font-size: 18px;
    font-weight: 600;
}

/* Кнопка сброса "Улучшения" в 0: правый край - над концом слайдера, который отступает ещё на поле графика */

.karyo-filterDialog-strength-reset {
    align-self: center;
    margin-right: var(--karyo-chart-inset, 0);
    margin-left: auto;
}

.karyo-filterDialog-strength .karyo-imageTools-slider-row {
    margin: 4px 0 0;
    padding: 0 calc(1px + var(--karyo-card-padding) + var(--karyo-chart-inset, 0px));
}

/* Пояснение "Улучшения" выровнено по его шапке */

.karyo-filterDialog-strength .karyo-filterDialog-info {
    padding: 0 calc(1px + var(--karyo-card-padding));
}

.karyo-filterDialog-strength .bp6-slider, .karyo-filterDialog-card .bp6-slider {
    height: 20px;
    min-width: 0;
}

/* Строки слайдеров карточки разделяет промежуток между строками карточки, свой нижний отступ им не нужен */

.karyo-filterDialog-card .karyo-imageTools-slider-row {
    margin-bottom: 0;
}

/* Разделы: заголовок-переключатель по левому краю карточек, под ним карточки */

.karyo-filterDialog-section-toggle.bp6-button {
    padding-right: 0;
    padding-left: 0;
    font-weight: 600;
}

.karyo-filterDialog-section-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}

/* Числовое поле занимает ширину своей обёртки. У поля Blueprint части не сжимаются, а у input своя ширина,
   поэтому без этих правил поле вылезает за карточку */

.karyo-filterDialog .bp6-numeric-input {
    width: 100%;
}

.karyo-filterDialog .bp6-numeric-input .bp6-input-group {
    flex: 1 1 auto;
    min-width: 0;
}

.karyo-filterDialog .bp6-numeric-input .bp6-input {
    width: 100%;
    min-width: 0;
}

/* Карточка: кривой (название, значение в положении предпросмотра, график и точки) или постоянных параметров */

.karyo-filterDialog-card {
    padding: 10px var(--karyo-card-padding);
    border: 1px solid rgba(17, 20, 24, 0.15);
    border-radius: 3px;
}

.bp6-dark .karyo-filterDialog-card {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Шапка карточки кривой: название, поле значения, единица. Сетка у шапок одна, поэтому поля значений стоят
   в одну колонку по всей панели */

.karyo-filterDialog-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px 56px;
    column-gap: 8px;
    align-items: center;
    min-height: 30px;
}

.karyo-filterDialog-card-head .karyo-filterDialog-row-title {
    font-weight: 600;
}

/* Название настройки и значок её пояснения: значок сразу за названием. Длинное название сжимается, а не сдвигает
   значок за край своей колонки */

.karyo-filterDialog-row-name {
    display: flex;
    align-items: center;
    min-width: 0;
}

.karyo-filterDialog-row-name .karyo-filterDialog-row-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Значок пояснения - тот же, что у атрибутов пробы; в строках окна он стоит по середине строки */

.karyo-filterDialog .custom-attr-info-block-icon {
    flex: none;
    align-self: center;
    cursor: pointer;
}

/* Пояснение настройки под её строкой */

.karyo-filterDialog-info {
    margin: 4px 0;
    color: var(--bp-palette-gray-1);
    font-size: 12px;
    line-height: 16px;
}

.bp6-dark .karyo-filterDialog-info {
    color: var(--bp-palette-gray-4);
}

/* Единица не выходит за свою колонку: подпись длиннее колонки обрезается, а не вылезает за карточку */

.karyo-filterDialog-row-unit {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--bp-palette-gray-2);
}

.bp6-dark .karyo-filterDialog-row-unit {
    color: var(--bp-palette-gray-4);
}

/* Числовой постоянный параметр: в шапке название занимает свободное место, значение и единица прижаты к правому
   краю; под шапкой слайдер во всю ширину карточки */

.karyo-filterDialog-slider-head {
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
}

.karyo-filterDialog-slider-head .karyo-filterDialog-row-name {
    flex: 1 1 auto;
}

.karyo-filterDialog-slider-head .karyo-filterDialog-row-unit {
    flex: none;
}

.karyo-filterDialog-slider-value {
    font-weight: 600;
}

.karyo-filterDialog-card-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}

/* Точки кривой: подложка цвета области графика, строка заголовков обычным текстом с линией снизу,
   строки полей одной высоты через равный промежуток. Колонки полей делят ширину поровну, колонка удаления узкая */

.karyo-filterDialog-keys {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    padding: 8px;
    border-radius: 3px;
    background-color: rgba(17, 20, 24, 0.03);
}

.bp6-dark .karyo-filterDialog-keys {
    background-color: rgba(0, 0, 0, 0.25);
}

.karyo-filterDialog-keys-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) 30px;
    column-gap: 8px;
    align-items: center;
    min-height: 30px;
}

.karyo-filterDialog-keys-row.karyo-filterDialog-keys-head {
    min-height: 0;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(17, 20, 24, 0.15);
}

.bp6-dark .karyo-filterDialog-keys-row.karyo-filterDialog-keys-head {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* Точка 0 - фильтр пробы: оранжевая метка, как у точки на графике */

.karyo-filterDialog-keys-middle {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-weight: 600;
}

.karyo-filterDialog-keys-middle::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border: 2px solid var(--bp-palette-orange-3);
    border-radius: 50%;
}

.karyo-filterDialog-keys-none {
    padding-left: 8px;
    color: var(--bp-palette-gray-3);
}

/* График кривой: ось - положение слайдера кадра, пунктир в 0 - фильтр пробы. Высота - ChartHeight */

.karyo-filterDialog-chart {
    height: 118px;
    margin-top: 6px;
    user-select: none;
}

.karyo-filterDialog-chart svg {
    display: block;
}

.karyo-filterDialog-chart-plot {
    fill: rgba(17, 20, 24, 0.03);
    stroke: rgba(17, 20, 24, 0.2);
}

.bp6-dark .karyo-filterDialog-chart-plot {
    fill: rgba(0, 0, 0, 0.25);
    stroke: rgba(255, 255, 255, 0.2);
}

.karyo-filterDialog-chart-grid {
    stroke: rgba(17, 20, 24, 0.08);
}

.bp6-dark .karyo-filterDialog-chart-grid {
    stroke: rgba(255, 255, 255, 0.08);
}

.karyo-filterDialog-chart-middle {
    stroke: var(--bp-palette-orange-3);
    stroke-dasharray: 3 3;
}

.karyo-filterDialog-chart-position {
    stroke: var(--bp-palette-blue-3);
    stroke-opacity: 0.6;
}

.karyo-filterDialog-chart-line {
    fill: none;
    stroke: var(--bp-palette-blue-3);
    stroke-width: 2px;
}

.karyo-filterDialog-chart-dot {
    fill: var(--bp-palette-blue-3);
}

.karyo-filterDialog-chart-key {
    fill: #ffffff;
    stroke: var(--bp-palette-blue-3);
    stroke-width: 2px;
    cursor: grab;
}

.karyo-filterDialog-chart-key-middle {
    stroke: var(--bp-palette-orange-3);
    cursor: ns-resize;
}

.karyo-filterDialog-chart-label {
    font-size: 9px;
    fill: var(--bp-palette-gray-2);
}

.bp6-dark .karyo-filterDialog-chart-label {
    fill: var(--bp-palette-gray-4);
}

/* Границы значений поверх области графика: обводка цветом фона окна отделяет их от кривой */

.karyo-filterDialog-chart-range {
    paint-order: stroke;
    stroke: var(--bp-palette-light-gray-5);
    stroke-width: 3px;
    stroke-linejoin: round;
}

.bp6-dark .karyo-filterDialog-chart-range {
    stroke: var(--bp-palette-dark-gray-1);
}

/* Гистограмма кадра: заливка - кадр до фильтра, линия - после, пунктир - точки уровней. Рамка и подписи - как
   у графиков кривых. Линии растягиваются на ширину графика, а подписи стоят поверх по процентам ширины */

.karyo-filterDialog-histogram-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 24px;
}

.karyo-filterDialog-histogram-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--bp-palette-gray-1);
    font-size: 12px;
}

.bp6-dark .karyo-filterDialog-histogram-legend {
    color: var(--bp-palette-gray-4);
}

.karyo-filterDialog-histogram-key {
    width: 14px;
    height: 8px;
}

.karyo-filterDialog-histogram-key-before {
    background-color: rgba(17, 20, 24, 0.25);
}

.bp6-dark .karyo-filterDialog-histogram-key-before {
    background-color: rgba(255, 255, 255, 0.25);
}

.karyo-filterDialog-histogram-key-after {
    height: 0;
    border-top: 2px solid var(--bp-palette-blue-3);
}

.karyo-filterDialog-histogram {
    margin-top: 6px;
    user-select: none;
}

.karyo-filterDialog-histogram-plot {
    position: relative;
    height: 76px;
}

/* Рамка идёт по краю области графика, и её обводка выходит наружу на половину толщины */

.karyo-filterDialog-histogram-plot svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.karyo-filterDialog-histogram-before {
    fill: rgba(17, 20, 24, 0.25);
}

.bp6-dark .karyo-filterDialog-histogram-before {
    fill: rgba(255, 255, 255, 0.25);
}

.karyo-filterDialog-histogram-after {
    fill: none;
    stroke: var(--bp-palette-blue-3);
    stroke-width: 1.5px;
}

.karyo-filterDialog-histogram-mark {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 1px dashed var(--bp-palette-orange-3);
}

/* Подписи меток - в двух строках сверху графика; ореол цвета фона окна отделяет их от гистограммы */

.karyo-filterDialog-histogram-label {
    position: absolute;
    padding: 0 4px;
    color: var(--bp-palette-gray-2);
    font-size: 9px;
    line-height: 11px;
    white-space: nowrap;
    text-shadow: 0 0 2px var(--bp-palette-light-gray-5), 0 0 2px var(--bp-palette-light-gray-5), 0 0 3px var(--bp-palette-light-gray-5);
    pointer-events: none;
}

.bp6-dark .karyo-filterDialog-histogram-label {
    color: var(--bp-palette-gray-4);
    text-shadow: 0 0 2px var(--bp-palette-dark-gray-1), 0 0 2px var(--bp-palette-dark-gray-1), 0 0 3px var(--bp-palette-dark-gray-1);
}

.karyo-filterDialog-histogram-label-row0 {
    top: 2px;
}

.karyo-filterDialog-histogram-label-row1 {
    top: 14px;
}

.karyo-filterDialog-histogram-ticks {
    position: relative;
    height: 14px;
}

.karyo-filterDialog-histogram-ticks span {
    position: absolute;
    top: 3px;
    color: var(--bp-palette-gray-2);
    font-size: 9px;
    line-height: 10px;
    transform: translateX(-50%);
}

.bp6-dark .karyo-filterDialog-histogram-ticks span {
    color: var(--bp-palette-gray-4);
}

/* Крайние подписи шкалы стоят у краёв графика, а не наполовину за ними */

.karyo-filterDialog-histogram-ticks span:first-child {
    transform: none;
}

.karyo-filterDialog-histogram-ticks span:last-child {
    transform: translateX(-100%);
}

.karyo-filterDialog-histogram-fills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 16px;
    min-height: 24px;
    margin-top: 4px;
}

.karyo-filterDialog-histogram-fill {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

/* Карточка постоянных параметров: строки через равный промежуток */

.karyo-filterDialog-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Строка выключателя шага фона: выключатель стоит сразу за своей подписью. Свои внешние отступы ему не нужны:
   с ними он стоял бы выше середины строки */

.karyo-filterDialog-switch {
    display: flex;
    align-items: center;
    min-height: 30px;
}

.karyo-filterDialog-switch .bp6-switch {
    margin: 0;
}

/* Рабочая область в строку: левая панель, область кадра и правая колонка. Свёрнутая панель заменяется полосой,
   область кадра забирает всю ширину, которую не заняли панели */

.karyo-frames-workArea {
    display: flex;
}

/* Левая панель со списком кадров, на 70px уже стандартной (390px): заголовок и под ним список */

.karyo-frames-leftPanel {
    flex: 0 0 320px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: #ffffff;
    overflow: hidden;
    margin-left: 20px;
}

/* Свёрнутая боковая панель скрыта, но не убрана: её содержимое сохраняет состояние */

.karyo-frames-workArea .karyo-frames-panelCollapsed {
    display: none;
}

/* Заголовок развёрнутой боковой панели: название и кнопка сворачивания со стрелкой к краю окна,
   как у панели препаратов в просмотре случая (vision-case-filmHeader). У правой панели кнопка слева */

.karyo-frames-panelHeader {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    padding: 6px 4px 6px 12px;
    font-weight: bold;
    font-size: 12.5px;
}

.karyo-frames-panelHeader-left {
    justify-content: space-between;
}

.karyo-frames-panelHeader-right {
    gap: 4px;
    padding: 6px 12px 6px 4px;
}

/* Содержимое развёрнутой боковой панели под заголовком занимает оставшуюся высоту */

.karyo-frames-panelBody {
    flex: 1 1 0;
    min-height: 0;
}

/* Свёрнутая боковая панель: полоса с названием вертикально и шевроном в сторону, куда панель развернётся.
   Щелчок по полосе разворачивает панель */

.karyo-frames-panelStrip {
    flex: 0 0 24px;
    box-sizing: border-box;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
    background-color: #ffffff;
    color: #5c7080;
    cursor: pointer;
    user-select: none;
}

.bp6-dark .karyo-frames-panelStrip {
    background-color: var(--bp-black);
    color: var(--bp-gray4);
}

/* Подсветка полупрозрачным слоем: годится для обеих тем */

.karyo-frames-panelStrip:hover {
    background-image: linear-gradient(rgba(128, 128, 128, 0.15), rgba(128, 128, 128, 0.15));
}

.karyo-frames-panelStrip-left {
    margin-left: 20px;
}

.karyo-frames-panelStrip-right {
    margin-left: 20px;
}

/* Подпись читается снизу вверх */

.karyo-frames-panelStrip-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-weight: 600;
    white-space: nowrap;
}

.bp6-dark .karyo-frames-leftPanel {
    background-color: var(--bp-black);
}

/* Пока распознаётся пачка кадров, рабочая область закрыта оверлеем целиком: он позиционируется относительно неё */

.karyo-frames-batchAnalyzing {
    position: relative;
}

.karyo-frames-rightPanel {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    margin-left: 20px;
    margin-right: 20px;
}

/* Левая секция тулбара сужается вместе с панелью кадров, средняя секция (flex-grow) смещается на те же 70px */

.karyo-frames-toolbar .vision-toolbar-leftbar {
    width: 320px;
    min-width: 320px;
}

.karyo-frames-viewer {
    display: flex;
    height: 100%;
}

.karyo-frames-rightPanel .info-panel + .karyo-frames-viewer {
    height: calc(100% - 40px);
}

/* В режиме кадров Карио нет нижней ленты миниатюр, поэтому область просмотра кадра занимает всю высоту */

.karyo-frames-viewer .vision-sample-framesGallery-top {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    height: 100%;
    width: auto;
}

/* CSS-фильтр изображения текущего кадра поверх уже обработанных пикселей. Переменную задаёт область кадра,
   её же берёт изображение лупы (см. KaryoMagnifier.css) */

.karyo-frames-viewer .vision-panzoom canvas {
    filter: var(--karyo-image-filter, none);
}

/* Для текущего кадра ещё нет обработанного изображения: исходное размыто и в области кадра, и в лупе */

.karyo-frames-enhancing {
    --karyo-image-filter: blur(8px);
}

/* Информация в нижней части области кадра в режиме "Объекты": количество хромосом.
   Лежит поверх изображения, которое светлое в любой теме, поэтому подпись идёт на полупрозрачной
   подложке в цветах темы: иначе светлый текст тёмной темы на кадре не виден */

.karyo-frames-objectsInfo {
    position: absolute;
    left: 10px;
    bottom: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.8);
    color: #1c2127;
    pointer-events: none;
}

.bp6-dark .karyo-frames-objectsInfo {
    background-color: rgba(28, 33, 39, 0.8);
    color: #f6f7f9;
}

.karyo-frames-objectsInfo-count {
    font-weight: 600;
}

.karyo-frames-objectsInfo-count.count-normal {
    color: var(--bp-palette-green-3);
}

.karyo-frames-objectsInfo-count.count-abnormal {
    color: var(--bp-palette-red-3);
}

.bp6-dark .karyo-frames-objectsInfo-count.count-normal {
    color: var(--bp-palette-green-5);
}

.bp6-dark .karyo-frames-objectsInfo-count.count-abnormal {
    color: var(--bp-palette-red-5);
}

.karyo-frames-objectsLoading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.6);
}

.bp6-dark .karyo-frames-objectsLoading {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Колонка справа от области просмотра кадра - одна панель: заголовок, под ним панель предпросмотра неактивного режима
   и рабочая область с инструментами (шириной 320px — как левая панель кадров). Ширина не зависит от содержимого:
   широкая строка инструментов не раздвигает колонку */

.karyo-frames-rightColumn {
    display: flex;
    flex: 0 0 320px;
    min-width: 0;
    flex-direction: column;
    height: 100%;
    margin-left: 20px;
    background-color: #ffffff;
}

.bp6-dark .karyo-frames-rightColumn {
    background-color: var(--bp-black);
}

/* Линии до и после предпросмотра - как разделители в списке инструментов: отступ 10px от краёв панели
   и 10px до соседних блоков. Снизу заголовка уже есть 6px его поля, сверху инструментов - 10px их поля */

.karyo-frames-rightColumn > .karyo-imageTools-divider {
    flex-shrink: 0;
}

.karyo-frames-panelHeader + .karyo-imageTools-divider {
    margin: 4px 10px 10px;
}

.karyo-frames-modePreview + .karyo-imageTools-divider {
    margin: 10px 10px 0;
}

/* Панель предпросмотра и переключения неактивного режима работы с пробой (Объекты/Кариограмма) высотой 180px */

.karyo-frames-modePreview {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    height: 180px;
    background-color: #ffffff;
}

.bp6-dark .karyo-frames-modePreview {
    background-color: var(--bp-black);
}

/* Дополнительная рабочая область с инструментами работы с изображением
   (по аналогии с vision-sample-pap-multi-column3) */

.karyo-frames-rightWorkArea {
    position: relative;
    flex: 1;
    min-height: 0;
    background-color: #ffffff;
}

.bp6-dark .karyo-frames-rightWorkArea {
    background-color: var(--bp-black);
}

/* Кнопка "Подогнать размер кадра" в группе тулбара: без собственного отступа, чтобы отступы между группами были одинаковыми */

.vision-sampleview-toolbar .karyo-frames-toolbar-fit .vision-rbc-fitToZoom {
    margin-right: 0;
}

/* Кнопки тулбара со значком Blueprint ("Распознать хромосомы", "Лупа"): размер как у соседних кнопок;
   раскладка Blueprint не переопределяется, она и центрирует значок */

.vision-sampleview-toolbar .karyo-frames-toolbar-iconButton {
    width: 40px;
    height: 40px;
    padding: 0;
}

/* Кнопки распознавания сервером Karyo и скачивания исходного изображения кадра: жёлтые полосы по тёмно-серому
   выделяют их среди обычных кнопок панели. Узор привязан к окну, а не к кнопке: у соседних кнопок полосы
   продолжают друг друга без сдвига на стыке. Поэтому подсветка при наведении - полупрозрачная тень поверх узора,
   а не filter: filter на кнопке привязал бы узор к ней. Значок белый с тёмной обводкой, чтобы читаться на обоих цветах */

.vision-sampleview-toolbar .karyo-frames-toolbar-striped {
    background-image: repeating-linear-gradient(135deg, #f5c400 0 7px, #3d3f45 7px 14px);
    background-attachment: fixed;
}

.vision-sampleview-toolbar .karyo-frames-toolbar-striped:hover:not(.bp6-disabled) {
    box-shadow: inset 0 0 0 40px rgba(255, 255, 255, 0.15);
}

.vision-sampleview-toolbar .karyo-frames-toolbar-striped.bp6-disabled {
    opacity: 0.45;
}

.vision-sampleview-toolbar .karyo-frames-toolbar-striped .bp6-icon {
    color: #ffffff;
    filter: drop-shadow(0 0 1px #000000) drop-shadow(0 0 1px #000000);
}

/* Blueprint Table задаёт контейнеру inline-высоту с учётом скрытой шапки (.onlybody),
   из-за чего под строками остаётся пустая полоса высотой в шапку. Ограничиваем высоту содержимым. */

.karyo-typesTree .vision-TypesTreeTable.onlybody .bp6-table-container {
    height: auto !important;
}
/* Однострочное поле с автодополнением из шаблонов и кнопками шаблонов в ряд справа */

.template-suggest-field {
    margin-bottom: 10px;
}

.template-suggest-row {
    display: flex;
    align-items: center;
    gap: 2.5px;
}

.template-suggest-row .template-suggest-input {
    flex: 1 1 auto;
    min-width: 0;
}

/* Кнопки шаблонов у многострочных полей стоят столбцом; у однострочного поля они в ряд, по высоте поля */

.template-suggest-row .template-suggest-buttons {
    flex: 0 0 auto;
    flex-direction: row;
}

/* Многострочный шаблон читается в подсказке целиком */

.template-suggest-item .bp6-text-overflow-ellipsis {
    white-space: pre-line;
}

/* Раздел «Данные анализа» на вкладке результатов пробы Карио */

.karyo-analysisData-field {
    margin-bottom: 10px;
}

.karyo-analysisData-attribute {
    display: flex;
    align-items: center;
    gap: 4px;
}

.karyo-analysisData-attribute .bp6-popover-target {
    flex: 1 1 auto;
    min-width: 0;
}

.karyo-analysisData-attribute .karyo-analysisData-editButton {
    flex: 0 0 auto;
}

.karyo-analysisData-templates {
    margin-top: 6px;
}

/* Диалог изменения вариантов значений списка */

.karyo-choiceValues-dialog {
    width: min(640px, calc(100vw - 40px));
}

.karyo-choiceValues-row {
    display: grid;
    grid-template-columns: 1fr 180px 30px;
    gap: 6px;
    align-items: center;
    margin-bottom: 6px;
}

.karyo-choiceValues-header {
    color: #5f6b7c;
    font-size: 12px;
    margin-bottom: 2px;
}

.bp6-dark .karyo-choiceValues-header {
    color: var(--bp-gray4);
}

.karyo-choiceValues-addButton {
    margin-top: 4px;
}

.karyo-choiceValues-error {
    min-height: 18px;
    margin-top: 8px;
    color: var(--bp-red3);
}

.karyo-choiceValues-footerButton {
    width: 100px;
}

button img.vector, a img.vector {
    margin-top: 2px;
}

/*
 * Размеры и межстрочный интервал псевдоэлемента равны глифу 20px. Blueprint задаёт иконке кнопки высоту 16px:
 * при меньшей высоте или line-height < 1 глиф встаёт ниже центра кнопки
 */

button.bp6-button.bp6-icon-large::before {
    font-family: "blueprint-icons-20", sans-serif;
    font-size: 20px;
    line-height: 1;
    width: 20px;
    height: 20px;
}

a.bp6-button.bp6-icon-large::before {
    font-family: "blueprint-icons-20", sans-serif;
    font-size: 20px;
    line-height: 1;
    width: 20px;
    height: 20px;
}

.no-mouse-events {
    pointer-events: none;
}

.vision-sample-expander {
    vertical-align: middle;
    display: inline-flex;
    justify-content: center;
    flex-direction: column;
    width: 20px;
    height: 100%;
    overflow: hidden;
}

.vision-sample-expander button {
    width: 20px;
    height: 20px;
    line-height: 1;
    font-size: 14px;
    font-weight: normal;
    font-style: normal;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    color: #5c7080;
    background-color: transparent;
    border: none;
}

.vision-sample-expander button:hover {
    background-color: #d6dee5;
    cursor: pointer;
}

.vision-sampleView-with-glass-gallery {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.chevron-rotated {
    transform: rotate(180deg);
    transition: transform 0.2s ease;
}
.vision-sample-digital-slide {
    width: calc(100% - 40px);
    height: calc(100% - 40px);
    margin: 20px 0 20px 20px;
}

.vision-sample-digital-slide-content {
    position: relative;
    height: 100%;
    min-height: 0;
}

.vision-sample-digital-slide-plate {
    display: none;
}

.vision-split-handle {
    --vision-split-handle-shadow: rgba(16, 22, 26, 0.35);
    display: none;
    position: relative;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    color: #5c7080;
    background-color: #eaeff3;
    touch-action: none;
    user-select: none;
    z-index: 1;
}

.bp6-dark .vision-split-handle {
    --vision-split-handle-shadow: rgba(0, 0, 0, 0.6);
    background-color: var(--bp-dark-gray1);
}

.vision-split-handle::before {
    content: "";
    position: absolute;
    inset: -10px 0;
}

@media (max-width: 800px), (max-height: 500px) {

    .vision-mainPanel.vision-mainPanel-ds {
        min-height: 0;
    }

    .vision-mainPanel-ds .vision-navBar-div {
        display: none;
    }

    .vision-mainPanel-ds .vision-workArea-w-breadcrumb {
        height: 100%;
    }

    .vision-sample-digital-slide {
        width: 100%;
        height: 100%;
        margin: 0;
    }

    .vision-sample-digital-slide .slides-listbox, .vision-sample-digital-slide-content > .vision-sample-expander, .vision-sample-digital-slide .draggable-container {
        display: none;
    }

    .vision-sample-digital-slide .hi-res-image-slide-data {
        display: none !important; /* На мобильной раскладке окно данных ЦП не показывается. Не убирать !important: окно задаёт display собственным стилем */
    }

    .vision-sample-digital-slide-content {
        display: flex;
        flex-direction: column;
    }

    .vision-sample-digital-slide-content > .vision-sample-pap-multi-column2 {
        flex: 1 1 0;
        width: auto;
        height: auto;
        min-width: 0;
        min-height: 0;
        overflow: hidden;
    }

    .vision-sample-digital-slide-content > .vision-sample-pap-multi-column3 {
        flex: 0 0 calc((100% - 24px) * var(--vision-ds-description-size));
        width: auto !important;
        height: auto;
        min-width: 0;
        min-height: 0;
        margin-left: 0 !important;
        overflow: hidden;
    }

    .vision-sample-digital-slide-plate {
        display: block;
        position: absolute;
        top: 8px;
        box-sizing: content-box;
        height: 25px;
        padding: 4px 6px;
        border-radius: 6px;
        background-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 1px 3px rgba(16, 22, 26, 0.3);
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        z-index: 11;
    }

    .bp6-dark .vision-sample-digital-slide-plate {
        background-color: rgba(16, 22, 26, 0.7);
    }

    .vision-sample-digital-slide-logo {
        display: flex;
        align-items: center;
        left: 8px;
        margin: 0;
        border: 0;
        cursor: pointer;
    }

    .vision-sample-digital-slide-logo img {
        height: 100%;
    }

    .vision-sample-digital-slide-menu {
        display: flex;
        align-items: center;
        justify-content: center;
        right: 8px;
        width: 25px;
        padding: 4px;
        margin: 0;
        border: 0;
        color: #5c7080;
        cursor: pointer;
    }

    .vision-sample-digital-slide-logo:focus:not(:focus-visible), .vision-sample-digital-slide-menu:focus:not(:focus-visible) {
        outline: none;
    }

    .bp6-dark .vision-sample-digital-slide-menu {
        color: #a7b6c2;
    }

    .vision-split-handle {
        display: flex;
        border-radius: 4px 4px 0 0;
        box-shadow: 0 -6px 10px -6px var(--vision-split-handle-shadow);
        cursor: row-resize;
    }

    @media (orientation: landscape) {

        .vision-sample-digital-slide-content {
            flex-direction: row;
        }

        .vision-split-handle {
            border-radius: 4px 0 0 4px;
            box-shadow: -6px 0 10px -6px var(--vision-split-handle-shadow);
            cursor: col-resize;
        }

        .vision-split-handle::before {
            inset: 0 -10px;
        }

        .vision-split-handle .bp6-icon {
            transform: rotate(90deg);
        }
    }
}

.vision-sample-digital-slide .thumbnail {
    position: absolute;
    display: inline-block;
    border: 1px solid #d8d6d7;
    color: #182026;
    overflow: hidden;
    text-overflow: ellipsis;
    font: normal 13px Arial, Verdana;
    background-position-x: center !important;
    background-position-y: center !important;
    padding: 2px;
    text-shadow: -1px -1px 1px #ffffff, 0 -1px 1px #ffffff, 1px -1px 1px #ffffff, -1px 0 1px #ffffff, 1px 0 1px #ffffff, -1px 1px 1px #ffffff, 0 1px 1px #ffffff, 1px 1px 1px #ffffff;
    z-index: 1;
}

.vision-sample-digital-slide .thumbnail.focused {
    border: 1px solid #3399ff;
    box-shadow: inset 0 0 1px 0 rgba(0, 0, 0, 0.75);
}
.glass-flex-items-selected {
    background: rgba(255, 255, 255, 0.4);
    width: 102px;
    height: 248px;
    margin-top: 15px;
    line-height: 300px;
    color: white;
    font-weight: bold;
    font-size: 3em;
    text-align: center;
    margin-left: 5px;
    border: 1px;
    border-style: solid;
    border-color: blue;
    display: inline-block;
    cursor: pointer;
}

.glass-flex-items-selected:first-child {
    background: rgba(255, 255, 255, 0.4);
    width: 102px;
    height: 248px;
    margin-top: 15px;
    line-height: 300px;
    color: white;
    font-weight: bold;
    font-size: 3em;
    text-align: center;
    border: 1px;
    border-style: solid;
    border-color: blue;
    display: inline-block;
    cursor: pointer;
    margin-bottom: 2px;
    margin-left: 1%;
}

.glass-flex-container-gallery {
    display: flex;
    flex-flow: nowrap;
    padding: 0;
    overflow-x: auto;
    margin-left: 20px;
    margin-right: 20px;
    overflow-y: hidden;
    border: 1px;
    border-style: solid;
    border-color: #e4e4e4;
    background-color: white;
    margin-top: 7px;
    height: 285px;
}

.vision-glassGallery-noSampleState {
    height: 285px;
}

.bp6-dark .glass-flex-container-gallery {
    background-color: var(--bp-black);
    border-color: var(--bp-gray1);
}

.glass-flex-items {
    background: rgba(255, 255, 255, 0.4);
    width: 102px;
    height: 248px;
    margin-top: 15px;
    line-height: 300px;
    color: white;
    font-weight: bold;
    font-size: 3em;
    text-align: center;
    margin-left: 5px;
    border: 1px;
    border-style: solid;
    border-color: #e4e4e4;
    display: inline-block;
    cursor: pointer;
    margin-bottom: 2px;
}

.glass-flex-items:first-child {
    background: rgba(255, 255, 255, 0.4);
    width: 102px;
    height: 248px;
    margin-top: 15px;
    line-height: 300px;
    color: white;
    font-weight: bold;
    font-size: 3em;
    text-align: center;
    border: 1px;
    border-style: solid;
    border-color: #e4e4e4;
    display: inline-block;
    cursor: pointer;
    margin-left: 1%;
}

.glass-flex-item-samples {
    width: 100px;
    height: 190px;
    position: relative;
}

.glass-flex-item-barcode-gallery {
    width: 100px;
    height: 58px;
    background: rgba(231, 231, 231, 0.8);
    line-height: 65px;
    margin-top: -2px;
}

.glass-barcode-images {
    width: 100%;
    height: 58px;
    display: flex;
}

.glass-preview-images {
    height: 100px;
    transform: rotate(90deg) translate(-7px, 28px);
    width: 156px;
    object-fit: contain;
    pointer-events: none;
}

.glass-preview-hint {
    font-size: 14px;
    white-space: nowrap;
}

.glass-popover-button {
    display: block;
    margin-top: 3px;
    position: relative;
    text-align-last: center;
    width: 17px;
    height: 17px;
    left: 8px;
    min-width: 16px;
    min-height: 16px;
    padding: 0 7px;
    padding-left: 3px;
}

.glass-popover-body {
    max-height: 280px;
    width: 340px;
    padding: 20px;
    overflow: auto;
}

.glass-popover-column {
    padding-top: 5px;
    margin: -10px;
}

.glass-popover-column>.attribute, .glass-popover-column>.value {
    white-space: nowrap;
}

.glass-popover-wrapper {
    top: -300px;
    left: 40px;
    display: none;
}
/* Редактор случая: результаты исследования и просмотр препаратов */

.vision-case-main {
    height: 100%;
    overflow-y: auto;
    padding: 10px 20px 20px;
    box-sizing: border-box;
    background-color: #ffffff;
}

.bp6-dark .vision-case-main {
    background-color: var(--bp-black);
}

.vision-case-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 40px;
}

@media (max-width: 1400px) {

    .vision-case-columns {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Заголовок сворачиваемого блока первым ставит шрифт значков, а кнопка наследует шрифт от родителя: метрики шрифта
   значков смещают её текст по высоте. Поэтому малым кнопкам карточки шрифт задаётся явно, где бы они ни стояли */

.vision-case-main .bp6-button.bp6-small {
    font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Open Sans", "Helvetica Neue", sans-serif;
}

/* Строка текста стоит в кнопке по центру, но буквы в ней смещены вниз: над базовой линией шрифт оставляет больше места,
   чем под ней. В малой кнопке это заметно, поэтому текст поднят так, чтобы по центру встали заглавные буквы */

.vision-case-main .bp6-button.bp6-small .bp6-button-text {
    position: relative;
    top: -1px;
}

.vision-case-hint {
    color: #5f6b7c;
    font-size: 12px;
    margin: 4px 0 8px;
}

.bp6-dark .vision-case-hint {
    color: var(--bp-gray4);
}

.vision-case-error {
    color: var(--bp-red3);
    font-size: 12px;
    min-height: 18px;
    margin: 4px 0;
}

/* Препараты */

.vision-case-slides {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    gap: 0 28px;
    align-items: start;
}

/* Кнопки нового блока и нового препарата одной ширины */

.vision-case-addButton {
    min-width: 80px !important;
}

@media (max-width: 1100px) {

    .vision-case-slides {
        grid-template-columns: minmax(0, 1fr);
    }
}

.vision-case-block {
    border: 1px solid var(--bp-light-gray2);
    border-radius: 3px;
    margin-bottom: 10px;
}

.bp6-dark .vision-case-block {
    border-color: var(--bp-dark-gray5);
}

.vision-case-block.noBlock {
    border-style: dashed;
}

.vision-case-block.dropTarget, .bp6-dark .vision-case-block.dropTarget {
    border-color: var(--bp-blue3);
    background-color: rgba(45, 114, 210, 0.1);
}

.vision-case-slide.dragged {
    opacity: 0.5;
}

.vision-case-touchGhost {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 30;
    pointer-events: none;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-family: monospace;
    color: #ffffff;
    background-color: var(--bp-blue3);
    box-shadow: 0 2px 6px rgba(17, 20, 24, 0.4);
}

.vision-case-blockHeader {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
}

.vision-case-blockHeader .vision-case-blockToggle {
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
}

.vision-case-blockHeader .vision-case-sectionTools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vision-case-blockSlides {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0 10px 10px;
}

/* Долгое нажатие на карточку начинает перенос, а не выделение текста и не меню браузера */

.vision-case-slide {
    user-select: none;
    -webkit-touch-callout: none;
    padding: 4px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: none;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.vision-case-slide:hover {
    border-color: var(--bp-gray4);
}

.vision-case-slide.selected {
    border-color: var(--bp-blue3);
    background-color: rgba(45, 114, 210, 0.15);
}

/* Стекло препарата на карточке и в ленте просмотра - как в таблице проб (vision-slide), в масштабе 0,8: слева скан
   144×64, вписанный целиком, справа маркировка 48×64 на серой подложке. Рамка нарисована тенью и места не занимает:
   стекло шириной ровно 192px */

.vision-case-glass {
    display: flex;
    flex: 0 0 auto;
    width: 192px;
    height: 64px;
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 0 1px #e4e4e4;
}

.vision-case-glassPreview {
    display: flex;
    flex: 0 0 144px;
    width: 144px;
    height: 64px;
}

.vision-case-glassPreview > img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
}

/* Маркировка растягивается на всю подложку, как в таблице проб */

.vision-case-glassLabel {
    flex: 0 0 48px;
    width: 48px;
    height: 64px;
    background: rgba(231, 231, 231, 0.8);
}

.vision-case-glassLabel > img {
    display: block;
    width: 48px;
    height: 64px;
}

/* Ширину карточки задают картинки: подпись её не растягивает, а длинный ИН обрезается */

.vision-case-slideCaption {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    color: #5f6b7c;
    width: 0;
    min-width: 100%;
}

.vision-case-slideCaption > * {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bp6-dark .vision-case-slideCaption {
    color: var(--bp-gray4);
}

/* Строка имени на карточке: отметка о просмотре и ИН, который при нехватке места обрезается */

.vision-case-slideName {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vision-case-slideName b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Отметка о просмотре: синяя точка у непросмотренного препарата, зелёный глаз у просмотренного */

.vision-case-viewedMark {
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--bp-blue4);
}

.vision-case-viewedMark.viewed {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: var(--bp-green4);
}

.vision-case-slideCaption b {
    color: inherit;
    font-family: monospace;
    font-weight: 500;
}

.vision-case-slideDetail {
    border-left: 1px solid var(--bp-light-gray2);
    padding-left: 24px;
    min-height: 100%;
}

.bp6-dark .vision-case-slideDetail {
    border-color: var(--bp-dark-gray5);
}

@media (max-width: 1100px) {

    .vision-case-slideDetail {
        border-left: 0;
        padding-left: 0;
        border-top: 1px solid var(--bp-light-gray2);
        padding-top: 14px;
        margin-top: 14px;
    }
}

.vision-case-slideDetailTitle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.vision-case-slideDetailTitle .vision-case-sectionTools {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Колонка свойств бывает узкой (узкое окно, крупный масштаб, длинный ИН): кнопки и название блока не ужимаются
   и не переносятся, место отдаёт ИН препарата, обрезаясь многоточием */

.vision-case-slideDetailTitle > b {
    flex-shrink: 0;
    white-space: nowrap;
}

.vision-case-slideDetailTitle .vision-case-sectionMeta {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vision-case-slideDetailTitle .vision-case-sectionTools, .vision-case-blockHeader .vision-case-sectionTools {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Этикетка и скан рядом, как на стекле */

.vision-case-slideDetailImages {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}

.vision-case-slideDetailLabel {
    height: 100px;
    max-width: 40%;
    object-fit: contain;
    display: block;
}

.vision-case-slideDetailPreview {
    flex: 1 1 0;
    min-width: 0;
    max-width: 300px;
    height: 100px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    background-color: var(--bp-light-gray3);
}

.vision-case-fieldRow {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
}

.vision-case-fieldRow.stacked {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
}

/* Окно свойств препарата в режиме просмотра */

.vision-case-slideProperties {
    width: 340px;
    max-width: 90vw;
    padding: 12px 14px;
}

.vision-case-slidePropertiesTitle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.vision-case-slidePropertiesTitle b {
    font-family: monospace;
}

/* Ширина окна свойств постоянная: длинный ИН препарата обрезается многоточием, кнопка закрытия не ужимается */

.vision-case-slidePropertiesTitle > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vision-case-slidePropertiesTitle > .bp6-button {
    flex-shrink: 0;
}

.vision-case-slideProperties .vision-case-summaryList {
    margin: 12px 0 8px;
    padding-top: 10px;
    border-top: 1px solid var(--bp-light-gray2);
}

.bp6-dark .vision-case-slideProperties .vision-case-summaryList {
    border-color: var(--bp-dark-gray5);
}

/* Диалог загрузки препаратов */

.vision-case-uploadDialog {
    width: min(640px, calc(100vw - 40px));
}

.vision-case-uploadRow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px 30px;
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    border: 1px solid var(--bp-light-gray2);
    border-radius: 3px;
    margin-bottom: 6px;
}

.bp6-dark .vision-case-uploadRow {
    border-color: var(--bp-dark-gray5);
}

/* Строка неподдерживаемых файлов: текст занимает место имени и окраски, крестик стоит в одном столбце с остальными */

.vision-case-uploadRow-unsupported > .vision-case-error {
    grid-column: 1 / 3;
    min-height: 0;
    margin: 0;
}

/* Под последней строкой отступ не нужен: дальше нижний край окна */

.vision-case-uploadRow:last-child {
    margin-bottom: 0;
}

/* Препарат внутри архива */

.vision-case-uploadRow-nested {
    margin-left: 20px;
}

/* Область, принимающая перетащенные файлы и папки */

.vision-case-uploadDrop {
    outline: 2px dashed transparent;
    outline-offset: 6px;
    border-radius: 3px;
}

.vision-case-uploadDrop-active {
    outline-color: var(--bp-blue3);
}

.vision-case-uploadButtons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.vision-case-uploadButtons .vision-case-hint {
    margin: 0;
}

.vision-case-uploadName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12.5px;
}

.vision-case-uploadBlock {
    display: grid;
    grid-template-columns: 130px 180px;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
}

.vision-case-dialogButton {
    min-width: 100px;
}

/* Изображения и документы */

.vision-case-files {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vision-case-file {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr);
    gap: 10px;
}

@media (max-width: 560px) {

    .vision-case-file {
        grid-template-columns: minmax(0, 1fr);
    }
}

.vision-case-fileCard {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 64px;
    padding: 0 6px 0 10px;
    border: 1px solid var(--bp-light-gray2);
    border-radius: 2px;
    min-width: 0;
}

.bp6-dark .vision-case-fileCard {
    border-color: var(--bp-dark-gray5);
}

.vision-case-fileThumb {
    width: 54px;
    height: 54px;
    flex: none;
    border-radius: 1px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bp-light-gray3);
    cursor: pointer;
    border: 0;
    padding: 0;
}

.bp6-dark .vision-case-fileThumb {
    background-color: var(--bp-dark-gray3);
}

/* Подложка нужна превью изображения; значок документа нарисован с собственным контуром и стоит без неё */

.vision-case-fileThumb.document, .bp6-dark .vision-case-fileThumb.document {
    background-color: transparent;
}

.vision-case-fileThumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vision-case-fileName {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    line-height: 1.3;
}

.vision-case-fileName span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.vision-case-fileName small {
    display: block;
    color: #5f6b7c;
    font-size: 11px;
}

.bp6-dark .vision-case-fileName small {
    color: var(--bp-gray4);
}

.vision-case-fileDescription textarea {
    width: 100%;
    min-height: 64px;
    resize: vertical;
}

/* Данные анализа и заключение */

.vision-case-counts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 4px;
}

.vision-case-count {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
}

/* Поле с шаблонами стоит в строке раздела: подпись у строки своя, и нижний отступ задаёт строка */

.vision-case-dataRow .template-suggest-field {
    margin: 0;
}

/* Стрелки числового поля браузер растягивает на всю высоту поля, поверх его рамки и скруглений */

.vision-case-main input[type="number"]::-webkit-inner-spin-button {
    height: 20px;
    align-self: center;
}

.vision-case-count > span {
    color: #5f6b7c;
}

.bp6-dark .vision-case-count > span {
    color: var(--bp-gray4);
}

.vision-case-dataRow {
    display: grid;
    grid-template-columns: minmax(140px, 21%) minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.vision-case-dataRow .vision-case-hint {
    margin-bottom: 0;
}

.vision-case-field {
    margin-bottom: 10px;
}

.vision-case-choice {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vision-case-choice .bp6-popover-target {
    flex: 1 1 auto;
    min-width: 0;
}

.vision-case-diagnoses {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
}

.vision-case-diagnosis {
    display: grid;
    grid-template-columns: 150px 62px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid var(--bp-light-gray2);
    border-radius: 2px;
    font-size: 13px;
}

.bp6-dark .vision-case-diagnosis {
    border-color: var(--bp-dark-gray5);
}

.vision-case-diagnosis.main {
    border-color: var(--bp-blue3);
}

.vision-case-diagnosisCode {
    font-family: monospace;
    font-weight: 500;
}

.vision-case-required {
    color: var(--bp-red3);
    font-weight: bold;
}

.vision-case-conclusionActions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--bp-light-gray2);
}

.bp6-dark .vision-case-conclusionActions {
    border-color: var(--bp-dark-gray5);
}

.vision-case-stateOk {
    color: var(--bp-green3);
}

.vision-case-stateWarn {
    color: var(--bp-orange3);
}

/* Заданное число блоков или стёкол расходится с фактическим в случае */

.vision-case-countMismatch {
    color: var(--bp-red3);
    font-weight: 600;
}

.bp6-dark .vision-case-countMismatch {
    color: var(--bp-red5);
}

.vision-case-conclusionDialog {
    width: min(640px, calc(100vw - 40px));
}

/* Просмотр препаратов */

/* Ширины ленты препаратов и правой панели нужны и сетке просмотра, и панели инструментов над ней */

.vision-case-viewer {
    --vision-case-film-width: 230px;
    --vision-case-right-width: 330px;
    --vision-case-viewer-gap: 14px;
    height: 100%;
    width: 100%;
}

.vision-case-viewer.filmCollapsed {
    --vision-case-film-width: 34px;
}

.vision-case-viewer.rightCollapsed {
    --vision-case-right-width: 34px;
}

/* Левая часть панели инструментов не уже ленты препаратов, а отступ за ней равен промежутку сетки: панель и сетка
   начинаются с одного отступа, поэтому инструменты встают над левым краем окон просмотра */

.vision-case-viewer .vision-toolbar-leftbar {
    width: auto;
    min-width: var(--vision-case-film-width);
    margin-right: var(--vision-case-viewer-gap);
}

/* Строка статуса стоит под окнами просмотра вторым рядом сетки, поэтому все три колонки кончаются на одной линии */

.vision-case-viewerBody {
    display: grid;
    grid-template-columns: var(--vision-case-film-width) minmax(0, 1fr) var(--vision-case-right-width);
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 6px var(--vision-case-viewer-gap);
    height: calc(100% - 100px);
    padding: 0 20px 10px;
    box-sizing: border-box;
}

.vision-case-film, .vision-case-viewerRight {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.bp6-dark .vision-case-film, .bp6-dark .vision-case-viewerRight {
    background-color: var(--bp-black);
}

.vision-case-filmHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px 6px 12px;
    font-weight: bold;
    font-size: 12.5px;
}

/* Свёрнутая боковая панель - узкая полоса: стрелка и вертикальные подписи стоят по её центру. Подпись сжимается
   до своего текста, иначе вертикальный текст прижимается к краю полосы */

.vision-case-viewer.filmCollapsed .vision-case-film, .vision-case-viewer.rightCollapsed .vision-case-viewerRight {
    align-items: center;
}

.vision-case-viewer.filmCollapsed .vision-case-film .vision-case-filmHeader, .vision-case-viewer.rightCollapsed .vision-case-viewerRight .vision-case-filmHeader {
    justify-content: center;
    padding: 6px 0;
}

.vision-case-filmList {
    overflow-y: auto;
    padding: 4px 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    min-height: 0;
}

.vision-case-filmGroup {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vision-case-filmGroupHeader {
    font-size: 12.5px;
    font-weight: bold;
}

.vision-case-filmGroupHeader span {
    color: #5f6b7c;
    font-weight: normal;
}

.bp6-dark .vision-case-filmGroupHeader span {
    color: var(--bp-gray4);
}

.vision-case-filmItem {
    position: relative;
    width: 202px;
    padding: 4px;
    border: 1px solid var(--bp-light-gray2);
    border-radius: 3px;
    background: none;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.bp6-dark .vision-case-filmItem {
    border-color: var(--bp-dark-gray5);
}

.vision-case-filmItem.selected {
    border-color: var(--bp-blue3);
    background-color: rgba(45, 114, 210, 0.15);
}

/* Изображение случая занимает всю ширину карточки */

.vision-case-filmImages {
    display: flex;
    width: 192px;
}

.vision-case-filmImages img {
    display: block;
    object-fit: cover;
    background-color: var(--bp-light-gray3);
}

.vision-case-filmItem.image img {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    height: 78px;
}

.vision-case-filmPanes {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 3px;
}

.vision-case-propertiesDialog {
    width: auto;
    padding-bottom: 0;
}

/*
 * Кнопки сетки окон и связи. Общий стиль приложения ставит прямые дочерние элементы крупной кнопки-ссылки абсолютно
 * в её левый угол, в расчёте на кнопку из одного значка. Здесь содержимое лежит в обычном потоке и центрируется кнопкой
 */

a.bp6-button.bp6-large.vision-case-toolButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 0 10px;
}

/* Высота строки у обёртки своя: с унаследованными 30px содержимое встаёт на базовую линию строки, выше середины кнопки */

a.bp6-button.bp6-large.vision-case-toolButton > span {
    position: static;
    transform: none;
    margin: 0;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.vision-case-toolButtonContent {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.vision-case-toolButtonContent > .bp6-icon > svg {
    display: block;
}

/* Выбор числа окон просмотра */

.vision-case-layoutMenu {
    width: 230px;
    padding: 10px 12px;
}

.vision-case-layoutMenuTitle {
    font-size: 11px;
    text-transform: uppercase;
    color: #5f6b7c;
    margin-bottom: 8px;
}

.bp6-dark .vision-case-layoutMenuTitle {
    color: var(--bp-gray4);
}

.vision-case-layoutOptions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 8px;
}

.vision-case-stage {
    position: relative;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vision-case-panes {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-auto-rows: minmax(0, 1fr);
    gap: 6px;
}

.vision-case-pane {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background-color: #ffffff;
}

.bp6-dark .vision-case-pane {
    background-color: var(--bp-dark-gray1);
}

/* Рамка активного окна цвета этого окна. Рисуется поверх содержимого и щелчки не перехватывает */

.vision-case-pane.numbered.active::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 2px solid var(--vision-case-pane-color);
    pointer-events: none;
}

.vision-case-paneNumber {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    color: #ffffff;
    background-color: var(--vision-case-pane-color);
}

.vision-case-paneLabel {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 10px;
    border-radius: 3px;
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0 0 1px rgba(17, 20, 24, 0.1), 0 1px 4px rgba(17, 20, 24, 0.2);
    color: #1c2127;
    font-size: 12.5px;
    white-space: nowrap;
}

.bp6-dark .vision-case-paneLabel {
    background-color: rgba(16, 17, 21, 0.86);
    box-shadow: none;
    color: #ffffff;
}

.vision-case-paneLabel .bp6-html-select select {
    max-width: 260px;
}

.vision-case-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #5f6b7c;
    text-align: center;
    padding: 20px;
}

.bp6-dark .vision-case-placeholder {
    color: var(--bp-gray4);
}

/* Приближение задаётся трансформацией от центра: размеры элемента остаются размерами окна */

.vision-case-stageImage {
    width: 100%;
    height: 100%;
    object-fit: contain;
    touch-action: none;
}

.vision-case-stageImage.zoomed {
    cursor: grab;
}

.vision-case-stageImage.dragging {
    cursor: grabbing;
}

.vision-case-viewerStatus {
    grid-column: 2;
    display: flex;
    gap: 18px;
    font-size: 12.5px;
    color: #5f6b7c;
    min-height: 18px;
    white-space: nowrap;
    overflow: hidden;
}

.bp6-dark .vision-case-viewerStatus {
    color: var(--bp-gray4);
}

/* Координаты и площадь от просмотрщика препарата: в строке состояния, а не под изображением */

.vision-case-viewerStatus .hi-res-image-status {
    position: static;
    gap: 18px;
}

.vision-case-viewerStatus .hi-res-image-status p {
    margin: 0;
}

.vision-case-viewerStatus .hi-res-image-status-area {
    order: -1; /* Строка случая выровнена влево: площадь стоит первой и не сдвигается при смене ширины координат */
}

.vision-case-viewerRight .bp6-tabs {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

.vision-case-viewerRight .bp6-tab-list {
    padding: 0 8px;
    flex: none;
}

.vision-case-viewerRight .bp6-tab-panel {
    overflow-y: auto;
    padding: 0 14px 16px;
    margin-top: 10px;
    min-height: 0;
    flex: 1;
}

/* Подписи свёрнутой панели стоят столбцом сверху вниз и читаются снизу вверх. Вертикальное письмо задаётся только
   тексту подписи: столбец и кнопки остаются горизонтальными, иначе Safari до 17.4 неверно раскладывает кнопки
   внутри вертикального контейнера (текст горизонтальный или смещён к краю полосы) */

.vision-case-rightCollapsed {
    color: #5f6b7c;
    font-weight: 500;
    padding: 8px 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

/* Ширина подписи задана равной высоте её единственной строки: Safari до 17.4 делает вертикальный блок шире текста
   и прижимает текст к его краю, и тогда подпись не встаёт по центру полосы */

.vision-case-rightCollapsed span {
    display: block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    line-height: 18px;
    width: 18px;
}

.vision-case-collapsedTab {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.vision-case-collapsedTab.active {
    color: var(--bp-blue3);
}

/* Список аннотаций активного окна */

.vision-case-panelHeader {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12.5px;
    color: #5f6b7c;
}

.bp6-dark .vision-case-panelHeader {
    color: var(--bp-gray4);
}

.vision-case-annotation.selected {
    border-color: var(--bp-blue3);
    background-color: rgba(45, 114, 210, 0.1);
}

.vision-case-annotation.hidden .vision-case-annotationBody {
    opacity: 0.5;
}

.vision-case-annotationBody {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.vision-case-annotationName {
    font-weight: 500;
}

.vision-case-annotationMeasure, .vision-case-annotationAuthor {
    font-size: 11.5px;
    color: #5f6b7c;
}

.bp6-dark .vision-case-annotationMeasure, .bp6-dark .vision-case-annotationAuthor {
    color: var(--bp-gray4);
}

.vision-case-annotationText {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.vision-case-annotationTools {
    display: flex;
    gap: 2px;
}

/* Описание препарата: редактор со страницы препарата занимает ширину вкладки, его собственный свёртыватель не нужен */

.vision-case-description > .vision-sample-expander {
    display: none;
}

.vision-case-description .vision-sample-pap-multi-column3 {
    position: relative;
    width: 100% !important;
    margin-left: 0 !important;
    box-shadow: none;
}

.vision-case-summarySection {
    border-bottom: 1px solid var(--bp-light-gray2);
    padding-bottom: 12px;
    margin-bottom: 10px;
}

.bp6-dark .vision-case-summarySection {
    border-color: var(--bp-dark-gray5);
}

.vision-case-summarySection:last-child {
    border-bottom: 0;
}

.vision-case-summarySection h4 {
    margin: 0 0 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #5f6b7c;
    font-weight: 500;
}

.bp6-dark .vision-case-summarySection h4 {
    color: var(--bp-gray4);
}

.vision-case-summaryList {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 5px 10px;
    margin: 0;
    font-size: 13px;
}

.vision-case-summaryList dt {
    color: #5f6b7c;
}

.bp6-dark .vision-case-summaryList dt {
    color: var(--bp-gray4);
}

.vision-case-summaryList dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.vision-case-hiddenValue {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #5f6b7c;
}

.bp6-dark .vision-case-hiddenValue {
    color: var(--bp-gray4);
}

.vision-case-summaryText {
    margin-top: 8px;
    font-size: 13px;
}

.vision-case-summaryText b {
    display: block;
    font-weight: 500;
    color: #5f6b7c;
    font-size: 12px;
    margin-bottom: 3px;
}

.vision-case-summaryText p {
    margin: 0;
    line-height: 1.45;
    white-space: pre-wrap;
}

.vision-case-summaryDoc {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 6px;
    align-items: center;
    padding: 3px 2px;
    font-size: 13px;
}

.vision-case-summaryDoc .vision-case-summaryDocName {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vision-case-conclusionState {
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 3px;
    border: 1px solid;
    margin-bottom: 8px;
}

.vision-case-conclusionState.ok {
    border-color: var(--bp-green3);
    background-color: rgba(35, 133, 81, 0.12);
}

.vision-case-conclusionState.warn {
    border-color: var(--bp-orange3);
    background-color: rgba(200, 118, 25, 0.12);
}

.vision-case-annotation {
    cursor: pointer;
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 6px 8px;
    border: 1px solid var(--bp-light-gray2);
    border-radius: 3px;
    margin-bottom: 6px;
    font-size: 12.5px;
}

.bp6-dark .vision-case-annotation {
    border-color: var(--bp-dark-gray5);
}

.vision-case-annotationColor {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

div.admin-key-dialog .bp6-dialog-body {
    text-align: right;
    margin: 20px 20px 10px;
}

div.admin-key-dialog input[type="password"] {
    width: 170px;
}

div.admin-key-dialog input.bp6-intent-primary {
    box-shadow: 0 0 0 0 rgba(19, 124, 189, 0), 0 0 0 0 rgba(19, 124, 189, 0), inset 0 0 0 1px rgba(16, 22, 26, 0.15), inset 0 1px 1px rgba(16, 22, 26, 0.2);
}

div.admin-key-dialog .admin-login-textInputLabel {
    text-align: left;
    float: left;
    width: 150px;
    line-height: 17px;
}

div.admin-key-dialog {
    width: 370px;
}

div.admin-key-dialog label.bp6-label {
    margin: 1px 0 9px;
}

div.admin-key-dialog button.bp6-button {
    width: 80px;
}

.bp6-dialog-close-button {
    width: 30px !important;
}

.admin-key-dialog .admin-key-error {
    color: red;
}

.bp6-dark .admin-key-dialog .admin-key-error {
    color: var(--bp-red5);
}

.admin-key-dialog .change-error {
    margin-top: -10px;
    text-align: left;
    margin-left: 160px;
}

.admin-key-dialog .length-error {
    margin-bottom: -5px;
    margin-top: -7px;
}

.admin-key-dialog .mismatch-error {
    margin-bottom: -5px;
    margin-top: -7px;
}
.vision-invisibleInput {
    position: absolute;
    width: 0;
    height: 0;
    border: 0;
}

.admin-error-dialog {
    width: 550px;
}

.admin-error-portal {
    z-index: 30;
}
.profile-form {
    padding: 20px;
}

.profile-form .topPanel {
    display: grid;
    grid-template-columns: 145px auto auto;
}

.profile-form .topPanel .avatar-buttons {
    text-align: right;
}

.profile-form .imgInput {
    display: none;
}

.profile-form .topPanel .avatar-buttons button {
    display: block;
    margin-right: 0;
    margin-left: auto;
}

.profile-form .imgButton-a {
    width: 160px;
}

.profile-form .imgButton-b {
    margin-top: 10px;
    width: 160px;
}

.profile-form .info .input {
    display: grid;
    grid-template-areas: "vision-Profile-label label" "vision-Profile-field content";
    grid-template-columns: 120px auto;
    clear: both;
    column-gap: 25px;
}

.profile-form .info .label {
    margin-top: 15px;
}

.profile-form .info .field {
    border-radius: 4px;
    margin-top: 10px;
    width: 100%;
}

.profile-form .info .field select {
    width: 100%;
}

.profile-form .info label.bp6-radio {
    margin-bottom: 0;
    margin-top: 10px;
}

.profile-form .buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.profile-form .buttons button {
    padding-left: 20px;
    padding-right: 20px;
    min-width: 120px;
}

.profile-form .buttons button.save {
    align-self: flex-start;
}

.profile-form .buttons button.changePassword {
    align-self: flex-end;
}
.vision-accountSettings {
    display: grid;
    grid-template-columns: minmax(455px, 1fr) 1fr;
    grid-template-rows: auto 1fr;
    margin-left: auto;
    margin-right: auto;
    margin-top: 10px;
    width: 60%;
    min-width: 900px;
    grid-column-gap: 15px;
}

.account-settings-header {
    margin-bottom: 10px;
    margin-right: 10px;
    line-height: 17px;
    color: #5c7080;
    font-size: 16px;
    font-weight: 600;
    font-family: -apple-system, "BlinkMacSystemFont", "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", "Open Sans", "Helvetica Neue", "Icons16", sans-serif;
    margin-top: 10px;
}

.bp6-dark .account-settings-header {
    color: var(--bp-light-gray3);
}

.vision-accountSettings > div {
    overflow: hidden;
    display: block;
}

.vision-accountSettings > div > .form {
    background: #ffffff;
    margin-left: 2px;
    margin-bottom: 2px;
    width: calc(100% - 4px);
}

.bp6-dark .vision-accountSettings > div > .form {
    background: var(--bp-dark-gray4);
}

.vision-accountSettings > .vision-profile {
    grid-row: span 2;
}

.vision-accountSettings > .vision-storage {
    grid-column: 2;
    grid-row: 1;
}

.vision-accountSettings > .vision-organizationaccount {
    grid-column: 2;
    grid-row: 2;
}
.vision-storage .storage-form {
    display: grid;
}

.vision-storage {
    overflow: auto;
}

.vision-storage .form {
    display: grid;
    grid-template-areas: "vision-storage-label label" "vision-storage-field content";
    grid-template-columns: auto 1fr;
    clear: both;
}

.vision-storage .info {
    float: left;
    overflow-y: auto;
    padding-bottom: 20px;
}

.vision-storage .label {
    float: left;
    margin-left: 21px;
    margin-top: 15px;
}

.vision-storage .ProgressBar {
    grid-column: span 2;
    margin-left: 21px;
    margin-top: 20px;
    margin-right: 21px;
}

.vision-storage .save {
    float: right;
    height: 29px;
    min-width: 115px;
    margin-top: 15px;
    margin-right: 21px;
}

.vision-storage .info .submitForm {
    grid-column: span 2;
}
.dialog-window {
    padding-bottom: 0;
}

.tariff-selector-dialog-size {
    min-width: 870px;
    min-height: 440px;
}

.main-window {
    padding: 35px;
    width: 100%;
    height: 100%;
    position: relative;
}

.dialog-window > .bp6-dialog-header {
    padding-left: 0;
}

.dialog-window > .bp6-dialog-header > .bp6-icon {
    margin-left: 10px;
}

.period-container {
    display: flex;
    position: relative;
    align-items: center;
}

.segmentedControl {
    background-color: #ececec;
}

.bp6-dark .segmentedControl {
    background-color: var(--bp-dark-gray5);
}

.period-title {
    flex: 1;
    line-height: 3;
    font-size: 14px;
    color: #182026;
}

.bp6-dark .period-title {
    color: var(--bp-light-gray5);
}

.tariffs-list {
    display: grid;
    grid-template-columns: repeat(3, calc((100% - 40px) / 3));
    grid-row-gap: 20px;
    grid-column-gap: 20px;
    overflow-y: auto;
    width: 100%;
    margin-top: 30px;
    margin-bottom: 5px;
    padding: 8px;
}

.current-tariff {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
    padding: 15px;
    border: 1px solid #c8c8c8;
    border-radius: 10px;
    background: white;
    margin: 2px 0;
}

.bp6-dark .current-tariff {
    background: var(--bp-dark-gray1);
    border: 1px solid var(--bp-dark-gray3);
}

.current-tariff:hover:not(.favorable-tariff) {
    box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.7);
}

.favorable-tariff {
    --favorable-tariff-color: var(--bp-red3);
    --darkened-favorable-color: var(--bp-red2);
    border: none;
    box-shadow: 0 0 5px 3px var(--favorable-tariff-color);
}

.bp6-dark .favorable-tariff {
    --favorable-tariff-color: var(--bp-red5);
}

.current-tariff.favorable-tariff:hover {
    box-shadow: 0 0 5px 3px var(--darkened-favorable-color);
}

.current-tariff-title {
    font-size: 16px;
    margin-bottom: 15px;
}

.current-tariff-size {
    font-size: 24px;
    margin-bottom: 15px;
}

.current-tariff-body {
    margin-bottom: 15px;
}

.current-tariff-body .feature {
    padding-left: 30px;
    background-repeat: no-repeat;
    background-position: left center;
    margin-bottom: 10px;
}

.current-tariff-body .feature.cloud {
    background-image: url(/images/Cloud_16.svg);
}

.current-tariff-body .feature.share {
    background-image: url(/images/Share_16.svg);
}

.current-tariff-body .feature.slides {
    background-image: url(/images/Slides_16.svg);
}

.current-tariff-footer-button {
    margin-top: auto;
    cursor: pointer;
    min-height: 50px;
    background: white;
    border: 1px solid rgb(200, 200, 200);
    border-radius: 10px;
    bottom: 15px;
    padding: 5px;
    user-select: none;
    color: #182026;
    text-align: center;
}

.bp6-dark .current-tariff-footer-button {
    border: 1px solid var(--bp-dark-gray3);
}

.current-tariff-footer-button:active {
    background: rgb(217, 224, 232);
}

.current-tariff-footer-button:hover {
    background: #ebf1f5;
}

.current-tariff-footer-button .connectLabel, .current-tariff-footer-button .requestLabel {
    font-size: 14px;
}

.current-tariff-footer-button .priceLabel {
    font-weight: bold;
    font-size: 16px;
}

.tariff-dialog-payment-size {
    width: 450px;
}

.tariff-payment-form {
    width: 100%;
    height: 100%;
    padding-top: 20px;
    padding-right: 20px;
    padding-left: 20px;
}

.tariff-payment-form > input:invalid, select:invalid {
    border: 2px solid red;
}

.tariff-payment-text-input {
    margin-bottom: 10px;
    width: 100%;
}

.tariff-payment-submit-button {
    width: 100%;
}
.vision-organizationaccount .organizationAccount-form {
    display: grid;
}

.vision-organizationaccount {
    overflow: auto;
    margin-top: 10px;
}

.vision-organizationaccount .info {
    float: left;
    height: 360px;
}

.vision-organizationaccount .row {
    width: 99%;
}

.vision-organizationaccount .label {
    float: left;
    margin-left: 21px;
    margin-top: 15px;
}

.vision-organizationaccount .save {
    float: left;
    width: 160px;
    height: 29px;
    margin-bottom: 20px;
    margin-left: 21px;
}

.vision-organizationaccount .href {
    float: right;
    margin-bottom: 20px;
    margin-right: 21px;
    margin-top: 6px;
    color: #137cbd;
}

.vision-organizationaccount .images {
    display: grid;
    grid-template-areas: "img1 img2 img3" "img4 img5 img6";
    grid-template-columns: 64px 64px 64px;
    clear: both;
    grid-gap: 20px;
    margin: 25px auto;
}

.vision-organizationaccount .images span {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    padding: 8px;
    background-repeat: no-repeat;
    background-size: cover;
}

.vision-organization-account-div {
    align-self: end;
}

div.admin-login-dialog .admin-login-textInput {
    text-align: right;
}

div.admin-login-dialog .admin-login-textInput input {
    width: 215px;
}

div.admin-login-dialog .admin-login-textInput input.bp6-intent-primary {
    box-shadow: 0 0 0 0 rgba(19, 124, 189, 0), 0 0 0 0 rgba(19, 124, 189, 0), inset 0 0 0 1px rgba(16, 22, 26, 0.15), inset 0 1px 1px rgba(16, 22, 26, 0.2);
}

div.admin-login-dialog .admin-login-textInputLabel {
    text-align: left;
    float: left;
}

div.admin-login-dialog {
    width: 260px;
    padding-bottom: 16px;
}

div.admin-login-dialog label.bp6-label {
    margin: 1px 0 9px;
}

div.admin-login-dialog .bp6-dialog-body.login-dialog-repo-label {
    margin: 7px 20px 16px 11px;
    text-shadow: 0.4px 0.4px 0 black, -0.4px 0.4px 0 black, 0.4px -0.4px 0 black, -0.4px -0.4px 0 black;
}

div.admin-login-dialog .bp6-dialog-body {
    margin: 10px 20px;
}

div.admin-login-dialog .bp6-dialog-body div.bp6-input-group {
    margin-bottom: 10px;
}

div.admin-login-dialog div.validationError {
    color: red;
    margin-top: -10px;
}

.bp6-dark div.admin-login-dialog div.validationError {
    color: var(--bp-red5);
}

div.admin-login-dialog div.validationError > p {
    margin-top: 0;
    margin-bottom: 0;
}

.admin-login-language {
    float: left;
    line-height: 25px;
}

.admin-login-language select {
    background-color: var(--bp-light-gray5);
    border: 0;
    color: #2d72d2;
}

.bp6-dark .admin-login-language select {
    background-color: var(--bp-dark-gray2);
}

.admin-login-language .bp6-collapse-list {
    display: inline-flex;
}

div.reg-input {
    width: 155px;
    display: inline-flex;
    margin-right: 10px;
}

.date-input {
    width: 320px;
}

.borderless {
    border-width: 0;
    outline-width: 0;
    background-color: #ebf1f5;
    color: #106ba3;
}

.wmlogo {
    margin-bottom: 20px;
    margin-top: 10px;
}

.linklike-button {
    background: none !important;
    border: none;
    padding: 0 !important;
    color: #2d72d2 !important;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none !important;
}

.linklike-button:hover > span {
    text-decoration: underline;
}

div.admin-login-dialog .bp6-select::after {
    content: "\f140";
}

.date-input .bp6-input-action {
    pointer-events: none;
}

.dialog-backdrop-disable {
    background: none !important;
}

.color-scheme-switcher-container {
    position: absolute;
    z-index: 21;
    top: 30px;
    right: 30px;
}

.color-scheme-switcher-container .bp6-button:hover {
    background-color: transparent !important;
    box-shadow: none !important;
}

.color-scheme-switcher-container .color-switcher .bp6-icon-moon {
    color: var(--bp-gray4) !important;
}
.admin-login-dialog div.captcha-validation-error > div > div > div {
    border: 1px solid red;
}

.bp6-dark .admin-login-dialog div.captcha-validation-error > div > div > div {
    border: 1px solid var(--bp-red5);
}

.admin-login-dialog .bp6-select {
    display: block;
}

iframe[title*="reCAPTCHA"] {
    color-scheme: auto; /* убирает белую обводку, нужно для темной темы */
}

.bp6-overlay:has(.agreement-dialog) {
    z-index: 25; /* убирает возможность переключать тему если открыт диалог с этим классом */
}

.reg-input-full .hidden-text {
    -webkit-text-security: disc !important;
}
.vision-LoginDialogToOtherRepository {
    width: 400px;
    padding-bottom: 10px;
}

.vision-LoginDialogToOtherRepository > .bp6-dialog-body {
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 0;
}

.vision-LoginDialogToOtherRepository > .bp6-dialog-body div.text {
    margin-bottom: 15px;
}

.vision-LoginDialogToOtherRepository > .bp6-dialog-body div.error {
    margin-bottom: 10px;
    color: red;
}

.vision-LoginDialogToOtherRepository > .bp6-dialog-body div {
    margin-bottom: 10px;
}

.vision-LoginDialogToOtherRepository > .bp6-dialog-body div > input {
    width: 100%;
}

.vision-LoginDialogToOtherRepository > .bp6-dialog-body div.buttons {
    text-align: right;
}

.vision-LoginDialogToOtherRepository > .bp6-dialog-body div.buttons > button {
    margin-left: 10px;
    min-width: 100px;
}

.addFolderDialog .bp6-dialog-header .bp6-icon-folder-new {
    margin-left: 0 !important;
}

.validationError {
    color: red;
    margin: 0;
}

.bp6-dark .validationError {
    color: var(--bp-red5);
}
.vision-FolderSelectorDialog {
    min-width: 400px;
    min-height: 300px;
    width: 25%;
    height: 40vh;
    padding-bottom: 10px;
}

.vision-FolderSelectorDialog>.bp6-dialog-body {
    height: 80%;
    display: grid;
    grid-template-rows: auto 1fr;
    margin-top: 20px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 10px;
}

.vision-FolderSelectorDialog>.bp6-dialog-body div.tree {
    display: grid;
    max-width: 100%;
    overflow: auto;
    background: white;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.bp6-dark .vision-FolderSelectorDialog>.bp6-dialog-body div.tree {
    background: var(--bp-dark-gray3);
}

.vision-FolderSelectorDialog>.bp6-dialog-body div.text {
    margin-bottom: 15px;
}

.vision-FolderSelectorDialog>.bp6-dialog-body div.buttons {
    text-align: right;
}

.vision-FolderSelectorDialog>.bp6-dialog-body div.buttons>button {
    margin-left: 10px;
    min-width: 100px;
}

.bp6-tree-node-label div.tree-node.disabled {
    color: lightgrey;
}

.bp6-tree-node-caret > svg {
    pointer-events: none;
}
.bp6-large .bp6-menu-item::before {
    margin-top: 0;
}

.bp6-menu li {
    outline-offset: 0;
}

.bp6-submenu * svg {
    pointer-events: none;
}
.glass-flex-container {
    display: flex;
    margin: 0;
    list-style: none;
    flex-flow: row wrap;
    padding: 0;
}

.glass-flex-item {
    background: rgba(255, 255, 255, 0.4);
    width: 102px;
    height: 302px;
    margin-top: 5px;
    line-height: 300px;
    color: white;
    font-weight: bold;
    font-size: 3em;
    text-align: center;
    margin-left: 5px;
    border: 1px;
    border-style: solid;
    border-color: #e4e4e4;
    display: inline-block;
    cursor: pointer;
}

.glass-flex-item>.progressbar {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: white;
    opacity: 0.8;
    pointer-events: none;
}

.glass-flex-item>.progressbar>.fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgb(200, 240, 200);
}

.glass-flex-item>.caption {
    position: absolute;
    top: 50%;
    left: 50%;
    color: gray;
    transform: translate(-50%, -50%);
    font-weight: bold;
    font-size: 16px;
    line-height: normal;
    white-space: nowrap;
}

.glass-flex-item>.caption:before {
    font-size: 20px;
    margin-right: 3px;
}

.glass-flex-item>button.bp6-icon-stop {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translate(-50%, 0);
    line-height: normal;
    box-shadow: none;
    background: none;
}

.glass-flex-item-sample {
    width: 100px;
    height: 225px;
    position: relative;
}

.glass-flex-item-barcode {
    width: 99px;
    height: 74px;
    background: rgba(231, 231, 231, 0.8);
    line-height: 65px;
    margin-top: -2px;
}

.glass-barcode-image {
    width: 100%;
    height: 100%;
    display: flex;
}

.glass-preview-image {
    height: 95px;
    max-height: 100%;
    transform: rotate(90deg) translate(-7px, 60px);
    width: 220px;
    object-fit: contain;
    pointer-events: none;
}

.glass-popover-button {
    left: -12px;
    position: absolute;
    top: -16px;
    display: block;
    margin-top: 3px;
    text-align-last: center;
    width: 17px;
    height: 17px;
    min-width: 16px;
    min-height: 16px;
    padding: 0 7px;
    padding-left: 3px;
}

.glass-popover-body {
    max-height: 320px;
    width: 340px;
    padding: 20px;
    overflow: auto;
}

.glass-popover-column {
    padding-top: 5px;
    margin: -10px;
}

.glass-popover-column>.attribute, .glass-popover-column>.value {
    white-space: nowrap;
}

.glass-popover-wrapper {
    visibility: hidden;
}

.glass-popover-divider {
    margin-left: 0;
    margin-right: 0;
}

.empty-glass-popover-wrapper {
    left: 40px;
    visibility: hidden;
}

.glass-flex-item-sample:hover>.checkbox-hide {
    visibility: visible;
}

.glass-flex-item-sample:hover>.glass-popover-wrapper {
    position: relative;
    top: -450px;
    visibility: visible;
}

.glass-flex-item-sample:hover>.empty-glass-popover-wrapper {
    visibility: visible;
    position: relative;
    top: -150px;
}

.glass-block:checked {
    left: -30px;
}

.glass-block:checked+.glass-flex-item-sample:hover>.glass-popover-wrapper {
    left: 37px;
    visibility: visible;
}

.glass-flex-item-sample:hover>.glass-block:checked {
    left: -30px;
}

.vision-folder {
    height: auto;
    width: auto;
    margin: 2px auto;
    display: inline-grid;
    grid-template-rows: 80px;
}

.vision-folder-slide {
    height: auto;
    width: auto;
    font-size: 14px;
    font-weight: normal;
    display: inline-grid;
    grid-template-columns: 60px;
    justify-items: center;
    position: relative;
    vertical-align: middle;
}

.vision-folder-slide-checked {
    height: auto;
    width: auto;
    font-size: 14px;
    font-weight: normal;
    display: inline-grid;
    grid-template-columns: 60px;
    justify-items: center;
    position: relative;
    vertical-align: middle;
}

.glass-flex-folder:hover>.checkbox-hide {
    visibility: visible;
}

.glass-flex-folder:hover>.glass-popover-wrapper {
    visibility: visible;
    display: inline-block !important;
    left: 10px;
    position: relative;
    top: -150px;
}

.glass-flex-folder {
    width: 100px;
    height: 300px;
    position: relative;
}

.checkbox-block {
    position: absolute;
    top: 4px;
    left: 4px;
    visibility: visible;
}

.checkbox-hide {
    position: absolute;
    top: 4px;
    left: 4px;
    visibility: hidden;
}

.ReactVirtualized__Collection {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    height: 100% !important;
    width: 100% !important;
}

.glass-flex-item-barcode-small-scale {
    width: 94px;
    height: 70px;
    background: #e4e4e4;
    line-height: 65px;
    margin-top: -2px;
}

.glass-barcode-image-small-scale {
    width: 94px;
    height: 70px;
    display: flex;
}

.glass-preview-image-small-scale {
    height: 85px;
    max-height: 100%;
    transform: rotate(90deg) translate(-7px, 60px);
    width: 220px;
    object-fit: contain;
    pointer-events: none;
}

/* Collection default theme */

.ReactVirtualized__Collection {
}

.ReactVirtualized__Collection__innerScrollContainer {
}

/* Grid default theme */

.ReactVirtualized__Grid {
}

.ReactVirtualized__Grid__innerScrollContainer {
}

/* Table default theme */

.ReactVirtualized__Table {
}

.ReactVirtualized__Table__Grid {
}

.ReactVirtualized__Table__headerRow {
  font-weight: 700;
  text-transform: uppercase;
  display: flex;
  flex-direction: row;
  align-items: center;
}
.ReactVirtualized__Table__row {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.ReactVirtualized__Table__headerTruncatedText {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.ReactVirtualized__Table__headerColumn,
.ReactVirtualized__Table__rowColumn {
  margin-right: 10px;
  min-width: 0px;
}
.ReactVirtualized__Table__rowColumn {
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ReactVirtualized__Table__headerColumn:first-of-type,
.ReactVirtualized__Table__rowColumn:first-of-type {
  margin-left: 10px;
}
.ReactVirtualized__Table__sortableHeaderColumn {
  cursor: pointer;
}

.ReactVirtualized__Table__sortableHeaderIconContainer {
  display: flex;
  align-items: center;
}
.ReactVirtualized__Table__sortableHeaderIcon {
  flex: 0 0 24px;
  height: 1em;
  width: 1em;
  fill: currentColor;
}

/* List default theme */

.ReactVirtualized__List {
}
.vision-slide {
    height: auto;
    width: auto;
    margin: 2px auto;
    display: inline-grid;
    grid-template-columns: 180px 60px;
    grid-template-rows: 80px;
    background: rgba(255, 255, 255, 0.4);
    border-width: 1px;
    border-color: #e4e4e4;
    border-style: solid;
}

.vision-folder > .vision-slide-sample {
    display: inline-block;
    grid-column: 1;
    grid-row: 1;
    align-self: center;
}

.vision-folder > .vision-folder-name {
    line-height: initial;
    grid-column: 2;
    white-space: normal;
    margin: auto auto auto 15px;
    word-break: break-word;
}

.vision-slide > .vision-slide-sample {
    display: flex;
    grid-column: 1;
    grid-row: 1;
}

.vision-slide > .vision-slide-sample > img {
    width: auto;
    height: auto;
    max-height: 100%;
    max-width: 100%;
    margin: auto;
}

.vision-slide > .vision-slide-label {
    grid-column: 2;
    grid-row: 1;
    background: rgba(231, 231, 231, 0.8);
}

.vision-slide > .vision-slide-label > img {

    /* Ширина и высота поменяна местами потому что потом повернём */
    width: 80px;
    height: 60px;

    /* Перед вращением перемещаем в новый центр: (height-width)/2, (width-height)/2 */
    transform: translate(-10px, 10px) rotate(-90deg);
    transition: transform ease 0.4s;
}

.glass-flex-item > .glass-flex-item-barcode > img.flipped {
    transform: rotate(180deg);
}

.vision-slide > .vision-slide-label > img.flipped {

    /* Перед вращением перемещаем в новый центр: (height-width)/2, (width-height)/2 */
    transform: translate(-10px, 10px) rotate(90deg);
}

.vision-slide > .vision-slide-label > button.button-rotate {
    display: none;
    position: relative;
    left: -82px;
    top: -45px;
    background-image: url(/images/Rotate-with-white-border_18x18.svg) !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

.glass-flex-item > .glass-flex-item-barcode > button.button-rotate {
    display: none;
    position: relative;
    left: 35px;
    top: -94px;
    background-image: url(/images/Rotate-with-white-border_18x18.svg);
    background-position: center;
    background-repeat: no-repeat;
}

.glass-flex-item > .glass-flex-item-barcode:hover > button.button-rotate {
    display: initial;
}

.vision-slide > .vision-slide-label:hover > button.button-rotate {
    display: initial;
}

.bp6-dark .vision-slide > .vision-slide-label > button.button-rotate:hover {
    background-color: rgba(143, 153, 168, 0.3);
}
.dnd-alert-area {
    float: right;
    flex: 1 1 100%;
    width: calc(100% - 60px);
    height: calc(100% - 100px);
    margin: 60px 30px 30px;
    display: table;
    pointer-events: auto;
    min-height: 610px;
    min-width: 1050px;
}

.dnd-alert-area-content {
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    font-size: 22px;
}

.dnd-hr-line {
    border-bottom: solid #b4b4b4 1px;
    width: 1000px;
    padding-top: 15px;
    margin: 10px 0 10px calc((100% - 1000px) / 2);
}

.dnd-choose-button {
    min-width: 278px !important;
    margin: 5px 15px 5px 35px;
}

.dnd-choose-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hint-tooltip-content {
    max-width: 200px;
    white-space: normal;
    text-align: center;
}

.dnd-about-content {
    display: inline-block;
}

.dnd-about-item {
    display: flex;
    margin: 10px 0;
}

.dnd-about-label {
    align-content: center;
}

.dnd-file-format-icon {
    margin: 0 20px 0 0;
}

.dnd-with-distribution .bp6-tree-node-content {
    height: auto;
    min-height: 30px;
    padding-top: 3px;
    padding-bottom: 3px;
}

.dnd-with-distribution .bp6-tree-node-label {
    white-space: normal;
}

.dnd-slide-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dnd-slide-target {
    margin-top: 2px;
    font-size: 12px;
    line-height: 16px;
}

.dnd-slide-target-case {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dnd-slide-target-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dnd-slide-target-loading {
    width: 60%;
    height: 12px;
}

.dnd-slide-target-unassigned {
    color: #935610;
}

.bp6-dark .dnd-slide-target-unassigned {
    color: #fbb360;
}

.dnd-slide-case {
    font-weight: 500;
}

.dnd-slide-new {
    margin-left: 5px;
    color: #1c6e42;
}

.bp6-dark .dnd-slide-new {
    color: #72ca9b;
}

.dnd-distribution-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    min-height: 16px;
    margin-top: 12px;
    font-size: 12px;
    line-height: 16px;
}
/* Вкладки, быстрый фильтр и таблица случаев лежат на одной поверхности, как части одной панели */

.vision-cases-panel {
    display: flex;
    flex: 1 1 100%;
    flex-direction: column;
    min-height: 0;
    margin: 0 20px;
    overflow: hidden;
    background: #ffffff;
}

.bp6-dark .vision-cases-panel {
    background: var(--bp-black);
}

.vision-cases-panel > .vision-sampleList-tableFlexDiv {
    min-height: 0;
    margin: 0;
}

.vision-cases-tabs {
    flex: none;
    padding: 0 16px;
    box-shadow: inset 0 -1px 0 rgba(16, 22, 26, 0.15);
}

.bp6-dark .vision-cases-tabs {
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.vision-cases-tabs .bp6-tab[aria-selected="true"] {
    font-weight: 600;
}

/* Счётчик набран мельче названия вкладки, поэтому они выравниваются по базовой линии, а не по середине вкладки */

.vision-cases-tabs .bp6-tab {
    align-items: baseline;
}

.vision-cases-counter {
    margin-left: 8px;
}

/* Вкладки крупные, и плашка внутри них без этого правила получает размер крупной плашки */

.vision-cases-tabs .bp6-tab .bp6-tag.vision-cases-counter {
    min-width: 20px;
    min-height: 20px;
    padding: 2px 6px;
    font-size: 14px;
    line-height: 16px;
}

.vision-cases-counter-plain {
    font-size: 13px;
    font-weight: normal;
    opacity: 0.6;
}

.vision-cases-quickFilter {
    display: flex;
    flex: none;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 12px;
}

.vision-cases-chip-count {
    margin-left: 8px;
    opacity: 0.65;
}

.vision-cases-actionsCell .bp6-button {
    margin-right: 6px;
}

/* Панель предпросмотра случая: отдельная поверхность под панелью таблицы той же ширины. Высота постоянная,
   а в низком окне ограничена долей высоты списка, чтобы таблица над панелью не исчезала */

.vision-cases-preview {
    display: flex;
    flex: none;
    flex-direction: column;
    height: 300px;
    max-height: 45%;
    margin: 20px 20px 0;
    overflow: hidden;
    background: #ffffff;
}

.bp6-dark .vision-cases-preview {
    background: var(--bp-black);
}

.vision-cases-previewClose {
    align-self: center;
}

.vision-cases-previewBody {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

/* Поля заданы содержимому, а не прокручиваемому блоку: поле блока не продолжает содержимое, которое шире него, и последний элемент встал бы вплотную к краю */

.vision-cases-previewContent {
    box-sizing: border-box;
    width: max-content;
    min-width: 100%;
    padding: 12px 16px;
}

/* Группы препаратов идут в ряд: блоки, препараты без блока, изображения случая */

.vision-cases-previewSlides {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}

/* Ширину группы задают её препараты. Заголовок длиннее них расширяет группу только до 160px, дальше обрезается */

.vision-cases-previewGroup {
    display: grid;
    flex: none;
    grid-template-columns: fit-content(160px);
    row-gap: 8px;
}

.vision-cases-previewGroup .vision-case-filmGroupHeader {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vision-cases-previewGlasses {
    display: flex;
    gap: 8px;
}

.vision-cases-previewGlass {
    flex: none;
    width: 64px;
    border: 1px solid #e4e4e4;
    cursor: pointer;
}

.bp6-dark .vision-cases-previewGlass {
    border-color: var(--bp-dark-gray5);
}

.vision-cases-previewGlassSample {
    position: relative;
    height: 136px;
    overflow: hidden;
    background: #ffffff;
}

/* Снимок препарата снят вдоль стекла, а стекло показано стоя: размеры заданы до поворота */

.vision-cases-previewGlassSample img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 136px;
    max-width: none;
    height: 62px;
    object-fit: contain;
    transform: translate(-50%, -50%) rotate(90deg);
}

.vision-cases-previewGlassLabel {
    height: 46px;
    background: rgba(231, 231, 231, 0.8);
}

.vision-cases-previewGlassLabel img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vision-cases-previewGlassLabel img.flipped {
    transform: rotate(180deg);
}

/* Изображения случая стоят в два ряда и по высоте равны стеклу препарата с этикеткой */

.vision-cases-previewImages {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 88px);
    gap: 8px;
}

.vision-cases-previewImages img {
    width: 118px;
    height: 88px;
    object-fit: cover;
    background: var(--bp-light-gray3);
    cursor: pointer;
}

.bp6-dark .vision-cases-previewImages img {
    background: var(--bp-dark-gray3);
}

/* Секции сводки случая стоят в ряд, поэтому их разделяет промежуток, а не линия под секцией */

.vision-cases-previewData {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.vision-cases-previewData .vision-case-summarySection {
    flex: none;
    width: 270px;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

/* Тексты данных анализа вынесены в отдельную колонку справа от списка */

.vision-cases-previewData .vision-case-summaryAnalysis {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: 270px 290px;
    column-gap: 32px;
    width: auto;
}

.vision-cases-previewData .vision-case-summaryAnalysis h4 {
    grid-row: 1;
    grid-column: 1;
}

.vision-cases-previewData .vision-case-summaryAnalysis .vision-case-summaryList {
    grid-row: 2;
    grid-column: 1;
    align-self: start;
}

.vision-cases-previewData .vision-case-summaryTexts {
    grid-row: 1 / span 2;
    grid-column: 2;
}

.vision-cases-previewData .vision-case-summaryTexts .vision-case-summaryText:first-child {
    margin-top: 0;
}

.vision-createCase-dialog {
    width: 520px;
}

/* Кнопки отделяет от последнего поля только отступ блока кнопок */

.vision-createCase-dialog .bp6-dialog-body, .vision-createCase-dialog .bp6-dialog-body > .bp6-form-group:last-child {
    margin-bottom: 0;
}

.vision-createCase-dialog textarea {
    resize: vertical;
}

.vision-assignSlide-dialog {
    width: 520px;
}

/* Список подсказок случаев прокручивается, а не растёт на всю его длину */

.vision-assignSlide-casesPopover .bp6-menu {
    max-height: 300px;
    overflow-y: auto;
}

.payment-result-dialog {
    width: 400px;
    min-height: 230px;
}

.payment-result-dialog > .bp6-dialog-header {
    padding-left: 0;
}

.payment-result-dialog > .bp6-dialog-header > .bp6-icon {
    margin-left: 15px;
    margin-right: 15px;
}

.payment-result-body {
    padding: 20px 40px;
}

.payment-result-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 157px;
    height: 50px;
}

.payment-result-submit {
    display: flex;
    justify-content: center;
}

.payment-result-submit > button {
    margin-top: 20px;
    width: 100px;
}
