/* Оформление дашборда, ячеек и склада виджетов */

#componentDashboardZ {
    height: calc(100vh - 8.56vh);
    position: absolute;
    width: 131.56vh;
    overflow-y: auto;
    overflow-x: hidden;
}

#componentDashboard, #componentCardDashboardcontainer {
    margin: -0.666vh;
}

#componentCardDashboardcontainer {
    overflow-x: hidden;
}

#componentCardDashboard > .grid-stack-placeholder > .placeholder-content {
    top: 0;
    bottom: 0;
    border-radius: 1.332vh;
}

/* Единая заглушка «Нет доступа» для графиков: оверлей на всю матрицу, сообщение внизу */
#componentStatus.chart-no-access,
#componentStatusBig.chart-no-access,
#componentChart.chart-no-access,
#graphSmallSvg.chart-no-access,
#componentStroygotovnostSvg.chart-no-access,
#componentWorkersList.chart-no-access,
#componentParthnersList.chart-no-access {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-end;
    box-sizing: border-box;
    padding: 2.22vh;
    background: transparent;
}

/* Легенда матрицы: сообщение о недоступе по центру по высоте */
#componentStatusBig.chart-no-access,
#componentStatus.chart-no-access {
    align-items: center;
}

.chart-no-access-text {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 1.554vh;
    line-height: 2.22vh;
    color: #FFA500;
    text-align: center;
}

#dashboardStoreContainer {
    position: absolute;

    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;

    background-color: #000000AA;
    z-index: 20000;
}

#dashboardStorePopup {
    position: absolute;

    height: 96vh;
    width: calc(69.82vh - 2vh);
    left: 2vh;
    top: 2vh;

    background-color: #13161B;

    grid-template-columns: repeat(2, 32vh);
    gap: 1.332vh;
    display: grid;

    grid-auto-rows: min-content;
    align-content: start;

    overflow-y: auto;
    overflow-x: hidden;
}

.storeElement1 {
    height: 28.416vh;
}

#dashboardStorePopupGap {
    position: absolute;
    height: 100vh;
    width: 69.82vh;
    right: -69.82vh;
    top: 0;
    background-color: #13161B;
    transition: right 0.2s ease-in-out;
}

#cell5, #cell6 {
    position: absolute;
    width: 100%;
    height: 100%;
}

.dashboard-store-w3 {
    min-width: 31.56vh;
    width: 31.56vh;
    height: 28.416vh;
    background-color: #292C30;
    border-radius: 1.332vh;
    grid-column: span 1;
}

.dashboard-drag-placeholder {
    opacity: 0;
    pointer-events: none;
    min-height: 0;
}

.dashboard-store-w6 {
    min-width: 31.56vh;
    width: 64.728vh;
    height: 28.416vh;
    background-color: #292C30;
    border-radius: 1.332vh;
    grid-column: span 2;
}

#graphSmallText1 {
    position: absolute;

    top: 22.32vh;
    left: 3.776vh;
    width: 10.878vh;
    height: 1.332vh;

    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-style: Medium;
    font-size: 1.332vh;
    text-box-trim: NONE;
    line-height: 1.332vh;
    letter-spacing: 0%;
    vertical-align: middle;
}

#graphSmallText2 {
    position: absolute;

    top: 22.32vh;
    left: 18.7vh;
    width: 10.878vh;
    height: 1.332vh;

    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-style: Medium;
    font-size: 1.332vh;
    text-box-trim: NONE;
    line-height: 1.332vh;
    letter-spacing: 0%;
    vertical-align: middle;
}

#graphSmallText3 {
    position: absolute;

    top: 24.532vh;
    left: 3.442vh;
    width: 10.878vh;
    height: 2.664vh;

    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-style: Bold;
    font-size: 1.554vh;
    text-box-trim: NONE;
    line-height: 2.664vh;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
}

#graphSmallText4 {
    position: absolute;

    top: 24.532vh;
    left: 18.204vh;
    width: 10.878vh;
    height: 2.664vh;

    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-style: Bold;
    font-size: 1.554vh;
    text-box-trim: NONE;
    line-height: 2.664vh;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
}

#dashboardStoreButtonAdd {
    position: absolute;
    width: 5.328vh;
    height: 3.108vh;
    top: 3.996vh;
    left: 27vh;

    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    cursor: pointer;
}

.dashboard-button-add {
    display: none;
    position: absolute;
    width: 2.664vh;
    height: 2.664vh;
    top: 0;
    right: 0;

    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    z-index: 3000;

    cursor: pointer;
}

.dashboard-button-remove {
    display: none;
    position: absolute;
    width: 2.664vh;
    height: 2.664vh;
    top: 0;
    right: 0;

    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

    z-index: 3000;

    cursor: pointer;
}

.grid-stack>.grid-stack-item>.grid-stack-item-content {
    overflow: hidden;
}

#componentInfoSvgContainer {
    position: relative;
    width: 9.768vh;
    height: 5.328vh;
    overflow: hidden;
}

.dashboard-info-blackbox {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 1.554vh;
    padding: 1.332vh;
    width: 13.986vh;
    background: rgba(247, 241, 236, 0.06);
    border-radius: 1.332vh;
    outline: var(--app-border-width) solid rgba(247, 241, 236, 0.08);
    outline-offset: calc(-1 * var(--app-border-width));
}

#infoBlackbox1 {
    align-items: center;
}

.dashboard-info-blackbox-text,
.dashboard-info-blackbox-text-middle,
.dashboard-info-blackbox-text-bottom {
    width: 11.322vh;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 1.554vh;
    line-height: 2.664vh;
}

.dashboard-info-blackbox-text {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.444vh;
    color: #D0D0D1;
}

.dashboard-info-blackbox-text-middle {
    font-weight: 500;
    color: #7B8087;
}

.dashboard-info-blackbox-text-bottom {
    color: #D0D0D1;
}

body {
    scrollbar-color: #3F4246 #292C30;
    scrollbar-width: thin;
}

@supports (-webkit-appearance: none) {
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }

    ::-webkit-scrollbar-track {
        background: #292C30;
        border-radius: 2px;
    }

    ::-webkit-scrollbar-thumb {
        background: #3F4246;
        border-radius: 2px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #505357;
    }
}

h1 {
    font-size: 2vh;
    margin-bottom: 1.78vh;
}

.grid-stack {
    background: transparent;
    margin: 0;
    max-width: 131.56vh;
}

.grid-header {
    position: absolute;
    height: 2.67vh;
    text-align: left;
    top: 2.22vh;
    left: 2.22vh;

    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-style: Bold;
    font-size: 1.78vh;
    line-height: 2.67vh;
    letter-spacing: 0%;
}

.grid-stack-item-content {
    background: #292C30;
    border-radius: 1.33vh;
    display: flex;
    flex-direction: column;
    gap: 1.332vh;
}

.container-fluid {
    position: absolute;
    overflow-y: auto;

    height: calc(100vh - 8.56vh);
    width: 131.56vh;
}

div[style*="width: 612px"] {
    position: absolute;
    width: 68vh;
    height: 4.44vh;
    top: 2.67vh;
    left: 27.11vh;
}
