/* required LIB STYLES */
/* .Treant se automatski dodaje na svaki chart conatiner */
.Treant { position: relative; overflow: hidden; padding: 0 !important; }
.Treant > .node,
.Treant > .pseudo { position: absolute; display: block; visibility: hidden; }
.Treant.Treant-loaded .node,
.Treant.Treant-loaded .pseudo { visibility: visible; }
.Treant > .pseudo { width: 0; height: 0; border: none; padding: 0; }
.Treant .collapse-switch { width: 3px; height: 3px; display: block; border: 1px solid black; position: absolute; top: 1px; right: 1px; cursor: pointer; }
.Treant .collapsed .collapse-switch { background-color: #ffffff; }
.Treant > .node img {	border: none; float: left; }

/*Custom*/
 /* Estilos para la tarjeta del nodo */
.node {
    border-radius: 8px;
    padding: 15px;
    color: #ffffff;
    background-color: #fff;
    width: 250px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

    /* Borde lateral de color */
.node::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 5px;
    background-color: #00bfa5;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 5px 0;
}

.node img {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    margin-bottom: 10px;
    background: #fff;
}

.node .title {
    font-weight: bold;
    color: #0c0040;
    margin-bottom: 5px;
}

.node .role {
    color: #666;
    font-size: 0.85em;
}

.card-info {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #333;
    padding-top: 10px;
    margin-top: 10px;
}


.contact {
    display: flex;
    justify-content: space-around;
    border-top: 1px solid #333;
    padding-top: 10px;
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 0.8em;
}

.contact-item i {
    margin-right: 5px;
}

.toggle-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    cursor: pointer;
    color: #ffffff;
    font-size: 12px;
    padding: 2px 5px;
    background-color: #333;
    border-radius: 3px;
    border: none;
}

.toggle-btn { position: absolute; top: 5px; right: 5px; cursor: pointer; color: #ffffff; font-size: 12px; padding: 2px 5px; background-color: #333; border-radius: 3px; border: none; }

.phone-dialog-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        display: none;
        z-index: 999;
}

.node .collapse-switch {
    padding:2px;
    position: absolute;
    top: 50%;
    right: -5px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    color: #fff;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);        
}

.node .collapse-switch:after {
    color:#000;
    content: "-";
}

.node.collapsed .collapse-switch:after {
    color:#000;
    content: "+";
}

.node.expanded .collapse-switch:after {
    color:#000;
    content: "-";
}