/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
.karavan .dsl-page .flows .step-element {
    align-items: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    width: fit-content;
    border-color: var(--pf-v5-global--Color--200);
    border-radius: 42px;
    border-width: 1px;
    min-width: 120px;
    padding: 3px 4px 4px 4px;
    margin: 3px auto 0 auto;
    position: relative;
}
.karavan .dsl-page .flows .step-element:hover .add-element-button,
.karavan .dsl-page .flows .step-element:hover .add-button {
    visibility: visible;
}

.karavan .dsl-page .flows .step-element .header-route {
    display: block;
    background: transparent;
    border-radius: 42px;
    padding: 20px;
    margin: 0;
    z-index: 101;
    min-width: 260px;
}

.karavan .dsl-page .flows .step-element .header-bottom-selected {
    border-bottom: 1px dashed var(--step-border-color-selected);
}

.karavan .dsl-page .flows .step-element .header-bottom-not-selected {
    border-bottom: 1px dashed var(--pf-v5-global--Color--200);
}

.karavan .dsl-page .flows .step-element .header-route:hover {
    cursor: pointer;
}

.karavan .step-element .header-route .delete-button {
    position: absolute;
    top: 5px;
    right: 5px;
    line-height: 1;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: #909090;
    visibility: hidden;
}

.karavan .step-element .header .delete-button,
.element-builder .header .delete-button {
    position: absolute;
    top: -11px;
    line-height: 1;
    border: 0;
    padding: 0;
    margin: 0 0 0 10px;
    background: transparent;
    color: #909090;
    visibility: hidden;
}

.karavan .step-element .header:hover .delete-button,
.karavan .step-element .header-route:hover .delete-button,
.element-builder .header:hover .delete-button {
    visibility: visible;
}

.modal-delete {
    width: 350px !important;
}

.karavan .step-element .header {
    height: 50px;
}

.karavan .step-element .selected .header-icon {
    border-color: var(--pf-v5-global--primary-color--100);
    background-color: var(--pf-v5-global--palette--blue-50);
    border-width: 2px;
}

.karavan .step-element .header .header-text {
    position: absolute;
    top: 8px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: row;
}

.karavan .step-element .header .spacer {
    width: 50%
}

.karavan .step-element .header .text-bottom {
    background-color: rgba(255, 255, 255, 0.2);
}

.karavan .step-element .header .text-right {
    padding-left: 21px;
    width: 50%;
    text-align: start;
}

.karavan .step-element .header .header-text-required {
    color: var(--pf-v5-global--danger-color--100);
    font-weight: bold;
}

.karavan .step-element .header-icon {
    border-color: var(--pf-v5-global--Color--300);
    border-style: solid;
    border-width: 1px;
    background: white;
    width: 33px;
    height: 33px;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.karavan .step-element .header-icon-circle {
    border-radius: 33px;
}

.karavan .step-element .header-icon-circle .dynamic{
    fill: var(--pf-v5-global--Color--400);
}

.karavan .step-element .header-icon-square {
    border-radius: 33px;
}

.karavan .step-element .header-icon-diamond {
    border-radius: 4px;
    transform: rotate(45deg);
    margin-top: -4px;
    width: 30px;
    height: 30px;
}

.karavan .step-element .header-icon-diamond .icon {
    transform: rotate(-45deg);
}

.karavan .step-element .element-border-passed {
    border-width: 2px;
    background-color: var(--pf-v5-global--palette--green-100);
    border-color: var(--pf-v5-global--palette--green-400);
}

.karavan .step-element .header-icon-border-passed {
    border-width: 2px;
    background-color: var(--pf-v5-global--palette--green-100);
    border-color: var(--pf-v5-global--palette--green-400);
}

.karavan .step-element .header-icon-border-current {
    border-width: 2px;
    background-color: var(--pf-v5-global--palette--gold-100);
    border-color: var(--pf-v5-global--palette--gold-400);
}

.karavan .step-element .header-icon-border-failed {
    border-width: 2px;
    background-color: var(--pf-v5-global--palette--red-100);
    border-color: var(--pf-v5-global--palette--red-200);
}

.karavan .step-element .route-icons {
    position: absolute;
    top: 0;
    display: flex;
}

.karavan .step-element .header .icon,
.element-builder .header .icon {
    height: 22px;
    width: auto;
    border: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -o-user-select: none;
    user-select: none;
}

.karavan .step-element .add-element-button {
    top: 5px;
    left: 5px;
    font-size: 15px;
    line-height: 1;
    border: 0;
    padding: 0;
    background: transparent;
    color: var(--pf-v5-global--primary-color--100);
    visibility: hidden;
    z-index: 100;
    position: absolute;
}

.karavan .step-element .insert-element-button {
    position: absolute;
    top: -11px;
    line-height: 1;
    border: 0;
    padding: 0;
    margin: 0 0 0 -30px;
    background: transparent;
    color: var(--pf-v5-global--primary-color--100);
    visibility: hidden;
    z-index: 100;
}

.karavan .step-element .copy-element-button {
    position: absolute;
    bottom: 9px;
    line-height: 1;
    border: 0;
    padding: 0;
    margin: 0 0 0 -30px;
    background: transparent;
    color: var(--pf-v5-global--primary-color--100);
    visibility: hidden;
    z-index: 100;
}

.karavan .step-element .header:hover .copy-element-button,
.karavan .step-element .header:hover .insert-element-button {
    visibility: visible;
}

.karavan .step-element .add-button-bottom {
    position: relative;
}

.karavan .step-element .add-button-left {
    position: absolute;
    top: 4px;
    left: 4px;
}

.karavan .step-element .add-button {
    font-size: 15px;
    height: 15px;
    line-height: 1;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: var(--pf-v5-global--primary-color--100);
    visibility: hidden;
    z-index: 100;
}

.disabled {
    opacity: 0.5;
}
.menu-button {
    position: absolute;
    top: 26px;
    line-height: 1;
    border: 0;
    padding: 0;
    margin: 0 0 0 10px;
    background: transparent;
    color: var(--pf-v5-global--primary-color--100);
    visibility: hidden;
}

.dsl-element:hover .menu-button {
    visibility: visible;
}
