.sdo-org-chart {
    --sdo-org-primary: #0b5d4b;
    --sdo-org-accent: #d7a928;
    --sdo-org-surface: #ffffff;
    color: #17211f;
    font-family: inherit;
    width: 100%;
}

.sdo-org-chart *,
.sdo-org-chart *::before,
.sdo-org-chart *::after {
    box-sizing: border-box;
}

.sdo-org-chart [hidden] {
    display: none !important;
}

.sdo-org-unit {
    margin: 0 0 12px;
    position: relative;
    width: 100%;
}

.sdo-org-unit-summary {
    display: grid;
    grid-template-columns: 36px 48px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 76px;
    padding: 12px 16px 12px 10px;
    background: var(--sdo-org-surface);
    border: 1px solid #dce3e0;
    border-left: 4px solid var(--sdo-org-primary);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(17, 42, 35, 0.06);
}

.sdo-org-toggle,
.sdo-org-toggle-placeholder {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
}

.sdo-org-toggle {
    appearance: none;
    border: 0;
    border-radius: 50%;
    background: #eef5f2;
    color: var(--sdo-org-primary);
    cursor: pointer;
    padding: 0;
}

.sdo-org-toggle:hover,
.sdo-org-toggle:focus-visible {
    background: var(--sdo-org-primary);
    color: #ffffff;
    outline: 2px solid var(--sdo-org-accent);
    outline-offset: 2px;
}

.sdo-org-toggle .dashicons {
    transition: transform 160ms ease;
}

.sdo-org-toggle[aria-expanded="true"] .dashicons {
    transform: rotate(90deg);
}

.sdo-org-unit-icon {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
    background: #edf6f2;
    color: var(--sdo-org-primary);
}

.sdo-org-unit-icon .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.sdo-org-unit-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.sdo-org-unit-identity {
    grid-column: 3 / -1;
    min-width: 0;
}

.sdo-org-unit-name {
    margin: 0;
    color: #132a24;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.sdo-org-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
    margin-bottom: 12px;
    padding: 8px 12px;
    border-left: 3px solid var(--sdo-org-accent);
}

.sdo-org-head strong,
.sdo-org-head span,
.sdo-org-person strong,
.sdo-org-person span,
.sdo-org-person small {
    display: block;
}

.sdo-org-head strong {
    color: #17211f;
    font-size: 16px;
    font-weight: 700;
}

.sdo-org-head span {
    color: #5d6d68;
    font-size: 13px;
    line-height: 1.4;
}

.sdo-org-person strong {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.sdo-org-person span {
    color: #5d6d68;
    font-size: 12px;
    line-height: 1.4;
}

.sdo-org-head-photo,
.sdo-org-person-photo {
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 50%;
    background: #e7ecea;
}

.sdo-org-head-photo {
    width: 44px;
    height: 44px;
}

.sdo-org-person-photo {
    width: 40px;
    height: 40px;
}

.sdo-org-head-photo img,
.sdo-org-person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sdo-org-unit-body {
    margin: 0 0 0 27px;
    padding: 12px 0 0 30px;
    border-left: 2px solid #c9d8d3;
}

.sdo-org-description {
    margin: 0 0 12px;
    color: #50615c;
    font-size: 14px;
}

.sdo-org-people-level {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sdo-org-people-level .sdo-org-people-level {
    margin-left: 24px;
    padding-left: 18px;
    border-left: 1px solid #d3ddda;
}

.sdo-org-people-level li {
    margin: 0 0 8px;
}

.sdo-org-person {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 620px;
    min-height: 56px;
    padding: 8px 12px;
    background: #f8faf9;
    border: 1px solid #e0e6e4;
    border-radius: 6px;
}

.sdo-org-person.is-vacant {
    border-style: dashed;
}

.sdo-org-person.is-vacant strong,
.sdo-org-head.is-vacant strong {
    font-style: italic;
}

.sdo-org-person-details {
    min-width: 0;
}

.sdo-org-person small {
    color: var(--sdo-org-primary);
    font-size: 13px;
    font-weight: 700;
}

.sdo-org-contact {
    display: flex !important;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 3px;
}

.sdo-org-children {
    margin-top: 14px;
}

.sdo-org-chart-empty {
    padding: 16px;
    border: 1px solid #dce3e0;
    border-radius: 6px;
    background: #f8faf9;
    color: #50615c;
}

.sdo-org-chart .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 720px) {
    .sdo-org-unit-summary {
        grid-template-columns: 32px 42px minmax(0, 1fr);
        gap: 9px;
        padding: 11px 12px 11px 8px;
    }

    .sdo-org-unit-name {
        font-size: 16px;
    }

    .sdo-org-head strong {
        font-size: 14px;
    }

    .sdo-org-unit-body {
        margin-left: 23px;
        padding-left: 18px;
    }

    .sdo-org-people-level .sdo-org-people-level {
        margin-left: 10px;
        padding-left: 12px;
    }
}
