.org-chart-shell {
    width: 100%;
    max-width: 100%;
    margin: 1em 0;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.org-chart-viewport {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: min(72vh, 760px);
    min-height: 420px;
    overflow: auto;
    background: #fafafa;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.org-chart-stage {
    position: relative;
    width: 100%;
    max-width: none;
    background: #fff;
    overflow: visible;
    box-sizing: border-box;
}

.org-chart-stage.is-empty {
    min-height: 420px;
    height: auto !important;
}

.org-chart-links {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.org-chart-nodes {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.org-chart-stage .org-node {
    position: absolute;
    width: 190px;
    background: #fff;
    border: 2px solid #0247a2;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    user-select: none;
}

.org-chart-stage:not(.org-chart-readonly) .org-node {
    cursor: move;
}

.org-chart-stage.org-chart-readonly .org-node {
    cursor: default;
}

.org-chart-stage:not(.org-chart-readonly) .org-node.ui-draggable-dragging {
    z-index: 30;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.org-chart-stage .table__title {
    font-weight: 500;
    padding: 6px 8px !important;
    background-color: #0247a2;
    color: #fff;
    font-size: 15px;
    border-radius: 2px 2px 0 0;
}

.org-chart-stage .org-node--title-only .table__title {
    border-radius: 2px;
}

.org-chart-stage .table__description {
    color: #222;
    background: #fff;
    padding: 6px 8px;
    word-break: break-word;
    white-space: pre-wrap;
    line-height: 1.35;
    text-align: left;
    font-size: 12px;
}

.org-chart-stage .node-icon {
    cursor: pointer;
    margin: 0 6px;
    color: #0247a2;
    font-size: 14px;
}

.org-chart-stage .node-action-buttons {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid #e5e5e5;
}

.org-chart-stage:not(.org-chart-readonly) .org-node:hover .node-action-buttons {
    display: flex;
}

.org-chart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 24px;
    text-align: center;
    color: #666;
    z-index: 3;
}

.org-chart-empty p {
    margin-bottom: 16px;
    color: #475569;
    font-size: 15px;
    max-width: 420px;
}

.org-chart-stage:not(.is-empty) .org-chart-empty {
    position: absolute;
    inset: 0;
    min-height: 0;
    padding: 0;
}
