/* Struktur Org - Frontend CSS */
.sorg-front-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 20px 0 40px;
    overflow-x: auto;
    font-family: 'Plus Jakarta Sans', 'Nunito', sans-serif;
}

/* Baris node */
.sorg-front-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    position: relative;
    z-index: 1;
}
.sorg-front-spacer { width: 160px; flex-shrink: 0; }

/* Kotak jabatan */
.sorg-front-node {
    width: 160px;
    flex-shrink: 0;
    border-radius: 14px;
    border: 2px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transition: transform .2s, box-shadow .2s;
    position: relative;
    z-index: 2;
    background: #fff;
}
.sorg-front-node:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.sorg-front-node-head {
    color: #fff;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
    line-height: 1.3;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sorg-front-node-body {
    background: #fff;
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    color: #1e293b;
    line-height: 1.4;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG lines */
.sorg-lines-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    overflow: visible;
    z-index: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .sorg-front-node { width: 130px; }
    .sorg-front-spacer { width: 130px; }
    .sorg-front-row { gap: 10px; }
    .sorg-front-node-head,
    .sorg-front-node-body { font-size: 11px; padding: 8px; min-height: 36px; }
    .sorg-front-wrap { gap: 28px; }
}
@media (max-width: 480px) {
    .sorg-front-node { width: 100px; }
    .sorg-front-spacer { width: 100px; }
    .sorg-front-row { gap: 6px; }
    .sorg-front-node-head,
    .sorg-front-node-body { font-size: 10px; padding: 6px; }
}
