html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: hidden;
}

body {
    background-color: rgb(34, 34, 34);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.body-box {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: safe center;
    align-items: safe center;
    box-sizing: border-box;
    overflow: hidden;
    flex-shrink: 1;
}

.body-box-row {
    flex-direction: row;
}

.body-box-column {
    flex-direction: column;
}

/* Слои */

.body-box-overlay {
    position: relative;
}

.body-box-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.layer-1 { z-index: 1; }
.layer-2 { z-index: 2; }
.layer-3 { z-index: 3; }
.layer-4 { z-index: 4; }

/* Растяжки и стяжки */

.vertical-stretch {
    height: 100%;
    flex-shrink: 2;
}

.horizontal-stretch {
    width: 100%;
    flex-shrink: 2;
}

.horizontal-normalizer {
    min-width: max(60%, 320px);
}

.vertical-screed-narrow {
    height: 32px;
    min-height: 32px;
}

.vertical-screed-medium {
    height: 40px;
    min-height: 40px;
}

.vertical-screed-big {
    height: 62px;
    min-height: 62px;
}

.vertical-screed-grand {
    height: 74px;
    min-height: 74px;
}

.horizontal-screed-zero {
    width: 0;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
}

.horizontal-screed-narrow {
    width: 60px;
    min-width: 60px;
}

.horizontal-screed-medium {
    width: 240px;
    min-width: 240px;
}

.divider {
    background-color: rgb(60, 60, 60);
    margin: 12px;
}

.horizontal-divider {
    width: 100%;
    height: 1px;
}

.vertical-divider {
    height: 100%;
    width: 1px;
}


/* Визуальные классы */

.body-box-dark {
    background-color: rgb(26, 26, 26);
    border-bottom: 1px solid rgb(38, 38, 38);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.body-box-main {
    border-right: 1px solid rgb(50, 50, 50);
    border-left: 1px solid rgb(50, 50, 50);
    border-top: 1px solid rgb(50, 50, 50);
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    background-color: rgb(40, 40, 40);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4);
}

.body-box-flanking {
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    border: 1px solid rgb(50, 50, 50);
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.4);
    background-color: rgb(34, 34, 34);
    margin-top: 8px;
    margin-left: 8px;
}


/* Функциональные классы */
/* используется в коде drawers.js */

.drawer-control-button {}

.allow-screed-medium, .allow-screed-narrow, .allow-screed-zero {
    transition: width 0.4s ease, min-width 0.4s ease, opacity 0.6s ease, visibility 0.6s ease;
}

.allow-scrolling {
    overflow-y: auto !important;
    overflow-x: hidden;
    pointer-events: auto;
}

/* Классы блоков контента */

.content-box {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    position: relative;
}

.content-box-row {
    flex-direction: row;
    width: 100%;
}

.content-box-column {
    flex-direction: column;
    height: 100%;
}

.content-box-central {
    width: 100%;
    max-width: 720px;
    min-width: min(100%, 240px);
    flex-wrap: nowrap;
    flex-shrink: 0;
    z-index: 1;
    margin: 4px;
}

.content-box-allow-wrap {
    flex-wrap: wrap;
}

.content-box-small {
    width: 100%;
    max-width: 360px;
    min-width: min(100%, 300px);
    flex-wrap: nowrap;
    flex-shrink: 0;
    z-index: 1;
    margin: 4px;
}

.content-box-satellite {
    flex-shrink: 1;
}

.content-box-sector {
    
}

.advanced-row {
    /* Стили эдентичные .badge .badge-medium*/
    display: flex;
    justify-content: flex-start;
    user-select: none;
    align-items: center;
    margin-top: 4px;
    margin-bottom: 4px;
    border-radius: 8px;
    background-color: rgb(40, 40, 40);
    box-sizing: border-box;
    transition: background-color 0.3s ease, width 0.4s ease;
    gap: 8px;
    overflow: hidden;
    position: relative;
    height: 40px;
    min-height: 40px;
    width: 100%;
    flex-direction: row;
    padding: 8px 8px 8px 12px;
}

.advanced-row:hover {
    background-color: rgb(48, 48, 48);
}

.advanced-row-number {
    color: rgb(112, 112, 112);
    font-weight: 500;
    font-size: 12px;
    white-space: nowrap;
}

.advanced-row-main-text {
    font-family: 'Open Sans', sans-serif;
    color: rgb(200, 200, 200);
    font-size: 14px;
    flex: 1;
    min-width: 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
    z-index: 2;
}

.advanced-row-symbol {
    z-index: 2;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    fill: currentColor;
}

.advanced-row-symbol-container {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 8px;
}

.m-0 {
    margin: 0 !important;
}

.p-0 {
    padding: 0;
}