/*
 * jquery.flowchart - CSS definitions
 */

.flowchart-container {
    position: relative;
    overflow: hidden;
}

.flowchart-links-layer, .flowchart-operators-layer, .flowchart-temporary-link-layer {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
}

.flowchart-operators-layer, .flowchart-temporary-link-layer {
    pointer-events: none;
}

.flowchart-temporary-link-layer {
    display: none;
}

.flowchart-link, .flowchart-operator {
    cursor: default;
}

.flowchart-link path {
    stroke-linecap: round;
    stroke-linejoin: round;
    /* Prototype links are clean thin gray curves — no drop-shadow. */
    transition: stroke 0.15s ease;
}

.flowchart-temporary-link-layer path {
    stroke-linecap: round;
    stroke-linejoin: round;
}

.flowchart-operator-connector {
    position: relative;
    padding-top: 10px;
    padding-bottom: 10px;
    min-height: 28px;
}

.flowchart-operator-connector-label {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0f172a;
    text-transform: uppercase;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.flowchart-operator-inputs .flowchart-operator-connector-label {
    margin-left: 20px;
}

.flowchart-operator-outputs .flowchart-operator-connector-label {
    text-align: right;
    margin-right: 12px;
}

.flowchart-operator-connector-arrow {
    width: 0px;
    height: 0px;
    border-top: 14px solid transparent;
    border-bottom: 14px solid transparent;
    border-left: 14px solid var(--operator-accent, var(--brand-200, #b6c8ff));
    position: absolute;
    top: 0px;
    filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.12));
}

.flowchart-operator-connector-small-arrow {
    width: 0px;
    height: 0px;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 7px solid rgba(255, 255, 255, 0.85);
    position: absolute;
    top: 7px;
    pointer-events: none;
}

.flowchart-operator-connector:hover .flowchart-operator-connector-arrow {
    border-left: 14px solid var(--operator-accent, var(--brand-500, #1f4fd6));
}

.flowchart-operator-inputs .flowchart-operator-connector-arrow {
    left: -2px;
}

.flowchart-operator-outputs .flowchart-operator-connector-arrow {
    right: -14px;
}

.flowchart-operator-inputs .flowchart-operator-connector-small-arrow {
    left: -2px;
}

.flowchart-operator-outputs .flowchart-operator-connector-small-arrow {
    right: -10px;
}

.unselectable {
   -moz-user-select: none;
   -khtml-user-select: none;
   -webkit-user-select: none;

   /*
     Introduced in IE 10.
     See http://ie.microsoft.com/testdrive/HTML5/msUserSelect/
   */
   -ms-user-select: none;
   user-select: none;
}


/* Default Operator */
.rename_settings{
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.flowchart-operator {
    position: absolute;
    width: 260px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-1);
    pointer-events: auto;
    transition: border-color var(--motion-fast) var(--ease),
                box-shadow var(--motion-fast) var(--ease);
}

.flowchart-operator.hover {
    border-color: var(--brand-500);
    box-shadow: var(--shadow-2);
}

.flowchart-operator.selected,
.flowchart-operator.multi-selected {
    border-color: var(--brand-500);
    box-shadow: var(--shadow-2), 0 0 0 1px var(--brand-500);
}

.flowchart-operator .flowchart-operator-title {
    width: 100%;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    box-sizing: border-box;
    border-bottom: 1px solid var(--line);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    background: var(--surface, #fff);
    color: var(--ink-900);
    height: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: move;
    letter-spacing: 0.005em;
}

.flowchart-operator .flowchart-operator-inputs-outputs {
    display: table;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 8px;
}


.flowchart-operator .flowchart-operator-inputs, .flowchart-default-operator .flowchart-operator-outputs {
    display: table-cell;
    width: 50%;
}

/*
 * flowchart-vertical
 */

.flowchart-vertical .flowchart-operator-inputs,
.flowchart-vertical .flowchart-operator-outputs {
    position: relative;
    text-align: center;
    display: table;
    width: 100%;
}
.flowchart-vertical .flowchart-operator-connector-set {
    display: table-cell;
}
.flowchart-vertical .flowchart-operator-connector {
    position: relative;
}
.flowchart-vertical .flowchart-operator-connector-label {
    position: relative;
    text-align: center;
    width: 100%;
}
.flowchart-vertical .flowchart-operator-inputs .flowchart-operator-connector-label {
    margin-left: auto;
}
.flowchart-vertical .flowchart-operator-connector-arrow {
    border-left: 14px solid transparent;
    border-right: 14px solid transparent;
    border-top: 14px solid #ccc;
    left: calc(50% - 14px);
}
.flowchart-vertical .flowchart-operator-connector:hover .flowchart-operator-connector-arrow {
    border-left-color: transparent;
    border-top-color: #999;
}
.flowchart-vertical .flowchart-operator-connector-small-arrow {
    border-right: 7px solid transparent;
    top: 4px;
    left: calc(50% - 7px);
}
.flowchart-vertical .flowchart-operator-connector-arrow {
    top: 0px;
}
.flowchart-vertical .flowchart-operator-outputs .flowchart-operator-connector-arrow {
    bottom: -28px;
    top: auto;
}
.flowchart-vertical .flowchart-operator-outputs .flowchart-operator-connector-small-arrow {
    left: calc(50% - 7px);
    bottom: -16px;
    top: auto;
}
.flowchart-vertical .flowchart-link rect {
    display: none;
}

/*
 * flowchart-operator-body
 */
.flowchart-operator-body {
    padding: 8px 10px 10px;
    cursor: move;
}

/* Prototype meta line: a quiet config caption under the title
   (e.g. "socrata.chicago.gov"). Inline styles in ensureDescriptionElement()
   are the source of truth; this keeps the CSS-only fallback consistent. */
.flowchart-operator-description {
    font: 400 11px/1.4 var(--font-ui, 'Space Grotesk', sans-serif);
    color: var(--ink-500, #6b7c93);
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 0 0 2px;
    display: none;
    white-space: pre-line;
    overflow: hidden;
    max-height: 2.9em;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.flowchart-operator-body-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* ── Prototype subtle connectors ──────────────────────────────────────
   The etl-studio mockup shows small, quiet connection nubs on the node
   edges — no chunky triangles, no INPUT/OUTPUT text. We keep the existing
   connectors (still draggable) but hide the labels and shrink the arrows
   into small accent-tinted nubs flush to the card edge. */
.flowchart-operator-connector-label {
    display: none;
}
.flowchart-operator-connector {
    padding-top: 6px;
    padding-bottom: 6px;
    min-height: 0;
}
.flowchart-operator-connector-arrow {
    border-top-width: 6px;
    border-bottom-width: 6px;
    border-left-width: 7px;
    opacity: 0.85;
    filter: none;
}
.flowchart-operator-inputs .flowchart-operator-connector-arrow {
    left: -1px;
}
.flowchart-operator-outputs .flowchart-operator-connector-arrow {
    right: -7px;
}
.flowchart-operator-connector:hover .flowchart-operator-connector-arrow {
    opacity: 1;
}
/* drop the white inner highlight arrow — too busy at this small size */
.flowchart-operator-connector-small-arrow {
    display: none;
}
