/* Staff org-chart styles */

#orgCanvas {
    position: relative;
    transform-origin: top left;
    background:
        radial-gradient(circle at 1px 1px, #e5e7eb 1px, transparent 0);
    background-size: 32px 32px;
    background-color: #f9fafb;
}

.org-card {
    position: absolute;
    width: 210px;
    min-height: 270px;

    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #059669;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);

    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 14px 14px;
    gap: 6px;

    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    animation: orgFadeUp 0.4s ease both;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(5, 150, 105, 0.2);
    border-color: #6ee7b7;
    border-top-color: #047857;
}

@keyframes orgFadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.org-photo-ring {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid #d1fae5;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.12);
}
.org-card:hover .org-photo-ring {
    border-color: #34d399;
}
.org-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.org-name {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    text-align: center;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 4px;
}
.org-prefix {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #059669;
}

.org-pos {
    font-size: 11px;
    font-weight: 600;
    color: #065f46;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    padding: 5px 10px;
    border-radius: 10px;
    max-width: 100%;
    text-align: center;
    margin-top: 6px;
    white-space: normal;
    word-break: break-word;
    line-height: 1.45;
}

.mob-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    padding: 16px 12px 14px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    animation: orgFadeUp 0.4s ease both;
}
.mob-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.14);
    border-color: #6ee7b7;
}
.mob-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #d1fae5;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.1);
    flex-shrink: 0;
}
.mob-name {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    line-height: 1.4;
    word-break: break-word;
}
.mob-pos {
    font-size: 11px;
    font-weight: 500;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 3px 10px;
    border-radius: 99px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zoom-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #d1fae5;
    background: #f0fdf4;
    color: #065f46;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}
.zoom-btn:hover {
    background: #059669;
    color: #ffffff;
    border-color: #059669;
}

#staffModalBox {
    animation: modalIn 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes modalIn {
    from { opacity: 0; transform: translateY(-24px) scale(0.88); }
    to   { opacity: 1; transform: translateY(0)      scale(1);   }
}

.modal-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #d1fae5;
    box-shadow: 0 8px 28px rgba(5, 150, 105, 0.22);
    margin: 0 auto 20px;
    display: block;
}

.modal-name {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    line-height: 1.4;
    word-break: break-word;
}

.modal-prefix {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #059669;
    margin-bottom: 4px;
}

.modal-pos {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #065f46;
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    padding: 8px 20px;
    border-radius: 10px;
    margin-top: 14px;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    line-height: 1.5;
    text-align: center;
}

.staff-board {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.staff-tier {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 28px;
}

.staff-tier-sep {
    height: 1px;
    background: linear-gradient(to right, transparent, #6ee7b7, transparent);
    margin: 0 48px;
}

.tier-card {
    width: 190px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    border-top: 4px solid #059669;
    box-shadow: 0 2px 10px rgba(0,0,0,0.07);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 14px 18px;
    gap: 8px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    animation: orgFadeUp 0.4s ease both;
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(5, 150, 105, 0.18);
    border-color: #6ee7b7;
    border-top-color: #047857;
}

.tier-photo-ring {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 3px solid #d1fae5;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color 0.2s ease;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.12);
}
.tier-card:hover .tier-photo-ring {
    border-color: #34d399;
}

.tier-card .org-pos {
    white-space: normal;
    word-break: break-word;
    text-align: center;
    line-height: 1.45;
    overflow: visible;
    text-overflow: unset;
}
