@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    /*noinspection CssUnknownTarget*/
    src: url('/fonts/Inter/Inter-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    /*noinspection CssUnknownTarget*/
    src: url('/fonts/Inter/Inter-Medium.ttf') format('truetype');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    /*noinspection CssUnknownTarget*/
    src: url('/fonts/Inter/Inter-SemiBold.ttf') format('truetype');
}

:root {
    --scrollbarThumbColor: #D3D4D6;
}

html,
body {
    height: 100vh;
    padding: 0;
    margin: 0;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
    font-variant: no-common-ligatures;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    /*noinspection CssUnknownProperty*/
    scrollbar-color: var(--scrollbarThumbColor) rgba(0, 0, 0, 0);
    overflow: hidden;
}

body::-webkit-scrollbar, body *::-webkit-scrollbar {
    width: 24px;
    height: 24px;
}

body::-webkit-scrollbar-thumb, body *::-webkit-scrollbar-thumb {
    border: 8px solid rgba(0, 0, 0, 0);
    background-clip: padding-box;
    border-radius: 9999px;
    background-color: var(--scrollbarThumbColor);
}

strong {
    font-weight: 600;
}

/* prevent normalize.css from setting display table and breaking Material UI text field */
legend {
    display: block;
}

pre {
    font-size: 13px;
}

#__next {
    height: 100%;
    width: 100%;
    display: flex;
    flex-flow: column nowrap;
}

.faceted-search-text-highlight {
    background-color: rgba(250, 192, 0, 0.2);
    display: inline;
}

input,
textarea,
button {
    font-family: 'Inter', sans-serif;
}

a {
    text-decoration: none;
}

a:not(:link):not(:visited) {
    color: inherit;
}

pre {
    margin: 0;
}

.rich-text-embedded-tag > p {
    margin-block-start: 0;
    margin-block-end: 0;
}

.richtexteditor-filelink {
    color: #146cb7;
    cursor: pointer;
}

.diagram-editor-image {
    display: inline-block;
}

.rich-text-embedded-tag {
    border: 1px dashed #A7A9AC;
    border-radius: 4px;
    padding: 8px;
    display: inline-block;
}

.rich-text-warning-embedded-tag {
    border: 1px dashed #FFAB00;
    border-radius: 4px;
    padding: 4px;
    display: inline-block;
}

.rich-text-warning-embedded-tag > p {
    margin-block-start: 0;
    margin-block-end: 0;
}

.rich-text-no-content-embedded-tag {
    font-weight: 400;
    font-style: italic;
    color: #ADADAC;
}

.rich-text-jira-tag {
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    border-radius: 3px;
    gap: 4px;
    padding: 3px 4px;
    line-height: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
}

.rich-text-jira-status {
    line-height: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    padding: 0 4px;
    border-radius: 3px;
}

.rich-text-jira-cross-icon {
    /* black40Percent */
    cursor: pointer;
    color: #A7A9AC
}

.rich-text-jira-cross-icon:hover {
    /* black */
    color: #24292F
}

.rich-text-anchor-tag-class-root {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    display: inline-grid;
    grid-auto-flow: column;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    border-radius: 4px;
    padding: 0 4px;
    margin: 8px 0;
    height: 24px;
    border: solid 1px #E9EAEA;
    user-select: none;
}

.rich-text-anchor-tag-class-link {
    height: 24px;
    line-height: 24px;
    font-size: 0.75rem;
    margin-left: 4px;
    color: #243CB8;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.rich-text-anchor-tag-class-link:hover {
    color: #3852DC;
    text-decoration: underline;
}

.ant-select-dropdown {
    border-radius: 4px !important;
}

.ant-select-item-option-selected {
    /* black5Percent */
    background-color: #F4F4F5 !important;
}

.hljs {
    background: unset !important;
}

/* resolve fullscreen problem */
.simplebar-track {
    z-index: auto !important;
}

.simplebar-mask {
    z-index: 1 !important;
}

.tox .tox-pop__dialog {
    border: 1px solid #E9EAEA !important;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25) !important;
}

.tox .tox-dialog__body-nav-item--active {
    border-bottom: 2px solid #24292F !important;
    color: rgba(34, 47, 62, .7) !important
}

.tox .tox-button[title="Close"]:not(.tox-button--naked) {
    background-color: #24292F !important;
    border-color: #24292F !important;
}

.tox .tox-dialog__body-nav-item:focus {
    background-color: #F4F4F5 !important;
}

.rich-text-embedded-diagram {
    font-family: 'Inter', sans-serif;
    border-radius: 4px;
    border: 1px dashed #D3D4D6;
    background: #F4F4F5;
    padding: 48px;
    margin: 1px;
}

.rich-text-embedded-diagram-delete {
    outline: 1px solid #DE350B !important;
}

.rich-text-embedded-diagram > .embedded-diagram-root {
    border-radius: 4px;
    border: 1px solid #E9EAEA;
    background: #FFF;
    padding: 24px;
    margin: 0 auto;
}

.rich-text-embedded-diagram .embedded-diagram-title-wrapper {
    display: grid;
    grid-template-columns: max-content;
    column-gap: 16px;
    margin-bottom: 24px;
    grid-template-areas:
            "icon title"
            "icon subtitle"
}

.rich-text-embedded-diagram .embedded-diagram-title {
    grid-area: title;
    font-weight: 600;
}

.rich-text-embedded-diagram .embedded-diagram-icon {
    grid-area: icon;
}

.rich-text-embedded-diagram .embedded-diagram-subtitle {
    grid-area: subtitle;
    color: #A7A9AC;
}

.rich-text-embedded-diagram .embedded-diagram-button {
    background: #24292F;
    color: #FFF;
    border-radius: 4px;
    border: none;
    padding: 8px 12px;
    margin-bottom: 24px;
    cursor: pointer;
}

.rich-text-embedded-diagram .embedded-diagram-info {
    display: grid;
    gap: 4px;
    align-items: start;
    grid-auto-flow: column;
    grid-template-columns: max-content;
    line-height: 16px;
}

