/*
 * Copyright (c) 2015 - 2025 by itopia ag, Zurich
 */


/*
 * Overall style tweaks
 */

@font-face {
    font-family: 'JetBrainsMono-Bold-Italic'; /*a name to be used later*/
    src: url('static/fonts/JetBrainsMono-Bold-Italic.ttf'); /*URL to font*/
}

@font-face {
    font-family: 'JetBrainsMono-Regular'; /* a name to be used later */
    src: url('static/fonts/JetBrainsMono-Regular.ttf'); /* URL to font */
}

.border-secondary {
    border-color: #c0c0c0 !important;
}

.btn-outline-secondary {
    border-color: #c0c0c0 !important;
}

.nav-tabs {
    border-color: #c0c0c0 !important;
}

/*
 * Navbar and brand styles
 */
.navbar_padding {
    padding-top: 0;
    padding-bottom: 0;
}
.logo-big {
    font-family: 'JetBrainsMono-Bold-Italic';
    font-size: 32px;
    /*
    color: #ffffff;
    */
    color: #FFC000;
    margin-left: -8px; /* -4px;*/
}

.logo-deployment-label {
    font-family: 'JetBrainsMono-Bold-Italic';
    position: relative;
    font-size: 14px;
    top: 18px;
    rotate: -2deg;
    box-shadow: 1px 1px 1px slategray;
}

.navbar-dropdown-menu {
    margin-top: -0.3rem;
}


/*
 * Basic layout behaviour
 */
.container-full {
    position: absolute;
    top: 73px;
    bottom: 15px;
    left: 0;
    right: 0;
}
.v-scroll {
    overflow-y: auto;
}
.h-scroll {
    overflow-x: auto;
}

.v-fill-card-body {
    position: absolute;
    top: 40px;
    bottom: 0px;
    left: 0px;
    right: 0px;
    overflow: auto;
}

.card {
    border-radius: 0;
}

.card-header-no-btns {
    height: 31px;
}


/*
 * Visual tweaks to used buttons...
 */
.btn-outline-secondary:hover {
    background-color: #c0c0c0;
}
.btn-outline-secondary:not(:disabled):not(.disabled).active,
.btn-outline-secondary:not(:disabled):not(.disabled):active,
.show > .btn-outline-secondary.dropdown-toggle {
    background-color: #a2a2a2;
}

/*
 * Visual tweaks for dropdowns
 */
.dropdown-menu {
    font-size: 0.875rem;
}

/*
 * Dev stuff
 */

.bg-1 {
    background-color: #9acfea;
}
.bg-2 {
    background-color: #a4ead7;
}
.bg-3 {
    background-color: #eac1b3;
}
.bg-4 {
    background-color: #c7bdea;
}


/*
 * Icon sizes
 */

.icon-xs {
    height: 20px;
    width: 20px;
    margin-top: -4px;
}


/*
 * Alert styles
 */

.alert-text-info {
    color: rgb(12, 84, 96);
}

.alert-history-dd-menu {
    padding-top: 0;
    padding-bottom: 0;
    border: none;
}

.alert-text-error {
    color: rgb(114, 28, 36);
}

.alert-history-toast {
    box-shadow: none;
}

/*
 * File tree styles
 */
.file-tree-item {
    white-space: nowrap;
    border: 0;
    z-index: 0;  /* A non-selected, non-hovering file item should be rendered behind hovering or selected items, so the context menu stays visible... Ralph, 08.05.2020 */
}

.file-item-selected {
    z-index: 1 !important;
}

.file-item-hovering {
    z-index: 2 !important;
}

.file-item-context-menu-btn {
    height: 18px;
    width: 20px;
    padding-top: 0px;
    padding-bottom: 0px;
    padding-left: 0px;
    padding-right: 0px;
    margin-right: 4px;
}
.file-item-context-menu-icon {
    width: 14px;
    height: 14px;
    margin-top: -11px;
}

.col-divider-handle {
    position: absolute;
    background-color: #abb1b6;
    width: 8px;
    height: 40px;
    top: calc(50% - 20px);
    border-radius: 4px;
    cursor: col-resize;
    z-index: 5;  /* Ace editor gutter has z-index of 4... Ralph, 01.04.2021 */
}

/*
 * Sign-in page styles
 */
.sign-in-footer {
    position: absolute;
    bottom: -15px;
    left: 10px;
    right: 10px;
    text-align: center;
    font-size: 12px;
}


/*
 * File editor styles
 */
.file-switcher-file-changed {
    font-style: italic;
}

.editor-font {
    font-family: "JetBrainsMono-Regular";
}

.ace_autocomplete {
    width:  60rem !important;
    font-family: "JetBrainsMono-Regular" !important;
}

.code-symbols-dropdown-menu {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
}

.code-symbol-badge {
    padding-top: 4.5px;
    padding-left: 0;
    padding-right: 0;
    width: 20px;
    height: 20px;
    text-align: center;
}

.editor-popover {
    background-color: #f8f8f8;
    max-width: 600px !important;
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.1);
}

.editor-coding-info-content {
    /*background-color: #fdf6df;*/
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    padding: 10px;
    margin-left: -12px;
    margin-right: -12px;
    margin-top: -8px;
    margin-bottom: -8px;
}

.editor-popover-table {
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.editor-popover-line {
    margin-top: 3px;
    margin-bottom: 3px;
}

/*
 * Browser styles
 */

.nav-tabs .nav-link.active {
    border-top-color: #c0c0c0;
    border-left-color: #c0c0c0;
    border-right-color: #c0c0c0;
}

/*
 * Main navigation -> active tab
 */
.navbar-dark .navbar-nav .active>.nav-link {
    color: #ffc000;
}

/*
 * List and table styles
 */
.item-hovering {
    background-color: #F8F9FA !important;
}
.item-selected {
    color: #fff !important;
    background-color: #007bff !important;
}

.item-inactive {
    color: #fff !important;
    background-color: rgb(148, 200, 248) !important;
}

.sticky-thead {
    background-color: #f9f9f9;
    position: sticky;
    top: 0;
    z-index: 10;
}

.text-with-newlines {
    white-space: pre-line;
}

/* Graph composer / SVG Styles */

polygon:hover {
    stroke-width: 4px;
}

ellipse:hover {
    stroke-width: 4px;
}