/* ── Organization Switcher (MULTI-TENANT) ── */
/* Option A: Logo + Text / Option C: Initials / Option D: Admin Dropdown */

.org-switcher {
    position: relative;
    flex: 1;
    min-width: 0;
}

/* ── Regular User: Company Header (Option A / C) ── */
.company-header {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.company-logo {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: contain;
    background: white;
    padding: 2px;
    flex-shrink: 0;
}

.company-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.company-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.company-name {
    font-size: 12px;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Admin: Dropdown Header (Option D) ── */
.org-admin-header {
    position: relative;
    width: 100%;
}

.org-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    width: 100%;
}

.org-trigger:hover {
    opacity: 0.85;
}

.org-trigger-logo {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    object-fit: contain;
    background: white;
    padding: 2px;
    flex-shrink: 0;
}

.org-trigger-avatar {
    width: 26px;
    height: 26px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: white;
    flex-shrink: 0;
}

.org-trigger-info {
    flex: 1;
    min-width: 0;
}

.org-trigger-name {
    font-size: 12px;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.org-trigger-chevron {
    color: #64748b;
    flex-shrink: 0;
    transition: transform 0.2s;
}

/* ── Dropdown Panel ── */
.org-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 8px;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1000;
}

.org-dropdown-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.1s;
}

.org-dropdown-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.org-dropdown-option.active {
    background: rgba(99, 102, 241, 0.15);
}

.org-dropdown-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.org-dropdown-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.org-dropdown-name {
    font-size: 13px;
    font-weight: 500;
    color: #cbd5e1;
    flex: 1;
}

.org-dropdown-option.active .org-dropdown-name {
    color: #a5b4fc;
    font-weight: 600;
}

.org-dropdown-meta {
    font-size: 11px;
    color: #475569;
    margin-top: 1px;
}

.org-dropdown-check {
    font-size: 14px;
    color: #6366f1;
    flex-shrink: 0;
}

/* ── Collapsed sidebar ── */
.left-sidebar.collapsed .company-info,
.left-sidebar.collapsed .org-trigger-info,
.left-sidebar.collapsed .org-trigger-chevron {
    display: none;
}

.left-sidebar.collapsed .company-header,
.left-sidebar.collapsed .org-trigger {
    justify-content: center;
}

.left-sidebar.collapsed .org-trigger-logo,
.left-sidebar.collapsed .company-logo {
    width: 24px;
    height: 24px;
}

.left-sidebar.collapsed .company-avatar,
.left-sidebar.collapsed .org-trigger-avatar {
    width: 24px;
    height: 24px;
    font-size: 10px;
}
