/* ==========================================================================
   Corporate Organization Chart Styles
   ========================================================================== */

.orgchart-page-container {
    padding: 1.5rem;
    color: #f8fafc;
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Header Banner ── */
.orgchart-header-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.85) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(2, 132, 199, 0.4);
}

.header-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.header-subtitle {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Search Box */
.search-box {
    position: relative;
    min-width: 260px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.9rem;
}

.search-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0.5rem 2rem 0.5rem 2.2rem;
    color: #ffffff;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    background: rgba(15, 23, 42, 0.9);
}

.clear-search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.85rem;
}

/* View toggle group */
.view-toggle-group {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 2px;
}

.btn-view {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.btn-view.active {
    background: #0284c7;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.4);
}

.btn-refresh {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* ── KPI Metric Strip ── */
.kpi-metric-strip {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.kpi-card {
    flex: 1;
    min-width: 180px;
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 0.9rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    backdrop-filter: blur(8px);
}

.kpi-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.kpi-blue { background: rgba(56, 189, 248, 0.15); color: #38bdf8; }
.kpi-gold { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.kpi-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.kpi-emerald { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.kpi-details {
    display: flex;
    flex-direction: column;
}

.kpi-val {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
}

.kpi-lbl {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.selected-highlight-kpi {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

.btn-clear-selection {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.65rem;
    border-radius: 8px;
    cursor: pointer;
    margin-left: auto;
    transition: all 0.2s;
}

.btn-clear-selection:hover {
    background: #ef4444;
    color: #ffffff;
}

/* Selection Tip Bar */
.selection-tip-bar {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.65rem 1.1rem;
    font-size: 0.83rem;
    color: #cbd5e1;
}

.badge-manager {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
}

.badge-direct {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
}

.badge-indirect {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    font-weight: 700;
}

/* ── Tree View Canvas & Zoom Viewport ── */
.org-tree-canvas {
    background: radial-gradient(circle at 50% 50%, rgba(30, 41, 59, 0.45) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem 1.5rem 3.5rem;
    overflow: auto;
    min-height: 580px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Floating Zoom Toolbar */
.tree-floating-toolbar {
    position: sticky;
    top: 0.5rem;
    z-index: 30;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 30px;
    padding: 0.35rem 0.75rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 16px rgba(56, 189, 248, 0.2);
    backdrop-filter: blur(12px);
}

.zoom-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.zoom-btn:hover {
    background: rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    border-color: #38bdf8;
    transform: scale(1.1);
}

.zoom-level-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #38bdf8;
    min-width: 48px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.zoom-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 0.25rem;
}

.clear-route-btn {
    width: auto !important;
    border-radius: 20px !important;
    padding: 0 0.85rem !important;
    gap: 0.4rem;
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: rgba(239, 68, 68, 0.4) !important;
    color: #fca5a5 !important;
    font-size: 0.78rem !important;
    font-weight: 600;
}

.clear-route-btn:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
}

/* Tree Root Wrapper with transform scale */
.tree-root-container {
    display: flex;
    justify-content: center;
    min-width: max-content;
    transform-origin: top center;
    transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
    padding: 1rem 2rem 3rem;
}

/* Tree Rows & Hierarchy Lines */
.tree-level-row {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
}

/* Branch wrapper */
.tree-branch-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 24px 16px 0 16px;
}

/* Top vertical incoming line into child branch */
.tree-branch-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 24px;
    background: rgba(255, 255, 255, 0.28);
    transition: all 0.3s ease;
}

/* Top horizontal bar across siblings */
.tree-branch-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.28);
    transition: all 0.3s ease;
}

/* First child: horizontal bar only goes to the right */
.tree-branch-container:first-child::after {
    left: 50%;
}

/* Last child: horizontal bar only goes to the left */
.tree-branch-container:last-child::after {
    right: 50%;
}

/* Only child: no horizontal bar */
.tree-branch-container:only-child::after {
    display: none;
}

/* Root level branches have no incoming top line or horizontal bar */
.tree-level-row > .tree-branch-container::before,
.tree-level-row > .tree-branch-container::after {
    display: none;
}

/* Drop line from parent down to children container */
.tree-node-card::after {
    content: '';
    position: absolute;
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 24px;
    background: rgba(255, 255, 255, 0.28);
    display: none;
    transition: all 0.3s ease;
}

.tree-node-has-children::after {
    display: block;
}

/* Children container */
.tree-children-container {
    display: flex;
    justify-content: center;
    margin-top: 24px;
    position: relative;
}

/* Route & Ancestor Glowing Line Highlights */
.tree-branch-container.route-active::before,
.tree-branch-container.route-active::after,
.tree-node-card.route-active::after {
    background: #38bdf8 !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.8) !important;
    z-index: 5;
}

.tree-branch-container.manager-active::before,
.tree-branch-container.manager-active::after,
.tree-node-card.manager-active::after {
    background: #f59e0b !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.9) !important;
    z-index: 6;
}

/* ── Tree Node Card ── */
.tree-node-card {
    width: 235px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.1rem 0.9rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
}

.tree-node-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.6);
    box-shadow: 0 10px 32px rgba(56, 189, 248, 0.25);
}

/* ── Interactive Highlighting Styles ── */
.node-manager {
    border-color: #f59e0b !important;
    background: linear-gradient(180deg, rgba(245, 158, 11, 0.22) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    box-shadow: 0 0 28px rgba(245, 158, 11, 0.5) !important;
    transform: translateY(-4px) scale(1.03);
}

.node-route-ancestor {
    border-color: #a855f7 !important;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.22) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.5) !important;
}

.node-direct {
    border-color: #10b981 !important;
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.05) 0%, rgba(16, 185, 129, 0.18) 100%) !important;
    box-shadow: 0 0 22px rgba(16, 185, 129, 0.4) !important;
}

.node-indirect {
    border-color: #3b82f6 !important;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.14) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.3) !important;
}

.node-dimmed {
    opacity: 0.3;
    filter: grayscale(0.6);
    transform: scale(0.96);
}

.node-avatar-wrapper {
    position: relative;
    margin-bottom: 0.65rem;
}

.node-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
}

.node-badge-crown {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f59e0b;
    color: #ffffff;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.6);
}

.node-badge-route {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #a855f7;
    color: #ffffff;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.6);
}

.node-badge-direct {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.6);
}
    font-size: 0.68rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.5);
}

.node-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.node-role {
    font-size: 0.78rem;
    color: #38bdf8;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.node-dept {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 1px;
}

.node-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.btn-quick-reassign {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #94a3b8;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-quick-reassign:hover {
    background: #f59e0b;
    color: #ffffff;
}

/* ── Departmental Cards View ── */
.departments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.25rem;
}

.dept-card {
    background: rgba(30, 41, 59, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.dept-card-header {
    background: rgba(15, 23, 42, 0.75);
    padding: 0.9rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dept-name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}

.dept-card-body {
    padding: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
}

.dept-emp-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.dept-emp-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.75rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
}

.dept-emp-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(56, 189, 248, 0.3);
}

.avatar-sm {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.avatar-md {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.emp-row-info {
    flex: 1;
    overflow: hidden;
}

.emp-row-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.emp-row-sub {
    font-size: 0.74rem;
    color: #94a3b8;
}

.edit-mgr-btn {
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.edit-mgr-btn:hover {
    border-color: #f59e0b;
    color: #f59e0b;
}

/* ── Matrix Table Highlights ── */
.table-active-manager {
    background: rgba(245, 158, 11, 0.18) !important;
}

.table-active-direct {
    background: rgba(16, 185, 129, 0.15) !important;
}

.table-active-indirect {
    background: rgba(59, 130, 246, 0.12) !important;
}

.table-dimmed {
    opacity: 0.35;
}

/* ══════════════════════════════════════════════════
   ASSIGN REPORTING MANAGER MODAL STYLES
   ══════════════════════════════════════════════════ */
.assign-modal-dialog {
    max-width: 540px;
    width: 95%;
    margin: 1.75rem auto;
}

.modal-content.modal-assign-manager {
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(56, 189, 248, 0.28);
    border-radius: 20px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.15);
    color: #ffffff;
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.modal-assign-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(15, 23, 42, 0.6);
}

.modal-assign-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0;
    color: #ffffff;
}

.modal-header-badge {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
    flex-shrink: 0;
}

.modal-assign-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Selected Employee Showcase Card */
.employee-showcase-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.employee-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%);
}

.showcase-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid #38bdf8;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
    flex-shrink: 0;
}

.showcase-info {
    flex: 1;
    min-width: 0;
}

.showcase-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.showcase-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.showcase-badge-role {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
}

.showcase-badge-dept {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.76rem;
}

.showcase-badge-code {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.76rem;
    font-weight: 600;
}

/* Current Hierarchy Status Strip */
.current-hierarchy-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(30, 41, 59, 0.45);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
}

.current-hierarchy-label {
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.current-hierarchy-value {
    font-weight: 600;
}

/* Manager Selector Box */
.manager-select-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.manager-select-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.manager-select-wrapper {
    position: relative;
    width: 100%;
}

.circular-guard-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: #94a3b8;
    background: rgba(56, 189, 248, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 10px;
    padding: 0.75rem 0.9rem;
    line-height: 1.45;
}

.circular-guard-hint i {
    color: #38bdf8;
    font-size: 0.95rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Modal Footer */
.modal-assign-footer {
    padding: 1.1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.6);
}

.btn-assign-cancel {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 0.55rem 1.2rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-assign-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-assign-save {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #ffffff;
    padding: 0.55rem 1.35rem;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-assign-save:hover:not(:disabled) {
    background: linear-gradient(135deg, #0369a1 0%, #0284c7 100%);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.6);
    transform: translateY(-1px);
}

.btn-assign-save:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.orgchart-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 5rem 1rem;
}
