.arbol-paso2 {
    padding: 0 10px 20px 10px;
}

.arbol-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}

.arbol-toolbar h4 {
    margin: 8px 0 2px 0;
    color: #2f353b;
    font-weight: 700;
}

.arbol-subtitle {
    margin: 0;
    color: #7e8890;
    font-size: 12px;
}

.arbol-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 8px;
}

.arbol-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f4f6f9;
    border: 1px solid #e7ecf1;
    border-radius: 4px;
    font-size: 11px;
    color: #5e738b;
}

.lg-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.lg-box {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}

.lg-promt {
    background: #3598dc;
}

.lg-evento {
    background: #5e738b;
}

.lg-line {
    width: 22px;
    height: 0;
    border-top: 3px solid #26C281;
    display: inline-block;
}

.lg-resultado {
    border-top-color: #26C281;
}

.lg-vacia {
    border-top: 3px dashed #8e44ad;
}

.lg-fase {
    border-top-color: #e87e04;
    border-top-width: 3px;
}

.arbol-empty {
    text-align: center;
    padding: 50px 20px;
    color: #7e8890;
    background: #fafbfc;
    border: 1px dashed #c9d4de;
    border-radius: 6px;
}

.arbol-empty i {
    font-size: 42px;
    color: #3598dc;
    margin-bottom: 10px;
}

.arbol-viewport {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #eef2f6;
    border: 1px solid #d4dde5;
    border-radius: 6px;
    cursor: grab;
    background-image: radial-gradient(#d5dee6 1px, transparent 1px);
    background-size: 18px 18px;
}

.arbol-viewport.is-dragging {
    cursor: grabbing;
}

.arbol-world {
    position: absolute;
    top: 0;
    left: 0;
    transform-origin: 0 0;
}

.arbol-svg {
    position: absolute;
    top: 0;
    left: 0;
    overflow: visible;
    pointer-events: none;
}

.arbol-nodes {
    position: relative;
}

.nodo-arbol {
    position: absolute;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(47, 53, 59, 0.12);
    background: #fff;
    user-select: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.nodo-arbol:hover {
    box-shadow: 0 6px 16px rgba(47, 53, 59, 0.2);
    transform: translateY(-1px);
}

.nodo-promt {
    width: 280px;
    border-top: 6px solid #3598dc;
}

.nodo-promt .nodo-body {
    padding: 10px 12px 12px 12px;
}

.nodo-promt .nodo-kicker {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #3598dc;
}

.nodo-promt .nodo-title {
    font-size: 13px;
    font-weight: 700;
    color: #2f353b;
    line-height: 1.3;
    margin-top: 3px;
}

.nodo-promt .nodo-meta {
    margin-top: 6px;
    font-size: 11px;
    color: #7e8890;
}

.nodo-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.nodo-actions .btn {
    font-size: 10px !important;
    padding: 2px 7px !important;
}

.nodo-evento {
    width: 250px;
    border-left: 5px solid #5e738b;
}

.nodo-evento.ev-fase {
    border-left-color: #e87e04;
}

.nodo-evento.ev-termina {
    border-left-color: #2f353b;
}

.nodo-evento.ev-sistema {
    opacity: 0.96;
}

.nodo-evento.ev-sistema .nodo-kicker {
    color: #e7505a;
}

.nodo-evento .nodo-body {
    padding: 8px 10px 10px 10px;
}

.nodo-evento .nodo-kicker {
    font-size: 10px;
    color: #8b98a4;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.nodo-evento .nodo-title {
    font-size: 12px;
    font-weight: 600;
    color: #2f353b;
    line-height: 1.3;
}

.nodo-badges {
    margin-top: 6px;
}

.nodo-flag-gatilla {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 8px;
    line-height: 1.4;
}

.arbol-legend .nodo-flag-gatilla {
    margin-top: 0;
}

.nodo-flag-gatilla.is-on {
    background: #26C281;
    color: #fff;
}

.nodo-flag-gatilla.is-off {
    background: #eef1f4;
    color: #8b98a4;
    font-weight: 600;
}

.nodo-evento.ev-responde:not(.ev-hijo-resultado):not(.ev-hijo-vacia):not(.ev-termina):not(.ev-fase) {
    border-left-color: #26C281;
}

.badge-arbol {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    margin-right: 4px;
    color: #fff;
    line-height: 1.4;
}

.badge-spam {
    background: #e7505a;
}

.badge-termina {
    background: #2f353b;
}

.badge-responde {
    background: #26C281;
}

.badge-fase {
    background: #e87e04;
}

.nodo-evento.ev-hijo-resultado {
    border-left-color: #26C281;
}

.nodo-evento.ev-hijo-vacia {
    border-left-color: #8e44ad;
}

.btn-hijo-resultado {
    background: #26C281 !important;
    border-color: #1e9d67 !important;
    color: #fff !important;
}

.btn-hijo-vacia {
    background: #8e44ad !important;
    border-color: #7d3c98 !important;
    color: #fff !important;
}

.hint-evento-hijo {
    padding: 8px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    font-size: 12px;
}

.hint-evento-hijo.hint-resultado {
    background: #e9f8f1;
    border: 1px solid #26C281;
}

.hint-evento-hijo.hint-vacia {
    background: #f5eef8;
    border: 1px solid #8e44ad;
}

.arbol-connector-label {
    font-size: 9px;
    font-weight: 700;
    font-family: "Open Sans", sans-serif;
}

.modal-evento-arbol-body {
    max-height: 75vh;
    overflow-y: auto;
}

.modal-evento-arbol-body textarea {
    font-size: 12px;
}

.evento-arbol-general {
    background: #f4f6f9;
    border: 1px solid #e7ecf1;
    border-radius: 4px;
    padding: 12px 12px 4px 12px;
    margin-bottom: 14px;
}

.evento-arbol-tab-content {
    padding-top: 14px;
}

#ulTabsEventoArbol {
    margin-bottom: 0;
}

#ulTabsPromtArbol {
    margin-top: 6px;
    margin-bottom: 0;
}

#dvTabsPromtArbol {
    padding-top: 4px;
}

#txtPromtComercialArbol,
#txtDiccionarioEventosArbol {
    min-height: 300px;
}

#ulTabsPromtSistema {
    margin-top: 6px;
    margin-bottom: 0;
}

#dvTabsPromtSistema {
    padding-top: 4px;
}

#dvTabsPromtSistema #txtPromtDeSistema,
#dvTabsPromtSistema #txtDiccionarioDeEventos {
    min-height: 400px;
}

#dvModalEventoArbol.modo-view .evento-campo,
#dvModalEventoArbol.modo-view .evento-campo-select {
    background-color: #f5f7fa;
    cursor: default;
}

#dvModalEventoArbol textarea.evento-campo-linea {
    min-height: 34px;
    height: 34px;
    max-height: 90px;
    resize: vertical;
    overflow-y: auto;
    line-height: 1.42857143;
    padding-top: 6px;
    padding-bottom: 6px;
}

.evento-campo-fijo {
    background-color: #f5f7fa !important;
    cursor: default;
}

#tblParametrosEventoArbol {
    font-size: 12px;
    width: 100% !important;
    margin: 0 !important;
}

#tblParametrosEventoArbol td,
#tblParametrosEventoArbol th {
    white-space: nowrap;
}

#dvParametrosEventoTabla .dataTables_wrapper {
    overflow-x: hidden;
}

#dvModalEventoArbol {
    z-index: 10050;
}

#dvModalParametroEventoArbol {
    z-index: 10070 !important;
}

.modal-backdrop.modal-backdrop-parametro {
    z-index: 10065 !important;
}

#dvModalObjetoEventoArbol {
    z-index: 10070 !important;
}

#dvModalObjetoEventoArbol .modal-dialog {
    z-index: 10071 !important;
}

.modal-backdrop.modal-backdrop-objetoevento {
    z-index: 10065 !important;
}

#dvModalPropiedadObjetoEventoArbol {
    z-index: 10100 !important;
}

#dvModalPropiedadObjetoEventoArbol .modal-dialog {
    z-index: 10101 !important;
}

.modal-backdrop.modal-backdrop-propiedadobjeto {
    z-index: 10090 !important;
}

#tblPropiedadesObjetoEventoArbol {
    font-size: 12px;
    width: 100% !important;
    margin: 0 !important;
}

#dvModalObjetoEventoArbol .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#dvPropiedadesObjetoEventoTabla .dataTables_wrapper {
    overflow: visible;
}

#dvPropiedadesObjetoEventoTabla .dataTables_paginate {
    margin-top: 8px;
    text-align: right;
}

#dvPropiedadesObjetoEventoTabla .dataTables_info {
    padding-top: 8px;
}

#dvModalParametroEventoArbol.modo-view .parametro-campo,
#dvModalParametroEventoArbol.modo-view .parametro-campo-select {
    background-color: #f5f7fa;
    cursor: default;
}

.modal-header .close {
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    opacity: 1;
    filter: none;
    text-indent: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 20px;
    color: #333;
    text-shadow: none;
    background-image: none !important;
    background-color: transparent;
}

.modal-header .close:before {
    content: "\00d7";
}

.modal-header .close:hover,
.modal-header .close:focus {
    color: #000;
    opacity: 1;
}

#dvModalCampoAdicional .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#dvModalCampoAdicional .ca-tabla-toolbar {
    margin-bottom: 8px;
}

#dvModalCruceCampoAdicional {
    z-index: 10100 !important;
}

#dvModalCruceCampoAdicional .modal-dialog {
    z-index: 10101 !important;
}
