/**
 * D2S Workspaces CSS
 **/

/* Layout */

body {
    color: #495057;
    overflow-y: scroll;
    height: 100%;
}

.wrapper {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.main {
    width: 100%;
    min-height: 100vh;
}

.main-animated {
    transition: all .4s ease-in-out;
}

.full-height {
    height: 100vh;
}

/* Sidebar */

.sidebar {
    z-index: 100;
    background: #354052;
    color: #ced4da;
    min-width: 240px;
    max-width: 240px;
    svg{fill:#ced4da};
}

.sidebar-animated {
    transition: all .4s ease-in-out;
}

.sidebar.toggled {
    /*margin-left: -240px;*/
    min-width: 50px;
    max-width: 50px;
}

.sidebar-sticky {
    position: relative;
    top: 0;
    height: calc(100vh - 48px);
    padding-top: .5rem;
    overflow-x: hidden;
    overflow-y: auto;
}

.sidebar .nav-link:hover {
    background-color: #2d3646;
    color: #ced4da;
}

.sidebar .nav-item.active > .nav-link {
    background-color: #2d3646;
}

.sidebar .nav-link {
    color: inherit;
    max-height: 2.5rem;
    white-space: pre;
}

.sidebar .nested-menu {
    margin-left: 0;
    border-left: 45px solid #2d3646;
}

.sidebar.toggled .nested-menu .nav-link {
    margin-left: 3px;
    border-left: 0;
}

.sidebar-logo {
    display: block;
    padding: .75rem 1rem;
    font-size: 1.25rem;
    color: inherit;
    max-height: 3.3rem;
    white-space: pre;
}

.sidebar.toggled .sidebar-logo {
    padding-left: .7rem;
}

.sidebar-logo:hover {
    text-decoration: none;
    color: inherit;
}

/* Header */

.navbar {
    border-bottom: 1px solid #e5e9f2;
    z-index: 90;
}

.navbar-light .navbar-nav .nav-link {
    color: inherit;
}

.navbar .sidebar-toggler:hover {
    text-decoration: none;
}

.header {
    padding-top: 2px;
    margin: 0 -15px;
}

.header-tabs .nav-link {
    border-radius: 0;
    border-width: 0;
    padding-left: 30px;
    padding-right: 30px;
}

/* Footer */

.footer {
    background: #354052;
}

/* Display something in the center of the screen */

.center {
    width: 100%;
    margin: auto;
}

.center-medium {
    max-width: 600px;
    margin-top: 50px;
}

.center-large {
    max-width: 800px;
    margin-top: 50px;
}

/* Poster: form with border and background */

.poster {
    background-color: #f5f9fc;
    background-color: #fafafa;
    border: 1px solid #ddd;
    padding: 15px;
}

.poster .form-control {
    position: relative;
    box-sizing: border-box;
    height: auto;
    font-size: 16px;
}

.poster .top-control {
    margin-bottom: -1px;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.poster .bottom-control {
    margin-bottom: 10px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.plate {
    box-shadow: -5px 5px 10px 0px #343a40;
    border-radius: 4px;
}

.highlight-form {
    border: 1px solid transparent;
}

.highlight-form:hover {
    border: 1px solid #6c757d;
}

/* Info box */
.infobox {
    border-radius: .3rem;
    color: #495057;
    padding: 2rem;
    background-color: #e9ecef;

    background-color: white;
    border: 1px solid #354052;
}

.infobox.muted {
    opacity: 0.25;
    transition: all .4s ease-in-out;
}

.infobox.muted:hover {
    opacity: 1;
}

.infobox .definition {
    color: #17a2b8;
    padding-left: 1em;
    border-color: #17a2b8;

    color: #354052;
    border-color: #354052;
}

.infobox .form-control {
    border: 1px solid #354052;
}

/* IFrame */

iframe.html-preview {
    width: 100%;
    height: 422px;
    border: 1px solid #ddd;
    margin-bottom: -6px;
}

/* Spinner */

.spinner {
    position: fixed;
    margin-top: 2px;
    width: 100%;
    text-align: center;
    z-index: 2000;
    font-size: 250%;
}

/* Autocomplete */

.ac-wrapper {
    position: relative;
    display: inline-block;
}

.ac-items {
    position: absolute;
    border: 1px solid #d4d4d4;
    border-bottom: none;
    border-top: none;
    z-index: 99;
    top: 100%;
    left: 0;
    right: 0;
}

.ac-item {
    padding: 7px;
    cursor: pointer;
    background-color: #fff;
    border-bottom: 1px solid #d4d4d4;
}

.ac-item:hover {
    background-color: #e9e9e9;
}

.ac-item-fake:hover {
    cursor: inherit;
    background-color: #fff;
}

.ac-item.focus {
    background-color: #e9e9e9;
}

.ac-item mark {
    font-weight: bold;
    background-color: inherit;
    padding: 0;
}

/* Utilities */

.form-group-label {
    font-weight: bold;
}

.tag {
    border-radius: 3px;
    padding: 2px 5px;
    margin-right: 5px;
}

.tag-secondary {
    border: 1px solid #6c757d;
    background-color: #6c757d;
    color: white;
}

.tag-light {
    border: 1px solid #212529;
    background-color: #f8f9fa;
    color: #212529;
}

.wait:hover {
    cursor: wait !important;
}

.highlight,
.highlight:hover {
    background-color: #fff3cd !important;
}

.highlight-process,
.highlight-process:hover {
    background-color: #d6dbe4 !important;
}

.code-editor {
    white-space: pre;
}

.hover:hover {
    cursor: pointer;
}

.hover.no-pointer:hover {
    cursor: auto;
}

.hover-shadow:hover {
    box-shadow: 2px 2px 2px #aaa;
}

.hover-bg-light:hover,
.hover-bg-light.wait {
    background-color: #f8f9fa;
}

.hidden-icon {
    color: white;
}

.poster .hidden-icon {
    color: #fafafa;
}

.jumbotron .hidden-icon {
    color: #e9ecef;
}

tr:hover .hidden-icon,
.hover:hover .hidden-icon {
    color: gray;
}

.link {
    padding: 0 !important;
}

.link a {
    padding: .75rem;
    color: inherit;
    display: block;
}

.link a:hover {
    text-decoration: none;
}

.btn-link.no-underline:hover,
a.no-underline:hover {
    text-decoration: none;
}

.table-sparsed td {
    line-height: 35px;
}

.table-striped tbody tr:nth-of-type(2n+1) {
    background-color: #f8f9fa;
}

.td-hover:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

.poster .hover:hover {
    background-color: rgba(0, 0, 0, 0.075);
}

.padding-zero {
    padding: 0 !important;
}

.text-light a {
    color: white;
}

a.text-light:hover {
    color: white !important;
}

.br-0,
.br-0 input,
.br-0 button {
    border-radius: 0;
}

.sim-link:hover {
    text-decoration-color: gray;
}

.active-gray {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.bg-night {
    background: #354052;
}

.text-night {
    color: #354052;
}

.text-action-required {
    color: #e07700;
}

.bg-morning {
    background-color: #f5f9fc;
}

.border-night {
    border-color: #354052 !important;
}

.btn-no-border {
    padding: 0;
    border: none;
    color: #6c757d;
}

.btn-no-border:hover {
    color: black;
}

.btn-no-border:disabled {
    color: #6c757d;
}

.btn-night {
    background: #354052;
    color: #f5f9fc;
}

.btn-night:hover {
    background-color: #2d3646;
    color: #ced4da;
}

.btn-night:disabled,
.btn-night:disabled:hover {
    opacity: .6;
    background-color: #2d3646;
    color: #ced4da;
}

.btn-night:enabled:active {
    background-color: #2d3646;
    box-shadow: 0 5px #f5f9fc;
    transform: translateY(4px);
}

.btn-outline-night {
    border: 1px solid #354052;
    color: #354052;
}

.btn-outline-night:hover {
    /*background: #354052;
    color: #f5f9fc;*/
    background-color: #f8f9fa;
}

.btn-outline-night:enabled:active {
    transform: translateY(4px);
}

.input-group.border .input-group-text,
.input-group.border .form-control {
    border: 0;
}

.opacity-25 {
    opacity: .25;
}

.accordion {
    height: 0;
    overflow-y: auto;
    transition: all .5s ease-in-out;
    background-color: #fff3cd;

}

.definition {
    padding-left: 1em;
    border-left: .5em solid;
}

.container-form {
    border-width: 2px !important;
}

.container-form .close,
.close.btn-no-border,
.close.opacity-1 {
    opacity: 1;
}

.container-form-overlay {
    background-color: #e9ecef !important;
}

.container-form.container-form-overlay {
    border-color: #c8cacd !important;
    border-width: 1px !important;
}

.container-form-overlay > div > div > .bg-white,
.container-form-overlay > div > div > .bg-light {
    background-color: inherit !important;
}

.overlay-transparent-foreground {
    color: #e9ecef !important;
}

.input-expand .input-expand-input {
    border: 0;
    border-bottom: 1px solid;
    transition: width .4s ease-in-out;
    width: 100%;
    background-color: transparent;
    outline: 0px !important;
    box-shadow: none !important;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
}

.input-expand .input-expand-input.hidden {
    border-bottom: 0;
    width: 0;
}

.input-expand .input-expand-action {
    position: absolute;
    top: 0;
    right: 3px;
}

.mono {
    font-size: 85% !important;
    font-family: SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
}

.btn,
.btn:hover,
.btn:active,
.custom-select,
.custom-select:hover,
.custom-select:active,
.form-control,
.form-control:hover,
.form-control:active {
    outline: 0px !important;
    box-shadow: none !important;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
}

a.form-group-label:focus {
    outline: 0;
}

/* Upgrade bootstrap */

.form-check .form-check-input {
    margin-top: .4em;
}

.text-white a,
.text-white a:hover {
    color: white;
}

.card {
    border-radius: 0;
}

.card .card-header {
    border: 0 0 1px 0;
    border-radius: 0;
    padding: 5px 10px;
}

.card-navigation-link {
    font-size: 110%;
}

/* Drag & Drop */

.grip {
    cursor: move;
    cursor: -webkit-grab;
    cursor: -moz-grab;
    cursor: grab;
}

.grip:active {
    transform: rotate(-20deg) !important;
    cursor: -webkit-grabbing;
    cursor: -moz-grabbing;
    cursor: grabbing;
}

.grip.grip-no-rotate:active {
    transform: rotate(0) !important;
}

.grip img {
    pointer-events: none;
}

.drop {
    background-color: #6c757d !important;
    color: white;
}

.webagent .log {
    height: 360px;
    overflow-y: scroll;
    box-shadow: 0 4px 6px -6px #222;
    border: 1px solid #ddd;
    padding-top: 5px;
}

/* Animations */

.slide-down {
    animation: slide-down .5s ease-in-out;
}

@keyframes slide-down {
    0% {
        opacity: 0;
        transform: translateY(-100px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.flicker {
    animation: flicker 1s infinite;
}

@keyframes flicker {
    0%   { opacity:1; }
    50%  { opacity:0; }
    100% { opacity:1; }
}

/* Tooltip */

.d2s-tooltip {
  background-color: black;
  color: #fff;
  opacity: 1;
  text-align: center;
  font-size: .875rem;
  border-radius: 6px;
  position: absolute;
  padding: 5px 10px 5px 10px;
  z-index: 1070;
}

.d2s-tooltip-top {
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
}

.d2s-tooltip::after {
  content: " ";
  position: absolute;
  border-width: 5px;
  border-style: solid;
  border-color: black transparent transparent transparent;
}

.d2s-tooltip-top::after {
  top: 100%;
  left: 50%;
  margin-left: -5px;
}

/* Help popover */

.d2s-popover {
    width: 300px;
    background-color: #FFFFFF;
    color: #000;
    text-align: left;
    font-size: smaller;
    opacity: 1;
    position: absolute;
    padding: 5px 10px 5px 10px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,.25);
    z-index: 1070;
}

.d2s-popover-arrow {
    position: absolute;
}

.d2s-popover-arrow::before,
.d2s-popover-arrow::after {
    content: "";
    position: absolute;
    border-style: solid;
    border-color: transparent;
}

/* top, left */
.d2s-popover-top .d2s-popover-arrow,
.d2s-popover-bottom .d2s-popover-arrow {
    left: 50%;
    margin-left: -7px;
}

/* top */
.d2s-popover-top {
    bottom: 150%;
    left: 50%;
    transform: translateX(-50%);
}
.d2s-popover-top .d2s-popover-arrow {
    bottom: calc((0.5rem + 1px) * -1);
}
.d2s-popover-top .d2s-popover-arrow::before,
.d2s-popover-top .d2s-popover-arrow::after {
    border-width: .5rem .5rem 0;
}
.d2s-popover-top .d2s-popover-arrow::before {
    bottom: 0;
    border-top-color: rgba(0,0,0,.25);
}
.d2s-popover-top .d2s-popover-arrow::after {
    bottom: 1px;
    border-top-color: white;
}

/* bottom */
.d2s-popover-bottom {
    top: 150%;
    left: 50%;
    transform: translateX(-50%);
}
.d2s-popover-bottom .d2s-popover-arrow {
    top: calc((.5rem + 1px) * -1);
}
.d2s-popover-bottom .d2s-popover-arrow::before,
.d2s-popover-bottom .d2s-popover-arrow::after {
    border-width: 0 .5rem .5rem .5rem;
}
.d2s-popover-bottom .d2s-popover-arrow::before {
    top: 0;
    border-bottom-color: rgba(0,0,0,.25);
}
.d2s-popover-bottom .d2s-popover-arrow::after {
    top: 1px;
    border-bottom-color: white;
}

/* left, right */
.d2s-popover-left .d2s-popover-arrow,
.d2s-popover-right .d2s-popover-arrow {
    top: 50%;
    margin-top: -7px;
}

/* left */
.d2s-popover-left {
    top: 50%;
    right: 150%;
    transform: translateY(-50%);
}
.d2s-popover-left .d2s-popover-arrow {
    right: calc((.5rem + 1px) * -1);
}
.d2s-popover-left .d2s-popover-arrow::before,
.d2s-popover-left .d2s-popover-arrow::after {
    border-width: .5rem 0 .5rem .5rem;
}
.d2s-popover-left .d2s-popover-arrow::before {
    right: 0;
    border-left-color: rgba(0,0,0,.25);
}
.d2s-popover-left .d2s-popover-arrow::after {
    right: 1px;
    border-left-color: white;
}

/* right */
.d2s-popover-right {
    top: 50%;
    left: 150%;
    transform: translateY(-50%);
}
.d2s-popover-right .d2s-popover-arrow {
    left: calc((.5rem + 1px) * -1);
}
.d2s-popover-right .d2s-popover-arrow::before,
.d2s-popover-right .d2s-popover-arrow::after {
    border-width: .5rem .5rem .5rem 0;
}
.d2s-popover-right .d2s-popover-arrow::before {
    left: 0;
    border-right-color: rgba(0,0,0,.25);
}
.d2s-popover-right .d2s-popover-arrow::after {
    left: 1px;
    border-right-color: white;
}


/* Models */

.canvas-container canvas {
    outline: none;
}

.btn-air {
    color: inherit;
    text-transform: uppercase;
    white-space: normal;
    border: 0;
    padding: .84rem;
    font-size: .81rem;
    margin: .375rem;
    background: rgba(255, 255 ,255, .5);
    -webkit-box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
    -webkit-transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
    transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out,-webkit-box-shadow .15s ease-in-out;
}

.btn-air:hover,
.btn-air:focus,
.btn-air:active {
    outline: 0;
    -webkit-box-shadow: 0 5px 11px 0 rgba(0,0,0,0.18),0 4px 15px 0 rgba(0,0,0,0.15);
    box-shadow: 0 5px 11px 0 rgba(0,0,0,0.18),0 4px 15px 0 rgba(0,0,0,0.15);
}

/* Workflow */

.workflow-active {
    color: purple;
}

svg.workflow-active{
    /*color: #722692;*/
    filter: invert(13%) sepia(81%) saturate(3590%) hue-rotate(276deg) brightness(90%) contrast(85%);
}
