/*! JointJS+ v4.0.0 - HTML5 Diagramming Framework

Copyright (c) 2024 client IO

 2024-02-03 


This Source Code Form is subject to the terms of the JointJS+ License
, v. 2.0. If a copy of the JointJS+ License was not distributed with this
file, You can obtain one at https://www.jointjs.com/license
 or from the JointJS+ archive as was distributed by client IO. See the LICENSE file.*/


@font-face {
    font-family: 'Roboto Condensed';
    src: url('../assets/fonts/Roboto_Condensed/RobotoCondensed-Light.ttf');
    font-weight: 300;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('../assets/fonts/Roboto_Condensed/RobotoCondensed-Regular.ttf');
    font-weight: Normal;
}

@font-face {
    font-family: 'Roboto Condensed';
    src: url('../assets/fonts/Roboto_Condensed/RobotoCondensed-Bold.ttf');
    font-weight: Bold;
}

@font-face {
    font-family: 'Averia Libre';
    src: url('../assets/fonts/Averia_Libre/AveriaLibre-Light.ttf');
    font-weight: 300;
}

@font-face {
    font-family: 'Averia Libre';
    src: url('../assets/fonts/Averia_Libre/AveriaLibre-Regular.ttf');
    font-weight: Normal;
}

@font-face {
    font-family: 'Averia Libre';
    src: url('../assets/fonts/Averia_Libre/AveriaLibre-Bold.ttf');
    font-weight: Bold;
}

@font-face {
    font-family: 'Alegreya Sans';
    src: url('../assets/fonts/Alegreya_Sans/AlegreyaSans-Light.ttf');
    font-weight: 300;
}

@font-face {
    font-family: 'Alegreya Sans';
    src: url('../assets/fonts/Alegreya_Sans/AlegreyaSans-Regular.ttf');
    font-weight: Normal;
}

@font-face {
    font-family: 'Alegreya Sans';
    src: url('../assets/fonts/Alegreya_Sans/AlegreyaSans-Bold.ttf');
    font-weight: Bold;
}

html {
    --custom-left-width: 300px; /*Для левого края*/
    --custom-right-width: 300px; /*Для правого края*/
    --resizer-width: 0.5rem;
    --toolbar-height: 40px;
    --navigator-height: 150px;
    --aspect-ratio-screen: 2;
}

/*  Toolbar  */
.joint-theme-picker {
    position: absolute;
    bottom: 2rem;
    right: calc(var(--custom-right-width) + 2rem);
    border-radius: 5px;
    padding: 3px 1px !important;
}

.joint-app {
    position: absolute;
    width: 100%;
    height: calc(100% - var(--header-height) - 2.25rem);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    -webkit-user-select: none;
    -moz-user-select: -moz-none;
    user-select: none;
    font-family: sans-serif, Arial;
    /* overflow: hidden; */
}

.app-header {
    position: relative;
    width: 100%;
    height: var(--toolbar-height);
}

.app-body {
    position: relative;
    height: -moz-calc(100% - var(--toolbar-height));
    height: -webkit-calc(100% - var(--toolbar-height));
    height: calc(100% - var(--toolbar-height));
}

.app-title {
    display: inline-flex;
    justify-content: center;
    width: calc(var(--custom-left-width) - var(--resizer-width));
    /* border: 0; */
    border: 1px solid rgba(0, 0, 0, .125);
    height: 100%;
    padding: 0;
}

.inspector-title {
    width: calc(var(--custom-right-width) - var(--resizer-width));
    position: absolute;
    left: calc(100% - var(--custom-right-width) + var(--resizer-width));
}

.app-title > h1 {
    color: var(--blue-500);
    /* color: #fff; */
    font-size: 1rem;
    line-height: var(--toolbar-height);
    text-align: left;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}

/*  Paper  */
.paper-container {
    position: absolute;
    top: 0;
    height: 100%;
    overflow: hidden;
    box-sizing: border-box;
    left: var(--custom-left-width);
    right: var(--custom-right-width);
}

/* Cells */

.joint-paper-scroller[data-cursor="crosshair"] .joint-cell {
    cursor: crosshair;
}

/*  Inspector  */
.inspector-container {
    position: absolute;
    top: 0;
    right: 0;
    /* bottom: calc(var(--custom-right-width)/var(--aspect-ratio-screen)); */
    bottom: 0;
    width: var(--custom-right-width);
    box-sizing: border-box;
}

.inspector-container .content {
    bottom: var(--navigator-height);
}

/* @media screen and (max-width: 900px) {
  .inspector-container,
  .navigator-container {
    width: 0;
    display: none
  }

  html {
    --custom-right-width: var(--resizer-width)
  }
} */


.object-property[data-property$="/fill"],
.object-property[data-property$="/stroke"],
.field[data-field$="/fill"],
.field[data-field$="/stroke"] {
    display: inline-block;
    vertical-align: top;
    width: 50%;
}

.joint-select-box.joint-color-palette .select-box-option:nth-child(2):not(.hover) {
    border: inset;
    border-width: 1px;
}

.joint-inspector-select-box-options {
    width: 190px;
}

/*  Navigator  */
.navigator-container {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 1;
    width: var(--custom-right-width);
    /* height: calc(var(--custom-right-width)/var(--aspect-ratio-screen)); */
    height: var(--navigator-height);
}

/*  Stencil  */
.stencil-container {
    position: absolute;
    left: 0;
    top: 0;
    width: var(--custom-left-width);
    height: 100%;
}

.joint-stencil .joint-element[data-type="standard.Image"] text,
.joint-stencil .joint-element[data-type="standard.Cylinder"] text,
.joint-stencil .joint-element[data-type="standard.InscribedImage"] text,
.joint-stencil .joint-element .joint-port text {
    display: none;
}

/*  Toolbar  */
.toolbar-container {
    display: inline-block;
    position: absolute;
    height: 100%;
    left: calc(var(--custom-left-width) - var(--resizer-width));
    border-left: calc(var(--resizer-width)) solid var(--blue-500);
    right: calc(var(--custom-right-width) - var(--resizer-width));
    border-right: calc(var(--resizer-width)) solid var(--blue-500);
    box-sizing: border-box;
}

.toolbar-container .joint-toolbar {
    width: 100%;
    height: 100%;
}

.toolbar-container label {
    white-space: nowrap;
}

.toolbar-container button:not(:empty) {
    padding: 0 4px;
}

.toolbar-container button.joint-widget[data-type="zoomIn"],
.toolbar-container button.joint-widget[data-type="zoomOut"] {
    display: none;
}

.joint-dialog.joint-lightbox .fg {
    background-color: #F6F6F6;
}
