/* Business Switch Styles */
.business-switch {
    margin-right: 15px;
}

.business-switch .btn {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057 !important;
    font-size: 0.85rem;
    padding: 6px 10px;
    transition: all 0.2s ease;
    font-weight: 500;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.business-switch .btn:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    color: #212529 !important;
    transform: translateY(-1px);
}

.business-switch .dropdown-menu {
    min-width: 220px;
    max-width: calc(100vw - var(--spacing-md) * 2);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    margin-top: 4px;
    overflow-x: hidden;
}

.business-switch .dropdown-item {
    padding: 8px 12px;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.15s ease;
    font-size: 0.9rem;
}

.business-switch .dropdown-item:hover {
    background-color: #f8f9fa;
}

.business-switch .dropdown-item.active {
    background-color: rgba(30, 61, 52, 0.1);
    color: #1e3d34;
    font-weight: 500;
}

.business-switch .dropdown-item:last-child {
    border-bottom: none;
}

.business-switch .badge {
    font-size: 0.7rem;
    padding: 2px 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .business-switch {
        margin-right: var(--spacing-sm);
        position: relative;
    }
    
    .business-switch .btn {
        font-size: 0.8rem;
        padding: 6px 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }
    
    .business-switch .dropdown-menu {
        min-width: 200px;
        max-width: calc(100vw - var(--spacing-md) * 2);
        right: 0;
        left: auto;
        transform: translateX(0);
    }
    
    .business-switch.dropdown {
        position: static;
    }
    
    .business-switch .dropdown-menu {
        position: fixed !important;
        top: auto !important;
        left: var(--spacing-md) !important;
        right: var(--spacing-md) !important;
        width: auto !important;
        max-width: none !important;
        transform: translateY(0) !important;
    }
}

@media (max-width: 480px) {
    .business-switch .btn {
        max-width: 120px;
        font-size: 0.75rem;
        padding: 5px 8px;
    }
    
    .business-switch .dropdown-menu {
        left: var(--spacing-sm) !important;
        right: var(--spacing-sm) !important;
    }
}
