/* Override tampilan orgchart tanpa menyentuh file bawaan plugin */
div.orgChart {
    background: transparent;
    border: none;
    margin: 0;
    padding: 0;
}

div.orgChart table {
    border-collapse: separate;
    border-spacing: 0;
    width: max-content !important;
    margin: 0 auto;
}

div.orgChart td {
    padding: 0;
    margin: 0;
    vertical-align: top;
    box-sizing: content-box !important;
}

div.orgChart div.node {
    width: 110px;
    height: auto;
    min-height: 80px;
    padding: 10px 4px;
    border: 2px solid #ccc;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    background-color: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    line-height: 1.2;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.node-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-bottom: 6px;
    overflow: hidden;
    border: 2px solid rgba(0,0,0,0.1);
}

.node-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.node-photo.default {
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.node-photo.default .material-icons {
    font-size: 28px;
    color: #999;
}

div.orgChart div.node.hasChildren {
    cursor: pointer;
}

div.orgChart div.node.hasChildren::after,
div.orgChart div.node.shownChildren::after {
    display: none !important;
}

div.orgChart div.node strong {
    display: block;
    color: #333;
    font-size: 0.9em;
    text-align: center;
}

div.orgChart div.node small {
    display: block;
    color: #777;
    font-size: 0.7em;
    margin-top: 2px;
}

div.orgChart li.male > div.node {
    background-color: #e3f2fd;
    border-color: #2196f3;
}

div.orgChart li.female > div.node {
    background-color: #fce4ec;
    border-color: #e91e63;
}

div.orgChart li.unknown > div.node {
    background-color: #f5f5f5;
    border-color: #999;
}

div.orgChart tr.lines td.line {
    height: 20px;
    width: 50%;
}

div.orgChart tr.lines td.top {
    border-top: 2px solid #888;
}

div.orgChart tr.lines td.left {
    border-right: 1px solid #888;
}

div.orgChart tr.lines td.right {
    border-left: 1px solid #888;
}

div.orgChart tr.lines.v td:first-child.left,
div.orgChart tr.lines.v td:last-child.right {
    border: none;
}
