.organograma-departamentos-page .card-body {
    padding: 20px;
}

.org-chart-container {
    min-height: 900px;
    background-color: #fffeff;
    border: 1px solid #eef1f5;
    border-radius: 10px;
    overflow: auto;
    cursor: grab;
    user-select: none;
}

.org-chart-container.is-panning {
    cursor: grabbing;
}

.org-chart-stage {
    position: relative;
}

.org-chart-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.org-chart-hint {
    font-size: 14px;
    color: #6c757d;
}

.org-chart-node {
    position: relative;
    background-color: #ffffff;
}

.org-chart-node,
.org-chart-node * {
    pointer-events: auto;
}

.node-foreign-object,
.node-foreign-object-div {
    pointer-events: auto;
}

.org-chart-node-circle {
    position: absolute;
    border-radius: 100px;
}

.org-chart-node-circle-light {
    background-color: #ffffff;
}

.org-chart-avatar {
    position: absolute;
    border-radius: 100px;
    object-fit: cover;
    cursor: pointer;
}

.org-chart-card {
    position: absolute;
    height: 78px;
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(28, 39, 60, 0.12);
    cursor: pointer;
}

.org-chart-card-title {
    height: 26px;
    text-align: center;
    padding-top: 5px;
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    border-radius: 8px 8px 0 0;
}

.org-chart-card-subtitle {
    height: 26px;
    text-align: center;
    padding-top: 5px;
    color: #424142;
    font-size: 13px;
    background-color: #f0edef;
}

.org-chart-card-level {
    height: 26px;
    text-align: center;
    padding-top: 5px;
    color: #3a3f45;
    font-size: 13px;
    background-color: #ffffff;
    border-radius: 0 0 8px 8px;
}

.org-chart-virtual-root {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background-color: #20304a;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 10px 20px rgba(32, 48, 74, 0.25);
}

.org-chart-root-title {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.org-chart-root-subtitle {
    font-size: 13px;
    opacity: 0.85;
}

.org-chart-department {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background-color: #1f6feb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    box-shadow: 0 10px 20px rgba(31, 111, 235, 0.25);
    cursor: pointer;
    position: relative;
}

.org-chart-dept-config-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: #1f6feb;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 2;
}

.org-chart-dept-config-btn,
.org-chart-dept-config-btn * {
    cursor: pointer;
}

.org-chart-dept-config-icon {
    font-size: 14px;
    line-height: 1;
}

.org-chart-department-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.org-chart-department-subtitle {
    font-size: 12px;
    opacity: 0.85;
}

.org-chart-modal-note {
    margin-top: 10px;
    font-size: 13px;
}

.org-chart-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    z-index: 3;
}

.org-chart-controls .btn {
    padding: 6px 8px;
}

.org-chart-minimap {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 220px;
    height: 160px;
    border-radius: 10px;
    border: 1px solid #d7dce3;
    background-color: #ffffff;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    z-index: 3;
}

.org-chart-minimap-svg {
    width: 100%;
    height: 100%;
}

.org-chart-minimap .node-rect {
    fill: #e2e8f0;
    stroke: #94a3b8;
    stroke-width: 1;
}

.org-chart-minimap .link {
    stroke: #94a3b8;
    stroke-width: 1;
}

.org-chart-minimap .minimap-viewport {
    fill: rgba(59, 130, 246, 0.12);
    stroke: #3b82f6;
    stroke-width: 2;
}
